Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/avahi: ChangeLog avahi-0.6.25-r1.ebuild
Date: Tue, 09 Feb 2010 14:03:01
Message-Id: E1Neqg6-000154-PT@stork.gentoo.org
1 flameeyes 10/02/09 14:02:58
2
3 Modified: ChangeLog
4 Added: avahi-0.6.25-r1.ebuild
5 Log:
6 Port avahi to EAPI=2 to avoid built_with_use calls, restrict dbus dependency to something definitely more modern.
7 (Portage version: 2.2_rc62/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.173 net-dns/avahi/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/avahi/ChangeLog?rev=1.173&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/avahi/ChangeLog?rev=1.173&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/avahi/ChangeLog?r1=1.172&r2=1.173
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-dns/avahi/ChangeLog,v
19 retrieving revision 1.172
20 retrieving revision 1.173
21 diff -u -r1.172 -r1.173
22 --- ChangeLog 3 Jan 2010 15:23:37 -0000 1.172
23 +++ ChangeLog 9 Feb 2010 14:02:58 -0000 1.173
24 @@ -1,6 +1,13 @@
25 # ChangeLog for net-dns/avahi
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-dns/avahi/ChangeLog,v 1.172 2010/01/03 15:23:37 ssuominen Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-dns/avahi/ChangeLog,v 1.173 2010/02/09 14:02:58 flameeyes Exp $
29 +
30 +*avahi-0.6.25-r1 (09 Feb 2010)
31 +
32 + 09 Feb 2010; Diego E. Pettenò <flameeyes@g.o>
33 + +avahi-0.6.25-r1.ebuild:
34 + Port avahi to EAPI=2 to avoid built_with_use calls, restrict dbus
35 + dependency to something definitely more modern.
36
37 03 Jan 2010; Samuli Suominen <ssuominen@g.o>
38 avahi-0.6.24-r2.ebuild, avahi-0.6.25.ebuild:
39
40
41
42 1.1 net-dns/avahi/avahi-0.6.25-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/avahi/avahi-0.6.25-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/avahi/avahi-0.6.25-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: avahi-0.6.25-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-dns/avahi/avahi-0.6.25-r1.ebuild,v 1.1 2010/02/09 14:02:58 flameeyes Exp $
52
53 EAPI=2
54
55 inherit eutils mono python multilib autotools flag-o-matic
56
57 DESCRIPTION="System which facilitates service discovery on a local network"
58 HOMEPAGE="http://avahi.org/"
59 SRC_URI="http://avahi.org/download/${P}.tar.gz"
60
61 LICENSE="LGPL-2.1"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
64 IUSE="bookmarks howl-compat mdnsresponder-compat gdbm dbus doc mono gtk python qt4 autoipd kernel_linux test ipv6"
65
66 RDEPEND=">=dev-libs/libdaemon-0.11-r1
67 dev-libs/expat
68 >=dev-libs/glib-2
69 gdbm? ( sys-libs/gdbm )
70 qt4? ( x11-libs/qt-core:4 )
71 gtk? (
72 >=x11-libs/gtk+-2.4.0
73 >=gnome-base/libglade-2.4.0
74 )
75 dbus? (
76 >=sys-apps/dbus-0.30
77 python? ( dev-python/dbus-python )
78 )
79 mono? (
80 >=dev-lang/mono-1.1.10
81 gtk? ( >=dev-dotnet/gtk-sharp-2 )
82 )
83 howl-compat? ( !net-misc/howl )
84 mdnsresponder-compat? ( !net-misc/mDNSResponder )
85 python? (
86 >=dev-lang/python-2.4[gdbm]
87 gtk? ( >=dev-python/pygtk-2 )
88 )
89 bookmarks? (
90 dev-python/twisted
91 dev-python/twisted-web
92 )
93 kernel_linux? ( sys-libs/libcap )"
94 DEPEND="${RDEPEND}
95 >=dev-util/intltool-0.40.5
96 >=dev-util/pkgconfig-0.9.0
97 doc? (
98 app-doc/doxygen
99 mono? ( >=virtual/monodoc-1.1.8 )
100 )"
101
102 pkg_setup() {
103 if ( use mdnsresponder-compat || use howl-compat || use mono ) && ! use dbus
104 then
105 die "For *-compat or mono support you also need to enable the dbus USE flag!"
106 fi
107
108 if use bookmarks && ! ( use python && use dbus && use gtk )
109 then
110 die "For bookmarks support you also need to enable the python, dbus and gtk USE flags!"
111 fi
112
113 if use python && ! use dbus && ! use gtk
114 then
115 die "For proper python support you also need the dbus and gtk USE flags!"
116 fi
117 }
118
119 pkg_preinst() {
120 enewgroup netdev
121 enewgroup avahi
122 enewuser avahi -1 -1 -1 avahi
123
124 if use autoipd
125 then
126 enewgroup avahi-autoipd
127 enewuser avahi-autoipd -1 -1 -1 avahi-autoipd
128 fi
129 }
130
131 src_prepare() {
132 use ipv6 && sed -i -e s/use-ipv6=no/use-ipv6=yes/ avahi-daemon/avahi-daemon.conf
133
134 sed -i -e "s:\\.\\./\\.\\./\\.\\./doc/avahi-docs/html/:../../../doc/${PF}/html/:" doxygen_to_devhelp.xsl
135
136 rm -f common/libtool.m4 common/lt*.m4 || die "Removing libtool macros failed"
137
138 epatch "${FILESDIR}"/avahi-0.6.24-cmsg_space.patch
139 epatch "${FILESDIR}"/avahi-0.6.24-libintl.patch
140
141 eautoreconf
142 }
143
144 src_configure() {
145 use sh && replace-flags -O? -O0
146
147 local myconf=""
148
149 if use python
150 then
151 use dbus && myconf="${myconf} --enable-python-dbus"
152 use gtk && myconf="${myconf} --enable-pygtk"
153 fi
154
155 if use mono && use doc
156 then
157 myconf="${myconf} --enable-monodoc"
158 fi
159
160 # We need to unset DISPLAY, else the configure script might have problems detecting the pygtk module
161 unset DISPLAY
162
163 econf \
164 --localstatedir=/var \
165 --with-distro=gentoo \
166 --disable-python-dbus \
167 --disable-pygtk \
168 --disable-xmltoman \
169 --disable-monodoc \
170 --enable-glib \
171 $(use_enable test tests) \
172 $(use_enable autoipd) \
173 $(use_enable mdnsresponder-compat compat-libdns_sd) \
174 $(use_enable howl-compat compat-howl) \
175 $(use_enable doc doxygen-doc) \
176 $(use_enable mono) \
177 $(use_enable dbus) \
178 $(use_enable python) \
179 $(use_enable gtk) \
180 --disable-qt3 \
181 $(use_enable qt4) \
182 $(use_enable gdbm) \
183 ${myconf} \
184 || die "econf failed"
185 }
186
187 src_compile() {
188 emake || die "emake failed"
189
190 use doc && emake avahi.devhelp
191 }
192
193 src_install() {
194 emake install py_compile=true DESTDIR="${D}" || die "make install failed"
195 use bookmarks || rm -f "${D}"/usr/bin/avahi-bookmarks
196
197 use howl-compat && ln -s avahi-compat-howl.pc "${D}"/usr/$(get_libdir)/pkgconfig/howl.pc
198 use mdnsresponder-compat && ln -s avahi-compat-libdns_sd/dns_sd.h "${D}"/usr/include/dns_sd.h
199
200 if use autoipd
201 then
202 insinto /$(get_libdir)/rcscripts/net
203 doins "${FILESDIR}"/autoipd.sh
204
205 insinto /$(get_libdir)/rc/net
206 newins "${FILESDIR}"/autoipd-openrc.sh autoipd.sh
207 fi
208
209 dodoc docs/{AUTHORS,NEWS,README,TODO}
210
211 if use doc
212 then
213 dohtml -r doxygen/html/.
214 insinto /usr/share/devhelp/books/avahi
215 doins avahi.devhelp
216 fi
217 }
218
219 pkg_postrm() {
220 use python && python_mod_cleanup
221 }
222
223 pkg_postinst() {
224 if use python; then
225 python_version
226 python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/avahi
227 fi
228
229 if use autoipd
230 then
231 elog
232 elog "To use avahi-autoipd to configure your interfaces with IPv4LL (RFC3927)"
233 elog "addresses, just set config_<interface>=( autoipd ) in /etc/conf.d/net!"
234 elog
235 fi
236
237 if use dbus
238 then
239 elog
240 elog "If this is your first install of avahi please reload your dbus config"
241 elog "with /etc/init.d/dbus reload before starting avahi-daemon!"
242 elog
243 fi
244 }