Update overlay.toml
[gentoo-zh.git] / app-i18n / fcitx-lua / fcitx-lua-9999.ebuild
blob508cbbb8d219ddf36a1b86015edf067207f3f69a
1 # Copyright 1999-2022 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 LUA_COMPAT=( lua5-{3,4} )
8 inherit cmake lua xdg
10 if [[ "${PV}" == 9999 ]]; then
11 inherit git-r3
12 EGIT_REPO_URI="https://github.com/fcitx/fcitx5-lua.git"
13 else
14 MY_PN="fcitx5-lua"
15 MY_P="${MY_PN}-${PV}"
16 S="${WORKDIR}/${MY_PN}-${PV}"
17 SRC_URI="https://github.com/fcitx/${MY_PN}/archive/refs/tags/${PV}.tar.gz -> ${MY_P}.tar.gz"
18 KEYWORDS="~amd64 ~x86"
21 DESCRIPTION="Lua support for fcitx"
22 HOMEPAGE="https://github.com/fcitx/fcitx5-lua"
24 LICENSE="LGPL-2+"
25 SLOT="5"
26 IUSE="test"
27 REQUIRED_USE=""
28 RESTRICT="!test? ( test )"
30 RDEPEND="
31 ${LUA_DEPS}
32 app-i18n/fcitx:5
35 DEPEND="
36 ${RDEPEND}
39 BDEPEND="
40 virtual/pkgconfig
43 src_configure() {
44 local mycmakeargs=(
45 -DCMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)"
46 -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
48 cmake_src_configure