EAPI=5
PYTHON_COMPAT="python2_7"
-inherit autotools eutils multilib python-single-r1 python-utils-r1 readme.gentoo systemd udev user multilib-minimal
+inherit autotools eutils multilib python-single-r1 readme.gentoo systemd udev user multilib-minimal
DESCRIPTION="Bluetooth Tools and System Daemons for Linux"
HOMEPAGE="http://www.bluez.org"
pkg_setup() {
enewgroup plugdev
- use test && python-single-r1_pkg_setup
- use test-programs && python-single-r1_pkg_setup
+
+ if use test || use test-programs; then
+ python-single-r1_pkg_setup
+ fi
if ! use udev; then
ewarn
--enable-pie \
--enable-threads \
--enable-library \
- $(multilib_native_use_enable test) \
--enable-tools \
--enable-manpages \
--enable-monitor \
$(multilib_native_use_enable obex) \
$(multilib_native_use_enable readline client) \
$(multilib_native_use_enable systemd) \
- $(multilib_native_use_enable test-programs test)
+ $(multilib_native_use_enable test-programs test) \
$(systemd_with_unitdir) \
$(multilib_native_use_enable udev) \
$(multilib_native_use_enable udev sixaxis)
dobin tools/hex2hcd
# Unittests are not that useful once installed, so make them optional
- if use test && ! use test-programs; then
- rm -r "${ED}"/usr/$(get_libdir)/bluez/test || die
- fi
if use test-programs; then
python_fix_shebang "${ED}"/usr/$(get_libdir)/bluez/test
for i in $(find "${ED}"/usr/$(get_libdir)/bluez/test -maxdepth 1 -type f ! -name "*.*"); do