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

Collapse All | Expand All

(-)/usr/portage/net-dns/avahi/avahi-0.6.31-r4.ebuild (-45 / +60 lines)
Lines 9-15 Link Here
9
9
10
WANT_AUTOMAKE=1.11
10
WANT_AUTOMAKE=1.11
11
11
12
inherit autotools eutils flag-o-matic multilib mono-env python-r1 systemd user
12
inherit autotools eutils flag-o-matic multilib mono-env python-r1 systemd user multilib-minimal
13
13
14
DESCRIPTION="System which facilitates service discovery on a local network"
14
DESCRIPTION="System which facilitates service discovery on a local network"
15
HOMEPAGE="http://avahi.org/"
15
HOMEPAGE="http://avahi.org/"
Lines 29-43 Link Here
29
"
29
"
30
30
31
COMMON_DEPEND="
31
COMMON_DEPEND="
32
	dev-libs/libdaemon
32
	dev-libs/libdaemon[${MULTILIB_USEDEP}]
33
	dev-libs/expat
33
	dev-libs/expat[${MULTILIB_USEDEP}]
34
	dev-libs/glib:2
34
	dev-libs/glib:2[${MULTILIB_USEDEP}]
35
	gdbm? ( sys-libs/gdbm )
35
	gdbm? ( sys-libs/gdbm[${MULTILIB_USEDEP}] )
36
	qt4? ( dev-qt/qtcore:4 )
36
	qt4? ( dev-qt/qtcore:4 )
37
	gtk? ( x11-libs/gtk+:2 )
37
	gtk? ( x11-libs/gtk+:2 )
38
	gtk3? ( x11-libs/gtk+:3 )
38
	gtk3? ( x11-libs/gtk+:3 )
39
	dbus? ( sys-apps/dbus )
39
	dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
40
	kernel_linux? ( sys-libs/libcap )
40
	kernel_linux? ( sys-libs/libcap[${MULTILIB_USEDEP}] )
41
	introspection? ( dev-libs/gobject-introspection )
41
	introspection? ( dev-libs/gobject-introspection )
