Skip to content

Commit

Permalink
app-i18n/ibus-pinyin: Use slotted Lua.
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/752555
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <[email protected]>
Signed-off-by: Mike Gilbert <[email protected]>
  • Loading branch information
Arfrever Frehtes Taifersar Arahesis authored and floppym committed Dec 7, 2020
1 parent 89c3d88 commit 3d096d3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
18 changes: 14 additions & 4 deletions app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r4.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,21 @@
# Distributed under the terms of the GNU General Public License v2

EAPI=7
LUA_COMPAT=(lua5-1)
PYTHON_COMPAT=(python3_{6,7,8,9})

inherit autotools python-single-r1
inherit autotools lua-single python-single-r1

DESCRIPTION="Chinese Pinyin and Bopomofo engines for IBus"
HOMEPAGE="https://github.com/ibus/ibus/wiki"
HOMEPAGE="https://github.com/ibus/ibus-pinyin"
SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/ibus/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="boost lua nls"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}
lua? ( ${LUA_REQUIRED_USE} )"

RDEPEND="${PYTHON_DEPS}
app-i18n/pyzy
Expand All @@ -24,7 +26,7 @@ RDEPEND="${PYTHON_DEPS}
dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}]
')
boost? ( dev-libs/boost )
lua? ( =dev-lang/lua-5.1*:0= )
lua? ( ${LUA_DEPS} )
nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
dev-util/intltool
Expand All @@ -38,6 +40,14 @@ PATCHES=(
"${FILESDIR}"/${P}-python3.patch
)

pkg_setup() {
python-single-r1_pkg_setup

if use lua; then
lua-single_pkg_setup
fi
}

src_prepare() {
default
eautoreconf
Expand Down
1 change: 1 addition & 0 deletions profiles/base/package.use.mask
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# Waiting for unmasking of slotted Lua.
>=app-i18n/fcitx-4.2.9.8:4 lua
>=app-i18n/ibus-libpinyin-1.11.92 lua
app-i18n/ibus-pinyin lua

# Matt Turner <[email protected]> (2020-12-05)
# Relies on gtkdoc-mktmpl which was removed from gtk-doc-1.26
Expand Down

0 comments on commit 3d096d3

Please sign in to comment.