Skip to content

Commit

Permalink
app-i18n/ibus-unikey: switch to gtk2 USE flag
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.6, Repoman-2.3.1
  • Loading branch information
hattya committed Aug 12, 2017
1 parent 87164ee commit 1bc7cbe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions app-i18n/ibus-unikey/ibus-unikey-0.6.1-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.go
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gtk3 nls"
IUSE="+gtk gtk2 nls"
REQUIRED_USE="gtk2? ( gtk )"

RDEPEND="app-i18n/ibus
x11-libs/libX11
gtk3? ( x11-libs/gtk+:3 )
!gtk3? ( x11-libs/gtk+:2 )
gtk? (
gtk2? ( x11-libs/gtk+:2 )
!gtk2? ( x11-libs/gtk+:3 )
)
nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
virtual/pkgconfig
Expand All @@ -28,5 +31,5 @@ PATCHES=( "${DISTDIR}"/${P}-gcc6.patch )
src_configure() {
econf \
$(use_enable nls) \
--with-gtk-version=$(usex gtk3 3 2)
--with-gtk-version=$(usex gtk2 3 2)
}
2 changes: 1 addition & 1 deletion app-i18n/ibus-unikey/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
UniKey. Support via forum at: http://forum.ubuntu-vn.com/viewforum.php?f=85
</longdescription>
<use>
<flag name="gtk3">Enable support for <pkg>x11-libs/gtk+</pkg>:3</flag>
<flag name="gtk2">Enable support for <pkg>x11-libs/gtk+</pkg>:2</flag>
</use>
<upstream>
<remote-id type="github">mrlequoctuan/ibus-unikey</remote-id>
Expand Down

0 comments on commit 1bc7cbe

Please sign in to comment.