blob: ae216f6ffe8b2ca13f0900e0645a1cea6d0a4ac4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
GCONF_DEBUG="no"
GNOME2_LA_PUNT="yes"
inherit autotools gnome2 systemd udev
DESCRIPTION="WebDav server implementation using libsoup"
HOMEPAGE="https://wiki.gnome.org/phodav"
LICENSE="LGPL-2.1+"
SLOT="2.0"
KEYWORDS="alpha amd64 ~arm ~ppc ~ppc64 x86"
IUSE="spice systemd zeroconf"
RDEPEND="
dev-libs/glib:2
>=net-libs/libsoup-2.48:2.4
dev-libs/libxml2
zeroconf? ( net-dns/avahi )
"
DEPEND="${RDEPEND}
>=dev-util/gtk-doc-am-1.10
>=dev-util/intltool-0.40.0
sys-devel/gettext
virtual/pkgconfig
"
src_prepare() {
# Make doc parallel installable
cd "${S}"/doc/reference
sed -e "s/\(<book.*name=\"\)${PN}/\1${PN}-${SLOT}/" \
-i html/${PN}.devhelp2 || die
mv ${PN}-docs{,-${SLOT}}.sgml || die
mv ${PN}-overrides{,-${SLOT}}.txt || die
mv ${PN}-sections{,-${SLOT}}.txt || die
mv html/${PN}{,-${SLOT}}.devhelp2
cd "${S}"
# Fix locale slottability, from master
epatch "${FILESDIR}"/${P}-slot.patch
eautoreconf
gnome2_src_prepare
}
src_configure() {
gnome2_src_configure \
--disable-static \
--program-suffix=-${SLOT} \
$(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 "${D}$(systemd_get_unitdir)" || die
fi
else
rm -r "${D}"{/usr/sbin,$(get_udevdir),$(systemd_get_unitdir)} || die
fi
}
|