add updated avahi

This commit is contained in:
Mario Fetka
2011-12-29 16:03:38 +01:00
parent ff86074791
commit efdc04a6e0
23 changed files with 738 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
AUX avahi-0.6.28-optional-gtk-utils.patch 1897 RMD160 a58dd32d6035b941dcaf337022c50b0b521e34f1 SHA1 a8794964f75ccede0b1953a65f9bd1a2863801dd SHA256 5bfe28c75d923cd858f591ddc090fc8c8d1bc605dcaaaf028c92ba4cbc098e8f
DIST avahi-0.6.30.tar.gz 1243534 RMD160 99dbc4f5711fd2962ac657811bebdb63947bd2c1 SHA1 5b77443537600a00770e4c77e3c443eeb5861d06 SHA256 f9e4316c2339d0020726edd846d01bee0c39980906db0c247479e5807457ff1f
EBUILD avahi-gtk-0.6.30.ebuild 1426 RMD160 bd98b7620c35dda4c22764c54f2102502a5670c7 SHA1 842d5db3fa3897847977cdc28dd1fce9795278ae SHA256 97a2424768386d024932f126f333da656c6f96fbb3065aa624fc465410e5fe47
MISC metadata.xml 220 RMD160 07c52cb369217fc5bbfffc4ba5ffc957d0810313 SHA1 83c1ba4fbc439d17563b2fe65df6c88cd594394d SHA256 e1f3a2843ea0147b5aa40aaf5ed41d3cb748d26e484a4abd07b5dc65c5e0e134

View File

@@ -0,0 +1,62 @@
# Copyright 1999-2011 Sabayon
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
IUSE="python utils dbus"
COMMON_DEPEND="=net-dns/avahi-base-${PVR}[dbus=,python=]
>=x11-libs/gtk+-2.14.0:2
python? ( >=dev-python/pygtk-2 )"
AVAHI_MODULE_DEPEND="${COMMON_DEPEND}"
AVAHI_MODULE_RDEPEND="${COMMON_DEPEND}"
AVAHI_PATCHES=( "${FILESDIR}/avahi-0.6.28-optional-gtk-utils.patch" )
inherit eutils python avahi
src_configure() {
local myconf=" --enable-gtk
--disable-gtk3
--disable-mono
$(use_enable dbus)
$(use_enable utils gtk-utils)
--enable-pygtk"
if use python; then
myconf+=" $(use_enable dbus python-dbus)"
fi
avahi_src_configure "${myconf}"
}
src_compile() {
for target in avahi-common avahi-client avahi-glib avahi-ui; do
cd "${S}"/${target} || die
emake || die
done
cd "${S}" || die
emake avahi-ui.pc || die
}
src_install() {
cd "${S}"/avahi-ui || die
emake install py_compile=true DESTDIR="${D}" || die
if use python; then
cd "${S}"/avahi-python/avahi-discover || die
emake install py_compile=true DESTDIR="${D}" || die
fi
cd "${S}" || die
dodir /usr/$(get_libdir)/pkgconfig
insinto /usr/$(get_libdir)/pkgconfig
doins avahi-ui.pc
avahi_src_install-cleanup
}
pkg_postrm() {
use python && python_mod_cleanup $(use dbus && echo avahi_discover)
}
pkg_postinst() {
use python && python_mod_optimize avahi $(use dbus && echo avahi_discover)
}

View File

@@ -0,0 +1,61 @@
--- avahi-discover-standalone/Makefile.am
+++ avahi-discover-standalone/Makefile.am
@@ -23,7 +23,7 @@
# This cool debug trap works on i386/gcc only
AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")'
-if HAVE_GTK2OR3
+if ENABLE_GTK_UTILS
if HAVE_GLIB
bin_PROGRAMS = \
avahi-discover-standalone
--- avahi-ui/Makefile.am
+++ avahi-ui/Makefile.am
@@ -76,6 +76,7 @@
libavahi_ui_gtk3_la_CFLAGS += -DDATABASE_FILE=\"$(pkglibdir)/service-types.db\"
endif
+if ENABLE_GTK_UTILS
bin_PROGRAMS = bssh
desktop_DATA += bssh.desktop bvnc.desktop
@INTLTOOL_DESKTOP_RULE@
@@ -102,6 +103,7 @@
bvnc.desktop.in: bvnc.desktop.in.in
$(AM_V_GEN)sed -e 's,@bindir\@,$(bindir),g' $< > $@
+endif # ENABLE_GTK_UTILS
endif # HAVE_GLIB
endif
endif
--- configure.ac
+++ configure.ac
@@ -564,7 +564,20 @@
fi
AM_CONDITIONAL(HAVE_GTK3, test "x$HAVE_GTK3" = "xyes")
+#
+# Check for GTK+ Utils
+#
+AC_ARG_ENABLE(gtk-utils,
+ AS_HELP_STRING([--disable-gtk-utils],[Disable GTK+ utilities]),
+ [case "${enableval}" in
+ yes) ENABLE_GTK_UTILS=yes ;;
+ no) ENABLE_GTK_UTILS=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-gtk-utils) ;;
+ esac],
+ [ENABLE_GTK_UTILS=yes])
+
AM_CONDITIONAL(HAVE_GTK2OR3, test "x$HAVE_GTK3" = "xyes" -o "x$HAVE_GTK" = "xyes" )
+AM_CONDITIONAL(ENABLE_GTK_UTILS, test "$HAVE_GTK2OR3" -a "x$ENABLE_GTK_UTILS" = "xyes" )
#
# D-Bus
@@ -1223,7 +1236,7 @@
Building avahi-python: ${BUILD_PYTHON}
Building libavahi-glib: ${HAVE_GLIB}
Building libavahi-gobject: ${BUILD_GOBJECT}
- Building avahi-discover-standalone: ${HAVE_GTK2OR3}
+ Building avahi-discover-standalone: ${ENABLE_GTK_UTILS}
Building libavahi-qt3: ${HAVE_QT3}
Building libavahi-qt4: ${HAVE_QT4}
Building avahi-sharp: ${HAVE_MONO}

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>no-herd</herd>
<maintainer>
<email>lxnay@gentoo.org</email>
</maintainer>
</pkgmetadata>