diff options
author | BlackNoxis <steven.darklight@gmail.com> | 2015-06-21 10:41:46 +0300 |
---|---|---|
committer | BlackNoxis <steven.darklight@gmail.com> | 2015-06-21 10:41:46 +0300 |
commit | 67cfaa660d1918e67e9ae1c7d9b4fa30a15eb4b1 (patch) | |
tree | 174cfa24b4c4b919c83465761b38699ead693341 /net-dns/avahi-gtk3/avahi-gtk3-0.6.31-r1.ebuild | |
parent | a3c6ae3d3ccd28d1dc8e87733845d4e72af6479b (diff) |
[avahi*] splited packages for avahi, so that avahi won`t get all of the repo installed
Diffstat (limited to 'net-dns/avahi-gtk3/avahi-gtk3-0.6.31-r1.ebuild')
-rw-r--r-- | net-dns/avahi-gtk3/avahi-gtk3-0.6.31-r1.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/net-dns/avahi-gtk3/avahi-gtk3-0.6.31-r1.ebuild b/net-dns/avahi-gtk3/avahi-gtk3-0.6.31-r1.ebuild new file mode 100644 index 00000000..d2c14917 --- /dev/null +++ b/net-dns/avahi-gtk3/avahi-gtk3-0.6.31-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2013 Sabayon +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="3" + +IUSE="" +COMMON_DEPEND="=net-dns/avahi-base-${PVR} + x11-libs/gtk+:3" +AVAHI_MODULE_DEPEND="${COMMON_DEPEND}" +AVAHI_MODULE_RDEPEND="${COMMON_DEPEND}" + +WANT_AUTOMAKE=1.11 +AVAHI_PATCHES=( + # Fix init scripts for >=openrc-0.9.0 (bug #383641) + "${FILESDIR}/avahi-0.6.x-openrc-0.9.x-init-scripts-fixes.patch" + # install-exec-local -> install-exec-hook + "${FILESDIR}"/${P/-gtk3}-install-exec-hook.patch + # Backport host-name-from-machine-id patch, bug #466134 + "${FILESDIR}"/${P/-gtk3}-host-name-from-machine-id.patch +) +inherit eutils avahi + +src_configure() { + local myconf=" --disable-gtk --enable-gtk3" + 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-gtk3.pc || die +} + +src_install() { + cd "${S}"/avahi-ui || die + emake -j1 install DESTDIR="${ED}" || die + cd "${S}" || die + dodir /usr/$(get_libdir)/pkgconfig + insinto /usr/$(get_libdir)/pkgconfig + doins avahi-ui-gtk3.pc + + avahi_src_install-cleanup + + # Workaround for avahi-ui.h collision between avahi-gtk and avahi-gtk3 + root_avahi_ui="${ROOT}usr/include/avahi-ui/avahi-ui.h" + if [ -e "${root_avahi_ui}" ]; then + rm -f "${ED}usr/include/avahi-ui/avahi-ui.h" + fi +} |