dev-libs/hidapi: switch from USE=X to fox
authorAnthony G. Basile <blueness@gentoo.org>
Wed, 26 Aug 2015 00:05:42 +0000 (20:05 -0400)
committerAnthony G. Basile <blueness@gentoo.org>
Wed, 26 Aug 2015 00:07:08 +0000 (20:07 -0400)
Gentoo-Bug: 558744

Package-Manager: portage-2.2.20.1

dev-libs/hidapi/hidapi-0.8.0_rc1_p20140719.ebuild
dev-libs/hidapi/metadata.xml

index e90d5c172bb8da7570e7c0adf7ead3ea7011ca33..dd690ab0c4032f6bc525b076b3fed8bdc26ba180 100644 (file)
@@ -25,19 +25,19 @@ SRC_URI="https://github.com/signal11/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}
 LICENSE="|| ( BSD GPL-3 HIDAPI )"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
-IUSE="doc static-libs X"
+IUSE="doc fox static-libs"
 
 RDEPEND="virtual/libusb:1[${MULTILIB_USEDEP}]
        virtual/libudev:0[${MULTILIB_USEDEP}]"
 DEPEND="${RDEPEND}
        doc? ( app-doc/doxygen )
        virtual/pkgconfig
-       X? ( x11-libs/fox )"
+       fox? ( x11-libs/fox )"
 
 S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
 
 src_prepare() {
-       if ! use X; then
+       if ! use fox; then
                sed -i -e 's:PKG_CHECK_MODULES(\[fox\], .*):AC_SUBST(fox_CFLAGS,[ ])AC_SUBST(fox_LIBS,[ ]):' configure.ac || die
        fi
 
@@ -53,7 +53,7 @@ src_prepare() {
 
 multilib_src_configure() {
        local myeconfargs=(
-               $(multilib_native_use_enable X testgui)
+               $(multilib_native_use_enable fox testgui)
        )
 
        autotools-utils_src_configure
index 58cf9a572af4e434c3a6710807412a507d3b9ee7..af7f94530f1352a50b61aa2bc1e3d6d8d639b08f 100644 (file)
@@ -10,6 +10,9 @@
     <email>luke-jr+gentoobugs@utopios.org</email>
     <name>Luke Dashjr</name>
   </maintainer>
+  <use>
+    <flag name="fox">Build a x11-libs/fox GUI</flag>
+  </use>
   <upstream>
     <remote-id type="github">signal11/hidapi</remote-id>
   </upstream>