net-misc/minidlna: Control avahi via cache override
authorMichał Górny <mgorny@gentoo.org>
Sun, 25 Nov 2018 21:24:37 +0000 (22:24 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 25 Nov 2018 21:42:58 +0000 (22:42 +0100)
Use autoconf cache variable override to disable avahi instead
of patching the build system.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
net-misc/minidlna/minidlna-1.2.1-r1.ebuild

index 9fa0106ae8b91fcaabc0aa25e92eda091f9ea469..5a9c0e66902d3bd482b3415415c45adad450c70e 100644 (file)
@@ -30,8 +30,9 @@ DEPEND="${RDEPEND}
 
 CONFIG_CHECK="~INOTIFY_USER"
 
-PATCHES=( "${WORKDIR}"/minidlna-gentoo-artwork.patch
-       "${FILESDIR}"/${P}-buildsystem.patch )
+PATCHES=(
+       "${WORKDIR}"/minidlna-gentoo-artwork.patch
+)
 
 src_prepare() {
        sed -e "/log_dir/s:/var/log:/var/log/minidlna:" \
@@ -39,8 +40,6 @@ src_prepare() {
                -i minidlna.conf || die
 
        default
-
-       eautoreconf
 }
 
 src_configure() {
@@ -48,10 +47,12 @@ src_configure() {
                --with-db-path=/var/lib/minidlna
                --with-log-path=/var/log/minidlna
                --enable-tivo
-               $(use_enable avahi)
                $(use_enable netgear)
                $(use_enable readynas)
        )
+       use avahi || myconf+=(
+               ac_cv_lib_avahi_client_avahi_threaded_poll_new=no
+       )
 
        econf "${myconf[@]}"
 }