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