Skip to content

Commit

Permalink
app-i18n/ibus-m17n: update to EAPI 6
Browse files Browse the repository at this point in the history
Gentoo-Bug: 621940

Package-Manager: Portage-2.3.6, Repoman-2.3.1
  • Loading branch information
hattya committed Jul 20, 2017
1 parent e4a1686 commit 85b1e0a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 49 deletions.
32 changes: 9 additions & 23 deletions app-i18n/ibus-m17n/ibus-m17n-1.3.2.ebuild
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="3"
EAPI="6"

DESCRIPTION="The M17N engine IMEngine for IBus Framework"
HOMEPAGE="https://github.com/ibus/ibus/wiki"
Expand All @@ -12,34 +12,20 @@ SLOT="0"
KEYWORDS="amd64 x86"
IUSE="gtk nls"

RDEPEND=">=app-i18n/ibus-1.3
gtk? ( >=x11-libs/gtk+-2.12.12:2 )
CDEPEND="app-i18n/ibus
dev-libs/m17n-lib
gtk? ( x11-libs/gtk+:2 )
nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
virtual/pkgconfig
>=sys-devel/gettext-0.16.1"
RDEPEND="${RDEPEND}
RDEPEND="${CDEPEND}
dev-db/m17n-db
dev-db/m17n-contrib"
# gtk? (
# || (
# >=x11-libs/gtk+-2.90.5:3
# >=x11-libs/gtk+-2.12.12:2
# )
# )
DEPEND="${CDEPEND}
dev-util/intltool
sys-devel/gettext
virtual/pkgconfig"

src_configure() {
local myconf

econf \
$(use_with gtk gtk 2.0) \
$(use_enable nls) \
${myconf} || die
}

src_install() {
emake DESTDIR="${D}" install || die

dodoc AUTHORS ChangeLog NEWS README || die
$(use_with gtk gtk 2.0)
}
33 changes: 9 additions & 24 deletions app-i18n/ibus-m17n/ibus-m17n-1.3.4.ebuild
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="3"
EAPI="6"

DESCRIPTION="The M17N engine IMEngine for IBus Framework"
HOMEPAGE="https://github.com/ibus/ibus/wiki"
Expand All @@ -12,35 +12,20 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gtk nls"

RDEPEND=">=app-i18n/ibus-1.3.99.20110817
dev-libs/libxml2
gtk? ( >=x11-libs/gtk+-2.12.12:2 )
CDEPEND="app-i18n/ibus
dev-libs/m17n-lib
gtk? ( x11-libs/gtk+:2 )
nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
virtual/pkgconfig
>=sys-devel/gettext-0.16.1"
RDEPEND="${RDEPEND}
RDEPEND="${CDEPEND}
dev-db/m17n-db
dev-db/m17n-contrib"
# gtk? (
# || (
# >=x11-libs/gtk+-2.90.5:3
# >=x11-libs/gtk+-2.12.12:2
# )
# )
DEPEND="${CDEPEND}
dev-util/intltool
sys-devel/gettext
virtual/pkgconfig"

src_configure() {
local myconf

econf \
$(use_with gtk gtk 2.0) \
$(use_enable nls) \
${myconf} || die
}

src_install() {
emake DESTDIR="${D}" install || die

dodoc AUTHORS ChangeLog NEWS README || die
$(use_with gtk gtk 2.0)
}
3 changes: 1 addition & 2 deletions app-i18n/ibus-m17n/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
</upstream>
<use>
<flag name="gtk">
Build the preference interfaces, based on
<pkg>x11-libs/gtk+</pkg> (GTK+ 2).
Build the preference interfaces, based on <pkg>x11-libs/gtk+</pkg>:2
</flag>
</use>
</pkgmetadata>

0 comments on commit 85b1e0a

Please sign in to comment.