/[gentoo-x86]/net-libs/phodav/phodav-2.0-r1.ebuild
Gentoo

Contents of /net-libs/phodav/phodav-2.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jun 23 11:52:00 2015 UTC (5 years, 5 months ago) by eva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +6 -5 lines
Fix parallel install with locales, bug #551530.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key C6085806)

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

  ViewVC Help
Powered by ViewVC 1.1.20