Lines 9-15
Link Here
|
9 |
|
9 |
|
10 |
WANT_AUTOMAKE=1.11 |
10 |
WANT_AUTOMAKE=1.11 |
11 |
|
11 |
|
12 |
inherit autotools eutils flag-o-matic multilib mono-env python-r1 systemd user |
12 |
inherit autotools-multilib eutils flag-o-matic multilib mono-env python-r1 systemd user |
13 |
|
13 |
|
14 |
DESCRIPTION="System which facilitates service discovery on a local network" |
14 |
DESCRIPTION="System which facilitates service discovery on a local network" |
15 |
HOMEPAGE="http://avahi.org/" |
15 |
HOMEPAGE="http://avahi.org/" |
Lines 29-50
Link Here
|
29 |
" |
29 |
" |
30 |
|
30 |
|
31 |
COMMON_DEPEND=" |
31 |
COMMON_DEPEND=" |
32 |
dev-libs/libdaemon |
32 |
dev-libs/libdaemon[${MULTILIB_USEDEP}] |
33 |
dev-libs/expat |
33 |
dev-libs/expat[${MULTILIB_USEDEP}] |
34 |
dev-libs/glib:2 |
34 |
dev-libs/glib:2[${MULTILIB_USEDEP}] |
35 |
gdbm? ( sys-libs/gdbm ) |
35 |
gdbm? ( sys-libs/gdbm[${MULTILIB_USEDEP}] ) |
36 |
qt4? ( dev-qt/qtcore:4 ) |
36 |
qt4? ( dev-qt/qtcore:4 ) |
37 |
gtk? ( x11-libs/gtk+:2 ) |
37 |
gtk? ( x11-libs/gtk+:2 ) |
38 |
gtk3? ( x11-libs/gtk+:3 ) |
38 |
gtk3? ( x11-libs/gtk+:3 ) |
39 |
dbus? ( sys-apps/dbus ) |
39 |
dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] ) |
40 |
kernel_linux? ( sys-libs/libcap ) |
40 |
kernel_linux? ( sys-libs/libcap[${MULTILIB_USEDEP}] ) |
41 |
introspection? ( dev-libs/gobject-introspection ) |
41 |
introspection? ( dev-libs/gobject-introspection[${MULTILIB_USEDEP}] ) |
42 |
mono? ( |
42 |
mono? ( |
43 |
dev-lang/mono |
43 |
dev-lang/mono[${MULTILIB_USEDEP}] |
44 |
gtk? ( dev-dotnet/gtk-sharp ) |
44 |
gtk? ( dev-dotnet/gtk-sharp[${MULTILIB_USEDEP}] ) |
45 |
) |
45 |
) |
46 |
python? ( |
46 |
python? ( |
47 |
${PYTHON_DEPS} |
|
|
48 |
gtk? ( dev-python/pygtk ) |
47 |
gtk? ( dev-python/pygtk ) |
49 |
dbus? ( dev-python/dbus-python ) |
48 |
dbus? ( dev-python/dbus-python ) |
50 |
) |
49 |
) |
Lines 122-197
Link Here
|
122 |
>py-compile |
117 |
>py-compile |
123 |
|
118 |
|
124 |
eautoreconf |
119 |
eautoreconf |
125 |
} |
|
|
126 |
|
120 |
|
127 |
src_configure() { |
121 |
# Needed only to copy precompiled man pages |
|
|
122 |
multilib_copy_sources |
123 |
|
128 |
use sh && replace-flags -O? -O0 |
124 |
use sh && replace-flags -O? -O0 |
|
|
125 |
} |
129 |
|
126 |
|
130 |
local myconf="--disable-static" |
127 |
src_configure() { |
|
|
128 |
local myeconfargs=( |
129 |
--disable-static |
130 |
) |
131 |
|
131 |
|
132 |
if use python; then |
132 |
if use python; then |
133 |
python_export_best |
133 |
python_export_best |
134 |
myconf+=" |
134 |
myeconfargs+=( |
135 |
$(use_enable dbus python-dbus) |
135 |
$(use_enable dbus python-dbus) |
136 |
$(use_enable gtk pygtk) |
136 |
$(use_enable gtk pygtk) |
137 |
" |
137 |
) |
|
|
138 |
|
138 |
fi |
139 |
fi |
139 |
|
140 |
|
140 |
if use mono; then |
141 |
if use mono; then |
141 |
myconf+=" $(use_enable doc monodoc)" |
142 |
myeconfargs+=( |
|
|
143 |
$(use_enable doc monodoc) |
144 |
) |
142 |
fi |
145 |
fi |
143 |
|
146 |
|
144 |
# We need to unset DISPLAY, else the configure script might have problems detecting the pygtk module |
147 |
# We need to unset DISPLAY, else the configure script might have problems detecting the pygtk module |
145 |
unset DISPLAY |
148 |
unset DISPLAY |
146 |
|
149 |
|
147 |
econf \ |
150 |
myeconfargs+=( |
148 |
--localstatedir="${EPREFIX}/var" \ |
151 |
--localstatedir="${EPREFIX}/var" |
149 |
--with-distro=gentoo \ |
152 |
--with-distro=gentoo |
150 |
--disable-python-dbus \ |
153 |
--disable-python-dbus |
151 |
--disable-pygtk \ |
154 |
--disable-pygtk |
152 |
--disable-xmltoman \ |
155 |
--disable-xmltoman |
153 |
--disable-monodoc \ |
156 |
--disable-monodoc |
154 |
--enable-glib \ |
157 |
--enable-glib |
155 |
--enable-gobject \ |
158 |
--enable-gobject |
156 |
$(use_enable test tests) \ |
159 |
$(use_enable test tests) |
157 |
$(use_enable autoipd) \ |
160 |
$(use_enable autoipd) |
158 |
$(use_enable mdnsresponder-compat compat-libdns_sd) \ |
161 |
$(use_enable mdnsresponder-compat compat-libdns_sd) |
159 |
$(use_enable howl-compat compat-howl) \ |
162 |
$(use_enable howl-compat compat-howl) |
160 |
$(use_enable doc doxygen-doc) \ |
163 |
$(use_enable doc doxygen-doc) |
161 |
$(use_enable mono) \ |
164 |
$(use_enable mono) |
162 |
$(use_enable dbus) \ |
165 |
$(use_enable dbus) |
163 |
$(use_enable python) \ |
166 |
$(use_enable python) |
164 |
$(use_enable gtk) \ |
167 |
$(use_enable nls) |
165 |
$(use_enable gtk3) \ |
168 |
$(use_enable introspection) |
166 |
$(use_enable nls) \ |
169 |
--disable-qt3 |
167 |
$(use_enable introspection) \ |
170 |
$(use_enable gdbm) |
168 |
$(use_enable utils gtk-utils) \ |
171 |
$(systemd_with_unitdir) |
169 |
--disable-qt3 \ |
172 |
) |
170 |
$(use_enable qt4) \ |
173 |
if multilib_build_binaries; then |
171 |
$(use_enable gdbm) \ |
174 |
myeconfargs+=( |
172 |
$(systemd_with_unitdir) \ |
175 |
$(use_enable utils gtk-utils) |
173 |
${myconf} |
176 |
$(use_enable gtk) |
|
|
177 |
$(use_enable gtk3) |
178 |
$(use_enable qt4) |
179 |
) |
180 |
fi |
181 |
autotools-multilib_src_configure |
174 |
} |
182 |
} |
175 |
|
183 |
|
176 |
src_compile() { |
184 |
src_compile() { |
177 |
emake || die "emake failed" |
185 |
autotools-multilib_src_compile |
178 |
|
186 |
|
179 |
use doc && { emake avahi.devhelp || die ; } |
187 |
use doc && { emake avahi.devhelp || die ; } |
180 |
} |
188 |
} |
181 |
|
189 |
|
|
|
190 |
_avahi_multilib_install() { |
191 |
use howl-compat && ln -s avahi-compat-howl.pc "${ED}"/usr/$(get_libdir)/pkgconfig/howl.pc |
192 |
} |
193 |
|
182 |
src_install() { |
194 |
src_install() { |
183 |
emake install DESTDIR="${D}" || die "make install failed" |
195 |
autotools-multilib_src_install |
|
|
196 |
|
184 |
use bookmarks && use python && use dbus && use gtk || \ |
197 |
use bookmarks && use python && use dbus && use gtk || \ |
185 |
rm -f "${ED}"/usr/bin/avahi-bookmarks |
198 |
rm -f "${ED}"/usr/bin/avahi-bookmarks |
186 |
|
199 |
|
187 |
use howl-compat && ln -s avahi-compat-howl.pc "${ED}"/usr/$(get_libdir)/pkgconfig/howl.pc |
200 |
multilib_parallel_foreach_abi _avahi_multilib_install |
188 |
use mdnsresponder-compat && ln -s avahi-compat-libdns_sd/dns_sd.h "${ED}"/usr/include/dns_sd.h |
201 |
use mdnsresponder-compat && ln -s avahi-compat-libdns_sd/dns_sd.h "${ED}"/usr/include/dns_sd.h |
189 |
|
202 |
|
190 |
if use autoipd; then |
203 |
if use autoipd; then |
191 |
insinto /$(get_libdir)/rcscripts/net |
204 |
# /lib is correct here (either a symlink to the default libdir or non-abi-specific) |
|
|
205 |
insinto /lib/rcscripts/net |
192 |
doins "${FILESDIR}"/autoipd.sh || die |
206 |
doins "${FILESDIR}"/autoipd.sh || die |
193 |
|
207 |
|
194 |
insinto /$(get_libdir)/rc/net |
208 |
insinto /lib/rc/net |
195 |
newins "${FILESDIR}"/autoipd-openrc.sh autoipd.sh || die |
209 |
newins "${FILESDIR}"/autoipd-openrc.sh autoipd.sh || die |
196 |
fi |
210 |
fi |
197 |
|
211 |
|