57 lines
1.3 KiB
Bash
57 lines
1.3 KiB
Bash
|
# Copyright 1999-2015 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/net-libs/phodav/phodav-2.0.ebuild,v 1.1 2015/06/07 14:07:20 pacho Exp $
|
||
|
|
||
|
EAPI=5
|
||
|
GCONF_DEBUG="no"
|
||
|
GNOME2_LA_PUNT="yes"
|
||
|
|
||
|
inherit gnome2 systemd udev
|
||
|
|
||
|
DESCRIPTION="WebDav server implementation using libsoup"
|
||
|
HOMEPAGE="https://wiki.gnome.org/phodav"
|
||
|
|
||
|
LICENSE="LGPL-2.1+"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86"
|
||
|
IUSE="spice systemd zeroconf"
|
||
|
|
||
|
RDEPEND="
|
||
|
dev-libs/glib:2
|
||
|
>=net-libs/libsoup-2.48.0:2.4
|
||
|
dev-libs/libxml2
|
||
|
zeroconf? ( net-dns/avahi )
|
||
|
"
|
||
|
DEPEND="${RDEPEND}
|
||
|
>=dev-util/intltool-0.40.0
|
||
|
>=dev-util/gtk-doc-am-1.10
|
||
|
sys-devel/gettext
|
||
|
virtual/pkgconfig
|
||
|
"
|
||
|
|
||
|
src_configure() {
|
||
|
gnome2_src_configure \
|
||
|
--disable-static \
|
||
|
$(use_with zeroconf avahi) \
|
||
|
--with-udevdir=$(get_udevdir) \
|
||
|
--with-systemdsystemunitdir=$(systemd_get_unitdir)
|
||
|
|
||
|
if ! use zeroconf ; then
|
||
|
sed -i -e 's|avahi-daemon.service||' data/spice-webdavd.service || die
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
gnome2_src_install
|
||
|
|
||
|
if use spice ; then
|
||
|
if ! use systemd ; then
|
||
|
newinitd "${FILESDIR}/spice-webdavd.initd" spice-webdavd
|
||
|
udev_dorules "${FILESDIR}/70-spice-webdavd.rules"
|
||
|
rm -r "${ED}$(systemd_get_unitdir)" || die
|
||
|
fi
|
||
|
else
|
||
|
rm -r "${ED}"{/usr/sbin,$(get_udevdir),$(systemd_get_unitdir)} || die
|
||
|
fi
|
||
|
}
|