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
multilib_src_configure() {
local myeconfargs=(
- $(multilib_native_use_enable X testgui)
+ $(multilib_native_use_enable fox testgui)
)
autotools-utils_src_configure
<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>