diff options
author | Sam James <sam@gentoo.org> | 2021-05-28 17:31:56 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2021-05-28 17:31:56 +0200 |
commit | 50b908503ff65ef2ea96b09b7a21c6b46935ffa2 (patch) | |
tree | 0affa56192bedb7501782897fda48e6c5a033bbc /net-dns | |
parent | sys-kernel/gentoo-sources: Linux patch 5.10.41 (diff) | |
download | gentoo-50b908503ff65ef2ea96b09b7a21c6b46935ffa2.tar.gz gentoo-50b908503ff65ef2ea96b09b7a21c6b46935ffa2.tar.bz2 gentoo-50b908503ff65ef2ea96b09b7a21c6b46935ffa2.zip |
net-dns/avahi: use python-single-r1 instead of python-r1
* Only builds one Python implementation => python-single-r1
* Fix REQUIRED_USE logic. We need to have it all together
for python_gen_cond_dep, so we move the bookmarks? (...)
dep within the python? ( ... ) one.
Closes: https://bugs.gentoo.org/705386
Closes: https://bugs.gentoo.org/710244
Closes: https://bugs.gentoo.org/788043
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'net-dns')
-rw-r--r-- | net-dns/avahi/avahi-0.8-r4.ebuild (renamed from net-dns/avahi/avahi-0.8-r3.ebuild) | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/net-dns/avahi/avahi-0.8-r3.ebuild b/net-dns/avahi/avahi-0.8-r4.ebuild index 8c9e10456e2d..b7310b994e3a 100644 --- a/net-dns/avahi/avahi-0.8-r3.ebuild +++ b/net-dns/avahi/avahi-0.8-r4.ebuild @@ -5,7 +5,7 @@ EAPI="7" PYTHON_COMPAT=( python3_{7,8} ) PYTHON_REQ_USE="gdbm" -inherit autotools flag-o-matic multilib-minimal mono-env python-r1 systemd +inherit autotools flag-o-matic multilib-minimal mono-env python-single-r1 systemd DESCRIPTION="System which facilitates service discovery on a local network" HOMEPAGE="http://avahi.org/" @@ -18,6 +18,7 @@ IUSE="autoipd bookmarks +dbus doc gdbm gtk howl-compat +introspection ipv6 kerne REQUIRED_USE=" python? ( dbus gdbm ${PYTHON_REQUIRED_USE} ) + bookmarks? ( python ) mono? ( dbus ) howl-compat? ( dbus ) mdnsresponder-compat? ( dbus ) @@ -40,12 +41,11 @@ DEPEND=" mono? ( dev-lang/mono ) python? ( ${PYTHON_DEPS} - dbus? ( dev-python/dbus-python[${PYTHON_USEDEP}] ) - introspection? ( dev-python/pygobject:3[${PYTHON_USEDEP}] ) - ) - bookmarks? ( - ${PYTHON_DEPS} - >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + bookmarks? ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] ) + dbus? ( dev-python/dbus-python[${PYTHON_USEDEP}] ) + introspection? ( dev-python/pygobject:3[${PYTHON_USEDEP}] ) + ') ) " RDEPEND=" @@ -83,7 +83,7 @@ PATCHES=( pkg_setup() { use mono && mono-env_pkg_setup - use python || use bookmarks && python_setup + use python && python-single-r1_pkg_setup } src_prepare() { @@ -166,8 +166,10 @@ multilib_src_compile() { multilib_src_install() { emake install DESTDIR="${D}" - use bookmarks && use python && use dbus || \ - rm -f "${ED}"/usr/bin/avahi-bookmarks + + if ! use bookmarks || ! use python || ! use dbus; then + rm -f "${ED}"/usr/bin/avahi-bookmarks || die + fi # https://github.com/lathiat/avahi/issues/28 use howl-compat && dosym avahi-compat-howl.pc /usr/$(get_libdir)/pkgconfig/howl.pc @@ -185,6 +187,8 @@ multilib_src_install() { } multilib_src_install_all() { + use python && python_optimize + if use autoipd; then insinto /lib/rcscripts/net doins "${FILESDIR}"/autoipd.sh |