Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/avahi: avahi-0.6.31-r2.ebuild ChangeLog
Date: Tue, 28 May 2013 02:12:34
Message-Id: 20130528021223.9904C2171E@flycatcher.gentoo.org
1 blueness 13/05/28 02:12:23
2
3 Modified: ChangeLog
4 Added: avahi-0.6.31-r2.ebuild
5 Log:
6 Fixes bugs #359575, #399369, #466210
7 Bug #359575 - only install avahi-discover when gtk is enabled
8 Bug #399369 - building python bindings do not depend on gtk
9 Bug #466210 - remove "/home/lennart/tmp/avahi" from man pages
10
11 (Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
12
13 Revision Changes Path
14 1.242 net-dns/avahi/ChangeLog
15
16 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/avahi/ChangeLog?rev=1.242&view=markup
17 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/avahi/ChangeLog?rev=1.242&content-type=text/plain
18 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/avahi/ChangeLog?r1=1.241&r2=1.242
19
20 Index: ChangeLog
21 ===================================================================
22 RCS file: /var/cvsroot/gentoo-x86/net-dns/avahi/ChangeLog,v
23 retrieving revision 1.241
24 retrieving revision 1.242
25 diff -u -r1.241 -r1.242
26 --- ChangeLog 26 May 2013 23:53:04 -0000 1.241
27 +++ ChangeLog 28 May 2013 02:12:23 -0000 1.242
28 @@ -1,6 +1,14 @@
29 # ChangeLog for net-dns/avahi
30 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
31 -# $Header: /var/cvsroot/gentoo-x86/net-dns/avahi/ChangeLog,v 1.241 2013/05/26 23:53:04 blueness Exp $
32 +# $Header: /var/cvsroot/gentoo-x86/net-dns/avahi/ChangeLog,v 1.242 2013/05/28 02:12:23 blueness Exp $
33 +
34 +*avahi-0.6.31-r2 (28 May 2013)
35 +
36 + 28 May 2013; Anthony G. Basile <blueness@g.o> +avahi-0.6.31-r2.ebuild,
37 + +files/avahi-0.6.31-fix-install-avahi-discover.patch:
38 + Fixes bugs #359575, #399369, #466210 Bug #359575 - only install avahi-
39 + discover when gtk is enabled Bug #399369 - building python bindings do not
40 + depend on gtk Bug #466210 - remove "/home/lennart/tmp/avahi" from man pages
41
42 26 May 2013; Anthony G. Basile <blueness@g.o> avahi-0.6.30-r1.ebuild,
43 avahi-0.6.30-r3.ebuild, avahi-0.6.31-r1.ebuild, avahi-0.6.31.ebuild:
44
45
46
47 1.1 net-dns/avahi/avahi-0.6.31-r2.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/avahi/avahi-0.6.31-r2.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/avahi/avahi-0.6.31-r2.ebuild?rev=1.1&content-type=text/plain
51
52 Index: avahi-0.6.31-r2.ebuild
53 ===================================================================
54 # Copyright 1999-2013 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/net-dns/avahi/avahi-0.6.31-r2.ebuild,v 1.1 2013/05/28 02:12:23 blueness Exp $
57
58 EAPI="5"
59
60 PYTHON_COMPAT=( python{2_5,2_6,2_7} )
61 PYTHON_REQ_USE="gdbm"
62
63 WANT_AUTOMAKE=1.11
64
65 inherit autotools eutils mono python-r1 multilib flag-o-matic user systemd
66
67 DESCRIPTION="System which facilitates service discovery on a local network"
68 HOMEPAGE="http://avahi.org/"
69 SRC_URI="http://avahi.org/download/${P}.tar.gz"
70
71 LICENSE="LGPL-2.1"
72 SLOT="0"
73 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-linux"
74 IUSE="autoipd bookmarks dbus doc gdbm gtk gtk3 howl-compat +introspection ipv6 kernel_linux mdnsresponder-compat mono python qt4 test utils"
75
76 REQUIRED_USE="
77 utils? ( || ( gtk gtk3 ) )
78 python? ( dbus gdbm )
79 mono? ( dbus )
80 howl-compat? ( dbus )
81 mdnsresponder-compat? ( dbus )
82 "
83
84 COMMON_DEPEND="
85 dev-libs/libdaemon
86 dev-libs/expat
87 dev-libs/glib:2
88 gdbm? ( sys-libs/gdbm )
89 qt4? ( dev-qt/qtcore:4 )
90 gtk? ( x11-libs/gtk+:2 )
91 gtk3? ( x11-libs/gtk+:3 )
92 dbus? ( sys-apps/dbus )
93 kernel_linux? ( sys-libs/libcap )
94 introspection? ( dev-libs/gobject-introspection )
95 mono? (
96 dev-lang/mono
97 gtk? ( dev-dotnet/gtk-sharp )
98 )
99 python? (
100 gtk? ( dev-python/pygtk )
101 dbus? ( dev-python/dbus-python )
102 )
103 bookmarks? (
104 dev-python/twisted
105 dev-python/twisted-web
106 )
107 "
108
109 DEPEND="
110 ${COMMON_DEPEND}
111 dev-util/intltool
112 virtual/pkgconfig
113 doc? (
114 app-doc/doxygen
115 mono? ( virtual/monodoc )
116 )
117 "
118
119 RDEPEND="
120 ${COMMON_DEPEND}
121 howl-compat? ( !net-misc/howl )
122 mdnsresponder-compat? ( !net-misc/mDNSResponder )
123 "
124
125 pkg_preinst() {
126 enewgroup netdev
127 enewgroup avahi
128 enewuser avahi -1 -1 -1 avahi
129
130 if use autoipd; then
131 enewgroup avahi-autoipd
132 enewuser avahi-autoipd -1 -1 -1 avahi-autoipd
133 fi
134 }
135
136 src_prepare() {
137 if use ipv6; then
138 sed -i \
139 -e s/use-ipv6=no/use-ipv6=yes/ \
140 avahi-daemon/avahi-daemon.conf || die
141 fi
142
143 sed -i\
144 -e "s:\\.\\./\\.\\./\\.\\./doc/avahi-docs/html/:../../../doc/${PF}/html/:" \
145 doxygen_to_devhelp.xsl || die
146
147 # Make gtk utils optional
148 epatch "${FILESDIR}"/${PN}-0.6.30-optional-gtk-utils.patch
149
150 # Fix init scripts for >=openrc-0.9.0, bug #383641
151 epatch "${FILESDIR}"/${PN}-0.6.x-openrc-0.9.x-init-scripts-fixes.patch
152
153 # install-exec-local -> install-exec-hook
154 epatch "${FILESDIR}"/${P}-install-exec-hook.patch
155
156 # Backport host-name-from-machine-id patch, bug #466134
157 epatch "${FILESDIR}"/${P}-host-name-from-machine-id.patch
158
159 # Don't install avahi-discover unless ENABLE_GTK_UTILS, bug #359575
160 epatch "${FILESDIR}"/${P}-fix-install-avahi-discover.patch
161
162 # Drop DEPRECATED flags, bug #384743
163 sed -i -e 's:-D[A-Z_]*DISABLE_DEPRECATED=1::g' avahi-ui/Makefile.am || die
164
165 # Fix references to Lennart's home directory, bug #466210
166 sed -i -e 's/\/home\/lennart\/tmp\/avahi//g' man/* || die
167
168 # Prevent .pyc files in DESTDIR
169 >py-compile
170
171 eautoreconf
172 }
173
174 src_configure() {
175 use sh && replace-flags -O? -O0
176
177 local myconf="--disable-static"
178
179 if use python; then
180 python_export_best
181 myconf+="
182 $(use_enable dbus python-dbus)
183 $(use_enable gtk pygtk)
184 "
185 fi
186
187 if use mono; then
188 myconf+=" $(use_enable doc monodoc)"
189 fi
190
191 # We need to unset DISPLAY, else the configure script might have problems detecting the pygtk module
192 unset DISPLAY
193
194 econf \
195 --localstatedir="${EPREFIX}/var" \
196 --with-distro=gentoo \
197 --disable-python-dbus \
198 --disable-pygtk \
199 --disable-xmltoman \
200 --disable-monodoc \
201 --enable-glib \
202 --enable-gobject \
203 $(use_enable test tests) \
204 $(use_enable autoipd) \
205 $(use_enable mdnsresponder-compat compat-libdns_sd) \
206 $(use_enable howl-compat compat-howl) \
207 $(use_enable doc doxygen-doc) \
208 $(use_enable mono) \
209 $(use_enable dbus) \
210 $(use_enable python) \
211 $(use_enable gtk) \
212 $(use_enable gtk3) \
213 $(use_enable introspection) \
214 $(use_enable utils gtk-utils) \
215 --disable-qt3 \
216 $(use_enable qt4) \
217 $(use_enable gdbm) \
218 $(systemd_with_unitdir) \
219 ${myconf}
220 }
221
222 src_compile() {
223 emake || die "emake failed"
224
225 use doc && { emake avahi.devhelp || die ; }
226 }
227
228 src_install() {
229 emake install DESTDIR="${D}" || die "make install failed"
230 use bookmarks && use python && use dbus && use gtk || \
231 rm -f "${ED}"/usr/bin/avahi-bookmarks
232
233 use howl-compat && ln -s avahi-compat-howl.pc "${ED}"/usr/$(get_libdir)/pkgconfig/howl.pc
234 use mdnsresponder-compat && ln -s avahi-compat-libdns_sd/dns_sd.h "${ED}"/usr/include/dns_sd.h
235
236 if use autoipd; then
237 insinto /$(get_libdir)/rcscripts/net
238 doins "${FILESDIR}"/autoipd.sh || die
239
240 insinto /$(get_libdir)/rc/net
241 newins "${FILESDIR}"/autoipd-openrc.sh autoipd.sh || die
242 fi
243
244 dodoc docs/{AUTHORS,NEWS,README,TODO} || die
245
246 if use doc; then
247 dohtml -r doxygen/html/. || die
248 insinto /usr/share/devhelp/books/avahi
249 doins avahi.devhelp || die
250 fi
251
252 find "${ED}" -name '*.la' -exec rm -f {} +
253 }
254
255 pkg_postinst() {
256 if use autoipd; then
257 elog
258 elog "To use avahi-autoipd to configure your interfaces with IPv4LL (RFC3927)"
259 elog "addresses, just set config_<interface>=( autoipd ) in /etc/conf.d/net!"
260 elog
261 fi
262 }