mirror of
https://github.com/gentoo-mirror/gentoo-zh.git
synced 2025-04-19 15:58:56 -04:00
47 lines
910 B
Bash
47 lines
910 B
Bash
# Copyright 1999-2023 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
LUA_COMPAT=( lua5-{3,4} )
|
|
|
|
inherit cmake lua xdg
|
|
|
|
MY_PN="fcitx5-lua"
|
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
|
SRC_URI="https://download.fcitx-im.org/fcitx5/${MY_PN}/${MY_PN}-${PV}.tar.xz -> ${P}.tar.xz"
|
|
KEYWORDS="~amd64 ~arm64 ~loong ~riscv ~x86"
|
|
|
|
DESCRIPTION="Lua support for fcitx"
|
|
HOMEPAGE="https://github.com/fcitx/fcitx5-lua"
|
|
|
|
LICENSE="LGPL-2.1+"
|
|
SLOT="5"
|
|
IUSE="+dlopen test"
|
|
REQUIRED_USE="${LUA_REQUIRED_USE}"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
RDEPEND="
|
|
${LUA_DEPS}
|
|
app-i18n/fcitx:5
|
|
"
|
|
|
|
DEPEND="
|
|
${RDEPEND}
|
|
"
|
|
|
|
BDEPEND="
|
|
kde-frameworks/extra-cmake-modules:0
|
|
virtual/pkgconfig
|
|
"
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DCMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)"
|
|
-DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
|
|
-DUSE_DLOPEN=$(usex dlopen)
|
|
-DENABLE_TEST=$(usex test)
|
|
)
|
|
cmake_src_configure
|
|
}
|