net-misc/casync: Add missing dependencies
authorManuel Rüger <mrueg@gentoo.org>
Fri, 30 Mar 2018 14:01:04 +0000 (16:01 +0200)
committerManuel Rüger <mrueg@gentoo.org>
Fri, 30 Mar 2018 14:01:42 +0000 (16:01 +0200)
Package-Manager: Portage-2.3.27, Repoman-2.3.9

net-misc/casync/casync-2_p20180321-r1.ebuild [new file with mode: 0644]

diff --git a/net-misc/casync/casync-2_p20180321-r1.ebuild b/net-misc/casync/casync-2_p20180321-r1.ebuild
new file mode 100644 (file)
index 0000000..2e1338a
--- /dev/null
@@ -0,0 +1,46 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit vcs-snapshot meson
+
+COMMIT="a755da21d3ba5d9cbb002dfc86a3ab0d46b82176"
+DESCRIPTION=" Content-Addressable Data Synchronization Tool"
+HOMEPAGE="https://github.com/systemd/casync"
+SRC_URI="https://github.com/systemd/casync/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+fuse +udev man selinux test"
+
+RDEPEND="
+       app-arch/xz-utils
+       app-arch/zstd
+       dev-libs/openssl:0
+       net-misc/curl
+       virtual/acl
+       fuse? ( sys-fs/fuse:0 )
+       selinux? ( sys-libs/libselinux )
+       udev? ( virtual/libudev )
+"
+DEPEND="${RDEPEND}
+       virtual/pkgconfig
+       man? ( dev-python/sphinx )
+"
+
+src_configure() {
+       local emesonargs=(
+               -Dfuse="$(usex fuse true false)"
+               -Dman="$(usex man true false)"
+               -Dselinux="$(usex selinux true false)"
+               -Dtests="$(usex test true false)"
+               -Dudev="$(usex udev true false)"
+       )
+       meson_src_configure
+}
+
+src_install() {
+       meson_src_install
+       find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
+}