42
	mono? (
42
	mono? (
43
		dev-lang/mono
43
		dev-lang/mono
Lines 58-66 Link Here
58
	${COMMON_DEPEND}
58
	${COMMON_DEPEND}
59
	dev-util/intltool
59
	dev-util/intltool
60
	virtual/pkgconfig
60
	virtual/pkgconfig
61
	doc? (
61
	doc? ( app-doc/doxygen )
62
		app-doc/doxygen
63
	)
64
"
62
"
65
63
66
RDEPEND="
64
RDEPEND="
Lines 69-74 Link Here
69
	mdnsresponder-compat? ( !net-misc/mDNSResponder )
67
	mdnsresponder-compat? ( !net-misc/mDNSResponder )
70
"
68
"
71
69
70
MULTILIB_WRAPPED_HEADERS=(
71
	/usr/include/avahi-qt4/qt-watch.h
72
	/usr/include/avahi-ui/avahi-ui.h
73
	)
74
72
pkg_preinst() {
75
pkg_preinst() {
73
	enewgroup netdev
76
	enewgroup netdev
74
	enewgroup avahi
77
	enewgroup avahi
Lines 122-149 Link Here
122
	>py-compile
125
	>py-compile
123
126
124
	eautoreconf
127
	eautoreconf
128
129
	multilib_copy_sources
125
}
130
}
126
131
127
src_configure() {
132
multilib_src_configure() {
128
	use sh && replace-flags -O? -O0
133
	use sh && replace-flags -O? -O0
129
134
130
	local myconf="--disable-static"
135
	local myconf="--disable-static"
131
136
132
	if use python; then
137
	# enable python/mono bindings only on native abi
133
		python_export_best
138
	if multilib_is_native_abi; then
134
		myconf+="
139
		if use python; then
135
			$(use_enable dbus python-dbus)
140
			python_export_best
136
			$(use_enable gtk pygtk)
141
			myconf+="
137
		"
142
				$(use_enable dbus python-dbus)
138
	fi
143
				$(use_enable gtk pygtk)
139
144
			"
140
	if use mono; then
145
		fi
141
		myconf+=" $(use_enable doc monodoc)"
146
147
		if use mono; then
148
			myconf+=" $(use_enable doc monodoc)"
149
		fi
142
	fi
150
	fi
143
151
144
	# We need to unset DISPLAY, else the configure script might have problems detecting the pygtk module
152
	# We need to unset DISPLAY, else the configure script might have problems detecting the pygtk module
145
	unset DISPLAY
153
	unset DISPLAY
146
154
	
155
	ECONF_SOURCE="${S}" \
147
	econf \
156
	econf \
148
		--localstatedir="${EPREFIX}/var" \
157
		--localstatedir="${EPREFIX}/var" \
149
		--with-distro=gentoo \
158
		--with-distro=gentoo \
Lines 157-191 Link Here
157
		$(use_enable autoipd) \
166
		$(use_enable autoipd) \
158
		$(use_enable mdnsresponder-compat compat-libdns_sd) \
167
		$(use_enable mdnsresponder-compat compat-libdns_sd) \
159
		$(use_enable howl-compat compat-howl) \
168
		$(use_enable howl-compat compat-howl) \
160
		$(use_enable doc doxygen-doc) \
169
		$(multilib_native_use_enable doc doxygen-doc) \
161
		$(use_enable mono) \
170
		$(multilib_native_use_enable mono) \
162
		$(use_enable dbus) \
171
		$(use_enable dbus) \
163
		$(use_enable python) \
172
		$(multilib_native_use_enable python) \
164
		$(use_enable gtk) \
173
		$(multilib_native_use_enable gtk) \
165
		$(use_enable gtk3) \
174
		$(multilib_native_use_enable gtk3) \
166
		$(use_enable nls) \
175
		$(use_enable nls) \
167
		$(use_enable introspection) \
176
		$(multilib_native_use_enable introspection) \
168
		$(use_enable utils gtk-utils) \
177
		$(multilib_native_use_enable utils gtk-utils) \
169
		--disable-qt3 \
178
		--disable-qt3 \
170
		$(use_enable qt4) \
179
		$(multilib_native_use_enable qt4) \
171
		$(use_enable gdbm) \
180
		$(use_enable gdbm) \
172
		$(systemd_with_unitdir) \
181
		$(systemd_with_unitdir) \
173
		${myconf}
182
		${myconf}
174
}
183
}
175
184
176
src_compile() {
185
multilib_src_compile() {
177
	emake || die "emake failed"
186
	emake
178
187
179
	use doc && { emake avahi.devhelp || die ; }
188
	multilib_is_native_abi && use doc && { emake avahi.devhelp ; }
180
}
189
}
181
190
182
src_install() {
191
multilib_src_install() {
183
	emake install DESTDIR="${D}" || die "make install failed"
192
	emake install DESTDIR="${D}"
184
	use bookmarks && use python && use dbus && use gtk || \
185
		rm -f "${ED}"/usr/bin/avahi-bookmarks
186
193
187
	use howl-compat && ln -s avahi-compat-howl.pc "${ED}"/usr/$(get_libdir)/pkgconfig/howl.pc
194
	use howl-compat && ln -s avahi-compat-howl.pc "${ED}"/usr/$(get_libdir)/pkgconfig/howl.pc
188
	use mdnsresponder-compat && ln -s avahi-compat-libdns_sd/dns_sd.h "${ED}"/usr/include/dns_sd.h
189
195
190
	if use autoipd; then
196
	if use autoipd; then
191
		insinto /$(get_libdir)/rcscripts/net
197
		insinto /$(get_libdir)/rcscripts/net
Lines 194-209 Link Here
194
		insinto /$(get_libdir)/rc/net
200
		insinto /$(get_libdir)/rc/net
195
		newins "${FILESDIR}"/autoipd-openrc.sh autoipd.sh || die
201
		newins "${FILESDIR}"/autoipd-openrc.sh autoipd.sh || die
196
	fi
202
	fi
203
	
204
	if multilib_is_native_abi; then
205
		use mdnsresponder-compat && ln -s avahi-compat-libdns_sd/dns_sd.h "${ED}"/usr/include/dns_sd.h
197
206
198
	dodoc docs/{AUTHORS,NEWS,README,TODO} || die
207
		if use doc; then
199
208
			dohtml -r doxygen/html/.
200
	if use doc; then
209
			insinto /usr/share/devhelp/books/avahi
201
		dohtml -r doxygen/html/. || die
210
			doins avahi.devhelp
202
		insinto /usr/share/devhelp/books/avahi
211
		fi
203
		doins avahi.devhelp || die
204
	fi
212
	fi
213
}
214
215
multilib_src_install_all() {
216
	use bookmarks && use python && use dbus && use gtk || \
217
		rm -f "${ED}"/usr/bin/avahi-bookmarks
218
	
219
	dodoc docs/{AUTHORS,NEWS,README,TODO}
205
220
206
	find "${ED}" -name '*.la' -exec rm -f {} +
221
	prune_libtool_files --all
207
}
222
}
208
223
209
pkg_postinst() {
224
pkg_postinst() {

Return to bug 503160