diff options
author | Mu Qiao <qiaomuf@gentoo.org> | 2012-03-16 01:40:00 +0000 |
---|---|---|
committer | Mu Qiao <qiaomuf@gentoo.org> | 2012-03-16 01:40:00 +0000 |
commit | ab5e2c509b386ccfdd4af60ec23f18abac92abbd (patch) | |
tree | 5f6d5dc0d69b996d9068e716565c6f0ce840321b /app-i18n | |
parent | Add dependency on app-text/iso-codes (bug #408327) (diff) | |
download | gentoo-2-ab5e2c509b386ccfdd4af60ec23f18abac92abbd.tar.gz gentoo-2-ab5e2c509b386ccfdd4af60ec23f18abac92abbd.tar.bz2 gentoo-2-ab5e2c509b386ccfdd4af60ec23f18abac92abbd.zip |
Add use flag for GTK+-3
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'app-i18n')
-rw-r--r-- | app-i18n/fcitx-configtool/fcitx-configtool-0.4.1.ebuild | 11 | ||||
-rw-r--r-- | app-i18n/fcitx-configtool/metadata.xml | 3 |
2 files changed, 12 insertions, 2 deletions
diff --git a/app-i18n/fcitx-configtool/fcitx-configtool-0.4.1.ebuild b/app-i18n/fcitx-configtool/fcitx-configtool-0.4.1.ebuild index 6396f85cbca1..032f9ecd1880 100644 --- a/app-i18n/fcitx-configtool/fcitx-configtool-0.4.1.ebuild +++ b/app-i18n/fcitx-configtool/fcitx-configtool-0.4.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/fcitx-configtool/fcitx-configtool-0.4.1.ebuild,v 1.2 2012/03/16 01:25:15 qiaomuf Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-i18n/fcitx-configtool/fcitx-configtool-0.4.1.ebuild,v 1.3 2012/03/16 01:40:00 qiaomuf Exp $ EAPI="3" @@ -13,7 +13,7 @@ SRC_URI="${HOMEPAGE}/files/${P}.tar.xz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="gtk gtk3" RDEPEND="dev-libs/glib:2 x11-libs/gtk+:2" @@ -25,3 +25,10 @@ DEPEND="${RDEPEND} dev-util/intltool dev-util/pkgconfig sys-devel/gettext" + +src_configure() { + local mycmakeargs=" + $(cmake-utils_use_enable gtk GTK2) + $(cmake-utils_use_enable gtk3 GTK3)" + cmake-utils_src_configure +} diff --git a/app-i18n/fcitx-configtool/metadata.xml b/app-i18n/fcitx-configtool/metadata.xml index 69317254f553..a03aa19b2ee2 100644 --- a/app-i18n/fcitx-configtool/metadata.xml +++ b/app-i18n/fcitx-configtool/metadata.xml @@ -6,4 +6,7 @@ <email>qiaomuf@gentoo.org</email> <name>Mu Qiao</name> </maintainer> + <use> + <flag name="gtk3">Use GTK+3 instead of 2</flag> + </use> </pkgmetadata> |