Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/avahi/
Date: Fri, 25 Sep 2015 02:03:34
Message-Id: 1443146890.732af8ecdebddb349665d2fc99d3a5469a225093.blueness@gentoo
1 commit: 732af8ecdebddb349665d2fc99d3a5469a225093
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 25 02:08:10 2015 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 25 02:08:10 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=732af8ec
7
8 net-dns/avahi: remove older unstable version.
9
10 Package-Manager: portage-2.2.20.1
11
12 net-dns/avahi/avahi-0.6.31-r7.ebuild | 245 -----------------------------------
13 1 file changed, 245 deletions(-)
14
15 diff --git a/net-dns/avahi/avahi-0.6.31-r7.ebuild b/net-dns/avahi/avahi-0.6.31-r7.ebuild
16 deleted file mode 100644
17 index 974a9e7..0000000
18 --- a/net-dns/avahi/avahi-0.6.31-r7.ebuild
19 +++ /dev/null
20 @@ -1,245 +0,0 @@
21 -# Copyright 1999-2015 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -# $Id$
24 -
25 -EAPI="5"
26 -
27 -PYTHON_COMPAT=( python2_7 )
28 -PYTHON_REQ_USE="gdbm"
29 -
30 -WANT_AUTOMAKE=1.11
31 -
32 -inherit autotools eutils flag-o-matic multilib multilib-minimal mono-env \
33 - python-r1 systemd user
34 -
35 -DESCRIPTION="System which facilitates service discovery on a local network"
36 -HOMEPAGE="http://avahi.org/"
37 -SRC_URI="http://avahi.org/download/${P}.tar.gz"
38 -
39 -LICENSE="LGPL-2.1"
40 -SLOT="0"
41 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-linux"
42 -IUSE="autoipd bookmarks dbus doc gdbm gtk gtk3 howl-compat +introspection ipv6 kernel_linux mdnsresponder-compat mono nls python qt4 selinux test utils"
43 -
44 -REQUIRED_USE="
45 - utils? ( || ( gtk gtk3 ) )
46 - python? ( dbus gdbm )
47 - mono? ( dbus )
48 - howl-compat? ( dbus )
49 - mdnsresponder-compat? ( dbus )
50 -"
51 -
52 -COMMON_DEPEND="
53 - dev-libs/libdaemon
54 - dev-libs/expat
55 - >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}]
56 - gdbm? ( >=sys-libs/gdbm-1.10-r1[${MULTILIB_USEDEP}] )
57 - qt4? ( dev-qt/qtcore:4[${MULTILIB_USEDEP}] )
58 - gtk? ( x11-libs/gtk+:2[${MULTILIB_USEDEP}] )
59 - gtk3? ( x11-libs/gtk+:3[${MULTILIB_USEDEP}] )
60 - dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] )
61 - kernel_linux? ( sys-libs/libcap )
62 - introspection? ( dev-libs/gobject-introspection )
63 - mono? (
64 - dev-lang/mono
65 - gtk? ( dev-dotnet/gtk-sharp )
66 - )
67 - python? (
68 - ${PYTHON_DEPS}
69 - gtk? ( dev-python/pygtk )
70 - dbus? ( dev-python/dbus-python )
71 - )
72 - bookmarks? (
73 - dev-python/twisted-core
74 - dev-python/twisted-web
75 - )
76 -"
77 -
78 -DEPEND="
79 - ${COMMON_DEPEND}
80 - dev-util/intltool
81 - >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
82 - doc? (
83 - app-doc/doxygen
84 - )
85 -"
86 -
87 -RDEPEND="
88 - ${COMMON_DEPEND}
89 - howl-compat? ( !net-misc/howl )
90 - mdnsresponder-compat? ( !net-misc/mDNSResponder )
91 - selinux? ( sec-policy/selinux-avahi )
92 -"
93 -
94 -pkg_preinst() {
95 - enewgroup netdev
96 - enewgroup avahi
97 - enewuser avahi -1 -1 -1 avahi
98 -
99 - if use autoipd; then
100 - enewgroup avahi-autoipd
101 - enewuser avahi-autoipd -1 -1 -1 avahi-autoipd
102 - fi
103 -}
104 -
105 -pkg_setup() {
106 - use mono && mono-env_pkg_setup
107 -}
108 -
109 -src_prepare() {
110 - if use ipv6; then
111 - sed -i \
112 - -e s/use-ipv6=no/use-ipv6=yes/ \
113 - avahi-daemon/avahi-daemon.conf || die
114 - fi
115 -
116 - sed -i\
117 - -e "s:\\.\\./\\.\\./\\.\\./doc/avahi-docs/html/:../../../doc/${PF}/html/:" \
118 - doxygen_to_devhelp.xsl || die
119 -
120 - # Make gtk utils optional
121 - epatch "${FILESDIR}"/${PN}-0.6.30-optional-gtk-utils.patch
122 -
123 - # Fix init scripts for >=openrc-0.9.0, bug #383641
124 - epatch "${FILESDIR}"/${PN}-0.6.x-openrc-0.9.x-init-scripts-fixes.patch
125 -
126 - # install-exec-local -> install-exec-hook
127 - epatch "${FILESDIR}"/${P}-install-exec-hook.patch
128 -
129 - # Backport host-name-from-machine-id patch, bug #466134
130 - epatch "${FILESDIR}"/${P}-host-name-from-machine-id.patch
131 -
132 - # Don't install avahi-discover unless ENABLE_GTK_UTILS, bug #359575
133 - epatch "${FILESDIR}"/${P}-fix-install-avahi-discover.patch
134 -
135 - epatch "${FILESDIR}"/${P}-so_reuseport-may-not-exist-in-running-kernel.patch
136 -
137 - # allow building client without the daemon
138 - epatch "${FILESDIR}"/${P}-build-client-without-daemon.patch
139 -
140 - # Fix build under various locales, bug #501664
141 - epatch "${FILESDIR}"/${P}-fix-locale-build.patch
142 -
143 - # Drop DEPRECATED flags, bug #384743
144 - sed -i -e 's:-D[A-Z_]*DISABLE_DEPRECATED=1::g' avahi-ui/Makefile.am || die
145 -
146 - # Fix references to Lennart's home directory, bug #466210
147 - sed -i -e 's/\/home\/lennart\/tmp\/avahi//g' man/* || die
148 -
149 - # Bug #525832
150 - epatch_user
151 -
152 - # Prevent .pyc files in DESTDIR
153 - >py-compile
154 -
155 - eautoreconf
156 -
157 - # bundled manpages
158 - multilib_copy_sources
159 -}
160 -
161 -src_configure() {
162 - # those steps should be done once-per-ebuild rather than per-ABI
163 - use sh && replace-flags -O? -O0
164 - use python && python_export_best
165 -
166 - # We need to unset DISPLAY, else the configure script might have problems detecting the pygtk module
167 - unset DISPLAY
168 -
169 - multilib-minimal_src_configure
170 -}
171 -
172 -multilib_src_configure() {
173 - local myconf=( --disable-static )
174 -
175 - if use python; then
176 - myconf+=(
177 - $(multilib_native_use_enable dbus python-dbus)
178 - $(multilib_native_use_enable gtk pygtk)
179 - )
180 - fi
181 -
182 - if use mono; then
183 - myconf+=( $(multilib_native_use_enable doc monodoc) )
184 - fi
185 -
186 - if ! multilib_is_native_abi; then
187 - myconf+=(
188 - # used by daemons only
189 - --disable-libdaemon
190 - --with-xml=none
191 - )
192 - fi
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 - $(multilib_native_use_enable test tests) \
204 - $(multilib_native_use_enable autoipd) \
205 - $(use_enable mdnsresponder-compat compat-libdns_sd) \
206 - $(use_enable howl-compat compat-howl) \
207 - $(multilib_native_use_enable doc doxygen-doc) \
208 - $(multilib_native_use_enable mono) \
209 - $(use_enable dbus) \
210 - $(multilib_native_use_enable python) \
211 - $(use_enable gtk) \
212 - $(use_enable gtk3) \
213 - $(use_enable nls) \
214 - $(multilib_native_use_enable introspection) \
215 - $(multilib_native_use_enable utils gtk-utils) \
216 - --disable-qt3 \
217 - $(use_enable qt4) \
218 - $(use_enable gdbm) \
219 - $(systemd_with_unitdir) \
220 - "${myconf[@]}"
221 -}
222 -
223 -multilib_src_compile() {
224 - emake
225 -
226 - multilib_is_native_abi && use doc && emake avahi.devhelp
227 -}
228 -
229 -multilib_src_install() {
230 - emake install DESTDIR="${D}"
231 - use bookmarks && use python && use dbus && use gtk || \
232 - rm -f "${ED}"/usr/bin/avahi-bookmarks
233 -
234 - use howl-compat && dosym avahi-compat-howl.pc /usr/$(get_libdir)/pkgconfig/howl.pc
235 - use mdnsresponder-compat && dosym avahi-compat-libdns_sd/dns_sd.h /usr/include/dns_sd.h
236 -
237 - if multilib_is_native_abi && use doc; then
238 - dohtml -r doxygen/html/. || die
239 - insinto /usr/share/devhelp/books/avahi
240 - doins avahi.devhelp || die
241 - fi
242 -}
243 -
244 -multilib_src_install_all() {
245 - if use autoipd; then
246 - insinto /$(get_libdir)/rcscripts/net
247 - doins "${FILESDIR}"/autoipd.sh
248 -
249 - insinto /$(get_libdir)/netifrc/net
250 - newins "${FILESDIR}"/autoipd-openrc.sh autoipd.sh
251 - fi
252 -
253 - dodoc docs/{AUTHORS,NEWS,README,TODO}
254 -
255 - prune_libtool_files --all
256 -}
257 -
258 -pkg_postinst() {
259 - if use autoipd; then
260 - elog
261 - elog "To use avahi-autoipd to configure your interfaces with IPv4LL (RFC3927)"
262 - elog "addresses, just set config_<interface>=( autoipd ) in /etc/conf.d/net!"
263 - elog
264 - fi
265 -}