Use autoconf cache variable override to disable avahi instead
of patching the build system.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
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:" \
-i minidlna.conf || die
default
-
- eautoreconf
}
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[@]}"
}