|
Lines 1-24
Link Here
|
| 1 |
# Copyright 1999-2017 Gentoo Foundation |
1 |
# Copyright 1999-2017 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
|
3 |
|
| 4 |
EAPI="5" |
4 |
EAPI=6 |
| 5 |
|
5 |
|
| 6 |
PYTHON_COMPAT=( python2_7 ) |
6 |
PYTHON_COMPAT=( python2_7 ) |
| 7 |
PYTHON_REQ_USE="gdbm" |
7 |
PYTHON_REQ_USE="gdbm" |
| 8 |
|
8 |
|
| 9 |
WANT_AUTOMAKE=1.11 |
9 |
inherit autotools flag-o-matic multilib multilib-minimal mono-env python-r1 systemd user |
| 10 |
|
|
|
| 11 |
inherit autotools eutils flag-o-matic multilib multilib-minimal mono-env python-r1 systemd user |
| 12 |
|
10 |
|
| 13 |
DESCRIPTION="System which facilitates service discovery on a local network" |
11 |
DESCRIPTION="System which facilitates service discovery on a local network" |
| 14 |
HOMEPAGE="http://avahi.org/" |
12 |
HOMEPAGE="http://avahi.org/" |
| 15 |
SRC_URI="https://github.com/lathiat/avahi/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
13 |
SRC_URI="https://github.com/lathiat/avahi/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
| 16 |
|
14 |
|
| 17 |
S="${WORKDIR}/${P}" |
|
|
| 18 |
|
| 19 |
LICENSE="LGPL-2.1" |
15 |
LICENSE="LGPL-2.1" |
| 20 |
SLOT="0" |
16 |
SLOT="0" |
| 21 |
#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" |
|
|
| 22 |
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~x86" |
17 |
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~x86" |
| 23 |
IUSE="autoipd bookmarks dbus doc gdbm gtk gtk3 howl-compat +introspection ipv6 kernel_linux mdnsresponder-compat mono nls python qt4 selinux test utils" |
18 |
IUSE="autoipd bookmarks dbus doc gdbm gtk gtk3 howl-compat +introspection ipv6 kernel_linux mdnsresponder-compat mono nls python qt4 selinux test utils" |
| 24 |
|
19 |
|
|
Lines 71-76
Link Here
|
| 71 |
selinux? ( sec-policy/selinux-avahi ) |
66 |
selinux? ( sec-policy/selinux-avahi ) |
| 72 |
" |
67 |
" |
| 73 |
|
68 |
|
|
|
69 |
HTML_DOCS="doxygen/html" |
| 70 |
|
| 74 |
pkg_preinst() { |
71 |
pkg_preinst() { |
| 75 |
enewgroup netdev |
72 |
enewgroup netdev |
| 76 |
enewgroup avahi |
73 |
enewgroup avahi |
|
Lines 99-119
Link Here
|
| 99 |
|
96 |
|
| 100 |
# Make gtk utils optional |
97 |
# Make gtk utils optional |
| 101 |
# https://github.com/lathiat/avahi/issues/24 |
98 |
# https://github.com/lathiat/avahi/issues/24 |
| 102 |
epatch "${FILESDIR}"/${PN}-0.6.30-optional-gtk-utils.patch |
99 |
eapply -p0 "${FILESDIR}"/${PN}-0.6.30-optional-gtk-utils.patch |
| 103 |
|
100 |
|
| 104 |
# Don't install avahi-discover unless ENABLE_GTK_UTILS, bug #359575 |
101 |
# Don't install avahi-discover unless ENABLE_GTK_UTILS, bug #359575 |
| 105 |
# https://github.com/lathiat/avahi/issues/24 |
102 |
# https://github.com/lathiat/avahi/issues/24 |
| 106 |
epatch "${FILESDIR}"/${PN}-0.6.31-fix-install-avahi-discover.patch |
103 |
eapply "${FILESDIR}"/${PN}-0.6.31-fix-install-avahi-discover.patch |
| 107 |
|
104 |
|
| 108 |
# Fix build under various locales, bug #501664 |
105 |
# Fix build under various locales, bug #501664 |
| 109 |
# https://github.com/lathiat/avahi/issues/27 |
106 |
# https://github.com/lathiat/avahi/issues/27 |
| 110 |
epatch "${FILESDIR}"/${PN}-0.6.31-fix-locale-build.patch |
107 |
eapply "${FILESDIR}"/${PN}-0.6.31-fix-locale-build.patch |
| 111 |
|
108 |
|
| 112 |
# Update the init scripts for the new openrc, bug #594622 |
109 |
# Update the init scripts for the new openrc, bug #594622 |
| 113 |
epatch "${FILESDIR}"/${PN}-0.6.32-openrc-0.21.7-fix-init-scripts.patch |
110 |
eapply "${FILESDIR}"/${PN}-0.6.32-openrc-0.21.7-fix-init-scripts.patch |
| 114 |
|
111 |
|
| 115 |
# Bug #525832 |
112 |
# Bug #525832 |
| 116 |
epatch_user |
113 |
eapply_user |
| 117 |
|
114 |
|
| 118 |
# Prevent .pyc files in DESTDIR |
115 |
# Prevent .pyc files in DESTDIR |
| 119 |
>py-compile |
116 |
>py-compile |
|
Lines 127-133
Link Here
|
| 127 |
src_configure() { |
124 |
src_configure() { |
| 128 |
# those steps should be done once-per-ebuild rather than per-ABI |
125 |
# those steps should be done once-per-ebuild rather than per-ABI |
| 129 |
use sh && replace-flags -O? -O0 |
126 |
use sh && replace-flags -O? -O0 |
| 130 |
use python && python_export_best |
127 |
use python && python_setup && python_export #python_export_best |
| 131 |
|
128 |
|
| 132 |
# We need to unset DISPLAY, else the configure script might have problems detecting the pygtk module |
129 |
# We need to unset DISPLAY, else the configure script might have problems detecting the pygtk module |
| 133 |
unset DISPLAY |
130 |
unset DISPLAY |
|
Lines 183-189
Link Here
|
| 183 |
--disable-qt3 \ |
180 |
--disable-qt3 \ |
| 184 |
$(use_enable qt4) \ |
181 |
$(use_enable qt4) \ |
| 185 |
$(use_enable gdbm) \ |
182 |
$(use_enable gdbm) \ |
| 186 |
$(systemd_with_unitdir) \ |
183 |
--with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ |
| 187 |
"${myconf[@]}" |
184 |
"${myconf[@]}" |
| 188 |
} |
185 |
} |
| 189 |
|
186 |
|
|
Lines 203-209
Link Here
|
| 203 |
use mdnsresponder-compat && dosym avahi-compat-libdns_sd/dns_sd.h /usr/include/dns_sd.h |
200 |
use mdnsresponder-compat && dosym avahi-compat-libdns_sd/dns_sd.h /usr/include/dns_sd.h |
| 204 |
|
201 |
|
| 205 |
if multilib_is_native_abi && use doc; then |
202 |
if multilib_is_native_abi && use doc; then |
| 206 |
dohtml -r doxygen/html/. || die |
203 |
dodoc -r doxygen/html/. || die |
| 207 |
insinto /usr/share/devhelp/books/avahi |
204 |
insinto /usr/share/devhelp/books/avahi |
| 208 |
doins avahi.devhelp || die |
205 |
doins avahi.devhelp || die |
| 209 |
fi |
206 |
fi |