summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2020-12-07 04:00:00 +0000
committerMike Gilbert <floppym@gentoo.org>2020-12-07 13:14:27 -0500
commitb03759ae067d3714f2d3d52d36f8fbdf5a1c7dab (patch)
treee6731a9dad52b7b1963ddeae3de536ab986ad242 /app-i18n
parentapp-i18n/ibus-libpinyin: Add support for Python 3.9. (diff)
downloadgentoo-b03759ae067d3714f2d3d52d36f8fbdf5a1c7dab.tar.gz
gentoo-b03759ae067d3714f2d3d52d36f8fbdf5a1c7dab.tar.bz2
gentoo-b03759ae067d3714f2d3d52d36f8fbdf5a1c7dab.zip
app-i18n/ibus-libpinyin: Use slotted Lua.
Closes: https://bugs.gentoo.org/752552 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'app-i18n')
-rw-r--r--app-i18n/ibus-libpinyin/ibus-libpinyin-1.11.92-r1.ebuild20
1 files changed, 14 insertions, 6 deletions
diff --git a/app-i18n/ibus-libpinyin/ibus-libpinyin-1.11.92-r1.ebuild b/app-i18n/ibus-libpinyin/ibus-libpinyin-1.11.92-r1.ebuild
index b267bd8fe317..019c1a68d966 100644
--- a/app-i18n/ibus-libpinyin/ibus-libpinyin-1.11.92-r1.ebuild
+++ b/app-i18n/ibus-libpinyin/ibus-libpinyin-1.11.92-r1.ebuild
@@ -2,21 +2,21 @@
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
-
+LUA_COMPAT=(lua{5-1,5-2,5-3})
PYTHON_COMPAT=(python{3_6,3_7,3_8,3_9})
-inherit autotools gnome2-utils python-single-r1
+inherit autotools gnome2-utils lua-single python-single-r1
DESCRIPTION="Intelligent Pinyin and Bopomofo input methods based on LibPinyin for IBus"
HOMEPAGE="https://github.com/libpinyin/ibus-libpinyin https://sourceforge.net/projects/libpinyin/"
-SRC_URI="https://github.com/libpinyin/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
-"
+SRC_URI="https://github.com/libpinyin/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="boost lua opencc"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}
+ lua? ( ${LUA_REQUIRED_USE} )"
BDEPEND="dev-db/sqlite:3
virtual/pkgconfig"
@@ -31,11 +31,19 @@ DEPEND="${PYTHON_DEPS}
dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}]
')
boost? ( dev-libs/boost:= )
- lua? ( dev-lang/lua:0 )
+ lua? ( ${LUA_DEPS} )
opencc? ( app-i18n/opencc:= )"
RDEPEND="${DEPEND}"
+pkg_setup() {
+ python-single-r1_pkg_setup
+
+ if use lua; then
+ lua-single_pkg_setup
+ fi
+}
+
src_prepare() {
sed -i \
-e "/^appdatadir/s:/appdata:/metainfo:" \