Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 621402 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/net-dns/avahi/avahi-0.6.32-r2.ebuild (-13 / +14 lines)
Lines 1-20 Link Here
1
# Copyright 1999-2017 Gentoo Foundation
1
# Copyright 1999-2017 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
EAPI="5"
4
EAPI=6
5
5
6
PYTHON_COMPAT=( python2_7 )
6
PYTHON_COMPAT=( python2_7 )
7
PYTHON_REQ_USE="gdbm"
7
PYTHON_REQ_USE="gdbm"
8
8
9
WANT_AUTOMAKE=1.11
9
inherit autotools flag-o-matic multilib multilib-minimal mono-env python-r1 systemd user
10
11
inherit autotools eutils flag-o-matic multilib multilib-minimal mono-env python-r1 systemd user
12
10
13
DESCRIPTION="System which facilitates service discovery on a local network"
11
DESCRIPTION="System which facilitates service discovery on a local network"
14
HOMEPAGE="http://avahi.org/"
12
HOMEPAGE="http://avahi.org/"
15
SRC_URI="https://github.com/lathiat/avahi/archive/v${PV}.tar.gz -> ${P}.tar.gz"
13
SRC_URI="https://github.com/lathiat/avahi/archive/v${PV}.tar.gz -> ${P}.tar.gz"
16
14
17
S="${WORKDIR}/${P}"
15
#S="${WORKDIR}/${P}"
18
16
19
LICENSE="LGPL-2.1"
17
LICENSE="LGPL-2.1"
20
SLOT="0"
18
SLOT="0"
Lines 71-76 Link Here
71
	selinux? ( sec-policy/selinux-avahi )
69
	selinux? ( sec-policy/selinux-avahi )
72
"
70
"
73
71
72
HTML_DOCS="doxygen/html"
73
PORTAGE_DOHTML_WARN_ON_SKIPPED_FILES=yes
74
74
pkg_preinst() {
75
pkg_preinst() {
75
	enewgroup netdev
76
	enewgroup netdev
76
	enewgroup avahi
77
	enewgroup avahi
Lines 99-119 Link Here
99
100
100
	# Make gtk utils optional
101
	# Make gtk utils optional
101
	# https://github.com/lathiat/avahi/issues/24
102
	# https://github.com/lathiat/avahi/issues/24
102
	epatch "${FILESDIR}"/${PN}-0.6.30-optional-gtk-utils.patch
103
	eapply -p0 "${FILESDIR}"/${PN}-0.6.30-optional-gtk-utils.patch
103
104
104
	# Don't install avahi-discover unless ENABLE_GTK_UTILS, bug #359575
105
	# Don't install avahi-discover unless ENABLE_GTK_UTILS, bug #359575
105
	# https://github.com/lathiat/avahi/issues/24
106
	# https://github.com/lathiat/avahi/issues/24
106
	epatch "${FILESDIR}"/${PN}-0.6.31-fix-install-avahi-discover.patch
107
	eapply "${FILESDIR}"/${PN}-0.6.31-fix-install-avahi-discover.patch
107
108
108
	# Fix build under various locales, bug #501664
109
	# Fix build under various locales, bug #501664
109
	# https://github.com/lathiat/avahi/issues/27
110
	# https://github.com/lathiat/avahi/issues/27
110
	epatch "${FILESDIR}"/${PN}-0.6.31-fix-locale-build.patch
111
	eapply "${FILESDIR}"/${PN}-0.6.31-fix-locale-build.patch
111
112
112
	# Update the init scripts for the new openrc, bug #594622
113
	# Update the init scripts for the new openrc, bug #594622
113
	epatch "${FILESDIR}"/${PN}-0.6.32-openrc-0.21.7-fix-init-scripts.patch
114
	eapply "${FILESDIR}"/${PN}-0.6.32-openrc-0.21.7-fix-init-scripts.patch
114
115
115
	# Bug #525832
116
	# Bug #525832
116
	epatch_user
117
	eapply_user
117
118
118
	# Prevent .pyc files in DESTDIR
119
	# Prevent .pyc files in DESTDIR
119
	>py-compile
120
	>py-compile
Lines 127-133 Link Here
127
src_configure() {
128
src_configure() {
128
	# those steps should be done once-per-ebuild rather than per-ABI
129
	# those steps should be done once-per-ebuild rather than per-ABI
129
	use sh && replace-flags -O? -O0
130
	use sh && replace-flags -O? -O0
130
	use python && python_export_best
131
	use python && python_setup && python_export #python_export_best
131
132
132
	# We need to unset DISPLAY, else the configure script might have problems detecting the pygtk module
133
	# We need to unset DISPLAY, else the configure script might have problems detecting the pygtk module
133
	unset DISPLAY
134
	unset DISPLAY
Lines 183-189 Link Here
183
		--disable-qt3 \
184
		--disable-qt3 \
184
		$(use_enable qt4) \
185
		$(use_enable qt4) \
185
		$(use_enable gdbm) \
186
		$(use_enable gdbm) \
186
		$(systemd_with_unitdir) \
187
		--with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
187
		"${myconf[@]}"
188
		"${myconf[@]}"
188
}
189
}
189
190
Lines 203-209 Link Here
203
	use mdnsresponder-compat && dosym avahi-compat-libdns_sd/dns_sd.h /usr/include/dns_sd.h
204
	use mdnsresponder-compat && dosym avahi-compat-libdns_sd/dns_sd.h /usr/include/dns_sd.h
204
205
205
	if multilib_is_native_abi && use doc; then
206
	if multilib_is_native_abi && use doc; then
206
		dohtml -r doxygen/html/. || die
207
		dodoc -r doxygen/html/. || die
207
		insinto /usr/share/devhelp/books/avahi
208
		insinto /usr/share/devhelp/books/avahi
208
		doins avahi.devhelp || die
209
		doins avahi.devhelp || die
209
	fi
210
	fi

Return to bug 621402