diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-10 01:33:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-10 01:33:06 +0100 |
commit | 1603847507a63218a29aada46e43f133d16d07eb (patch) | |
tree | d016ef447a3a8c16f799a1ac08cdd241e7893e39 /net-libs/phodav/phodav-3.0.ebuild | |
parent | 861ffe012c63c48053fb77b5110cbe900f651dfd (diff) |
gentoo auto-resync : 10:10:2022 - 01:33:06
Diffstat (limited to 'net-libs/phodav/phodav-3.0.ebuild')
-rw-r--r-- | net-libs/phodav/phodav-3.0.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/net-libs/phodav/phodav-3.0.ebuild b/net-libs/phodav/phodav-3.0.ebuild new file mode 100644 index 000000000000..417b8f4b9adf --- /dev/null +++ b/net-libs/phodav/phodav-3.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit gnome.org meson systemd udev + +DESCRIPTION="WebDav server implementation using libsoup" +HOMEPAGE="https://wiki.gnome.org/phodav https://gitlab.gnome.org/GNOME/phodav" + +LICENSE="LGPL-2.1+" +SLOT="3.0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +IUSE="gtk-doc systemd test zeroconf" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/glib-2.51.2:2 + >=net-libs/libsoup-3.0.0:3.0 + dev-libs/libxml2 + zeroconf? ( net-dns/avahi[dbus] ) + + !net-libs/phodav:2.0 +" +DEPEND="${RDEPEND}" +BDEPEND=" + app-text/asciidoc + app-text/docbook-xml-dtd:4.5 + app-text/xmlto + sys-devel/gettext + virtual/pkgconfig + gtk-doc? ( dev-util/gtk-doc ) + test? ( gnome-base/dconf ) +" + +src_prepare() { + default + + if ! use zeroconf ; then + sed -i -e 's|avahi-daemon.service||' data/spice-webdavd.service || die + fi +} + +src_configure() { + local emesonargs=( + $(meson_feature gtk-doc gtk_doc) + $(meson_feature zeroconf avahi) + -Dsystemdsystemunitdir="$(systemd_get_systemunitdir)" + -Dudevrulesdir="$(get_udevdir)/rules.d" + ) + meson_src_configure +} + +src_install() { + meson_src_install + + if ! use systemd ; then + newinitd "${FILESDIR}/spice-webdavd.initd" spice-webdavd + udev_dorules "${FILESDIR}/70-spice-webdavd.rules" + fi +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +} |