summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2023-02-28 18:48:15 +0100
committerSebastian Pipping <sping@gentoo.org>2023-02-28 18:49:07 +0100
commit9c9576408aff3633487c2d82dcb2bcb40d9fd81e (patch)
tree7a70ec2cf8b193c1028efb73503f628216363382 /sys-fs/unionfs-fuse
parentpackage.mask: Last rite net-im/ekg2 (diff)
downloadgentoo-9c9576408aff3633487c2d82dcb2bcb40d9fd81e.tar.gz
gentoo-9c9576408aff3633487c2d82dcb2bcb40d9fd81e.tar.bz2
gentoo-9c9576408aff3633487c2d82dcb2bcb40d9fd81e.zip
sys-fs/unionfs-fuse: 3.3
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
Diffstat (limited to 'sys-fs/unionfs-fuse')
-rw-r--r--sys-fs/unionfs-fuse/Manifest1
-rw-r--r--sys-fs/unionfs-fuse/unionfs-fuse-3.3.ebuild48
2 files changed, 49 insertions, 0 deletions
diff --git a/sys-fs/unionfs-fuse/Manifest b/sys-fs/unionfs-fuse/Manifest
index c48b41b57f80..4cfaef9c1448 100644
--- a/sys-fs/unionfs-fuse/Manifest
+++ b/sys-fs/unionfs-fuse/Manifest
@@ -1,2 +1,3 @@
DIST unionfs-fuse-2.2.tar.gz 47955 BLAKE2B 44ce19b5b857a571da4722af7d19f4c59a5ca222a9d5d544529ef6c4be5125518ffc62cbbd7b5ac7b88fadd22b8777daf18b23124602f35de1a8a041b27d3cbb SHA512 eaecc203f8fad094221cf16b962e7d32a3aa9b0c945a663ce027aba3b7c4152a4dba8d5e96cb63d147f5ecd216cae29b53de946d74a939cde486dcea95d947df
DIST unionfs-fuse-3.2.tar.gz 53631 BLAKE2B d9f384d191a6f2d743c31d4d241c0cd576a1e4d4fe21c5c61516f14f3cc807ecb88d2d87dfb89f9160d2ffb2571a98843ec322b922e82ca7166dbd6ce19496c2 SHA512 e9d5b5540e8eefb9de3204798c5bf1ec4481ea6efc9e3f91f3454bfe0c67d623a542f4097d88c7292828703317a0460b4e10ca9e74d1346d5fe69f67f57400b7
+DIST unionfs-fuse-3.3.tar.gz 54069 BLAKE2B 2b6346c29318a7b8c31cd611d041bb90eb7c3b4b9cd6ea45006c291cb5346b1947ce4de3ac77d23979962bc72e33b6d5661013856d0fd5109e28d78590dbaea6 SHA512 7c72763af4dbf72bfcbff396fea2a81fb289d7bb2b1e6201d04d583f0245df96863eb50ab91e8dfe9288e61435273eb9fcc6ad5feea4db16baefceb1a382280a
diff --git a/sys-fs/unionfs-fuse/unionfs-fuse-3.3.ebuild b/sys-fs/unionfs-fuse/unionfs-fuse-3.3.ebuild
new file mode 100644
index 000000000000..5bc4fe587d8e
--- /dev/null
+++ b/sys-fs/unionfs-fuse/unionfs-fuse-3.3.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+PYTHON_COMPAT=( python3_{9..11} )
+inherit python-any-r1 toolchain-funcs
+
+DESCRIPTION="Self-syncing tree-merging file system based on FUSE"
+HOMEPAGE="https://github.com/rpodgorny/unionfs-fuse"
+SRC_URI="https://github.com/rpodgorny/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-linux"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="sys-fs/fuse:3"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ test? (
+ $(python_gen_any_dep 'dev-python/pytest[${PYTHON_USEDEP}]')
+ )
+"
+
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+}
+
+python_check_deps() {
+ use test || return 0
+ python_has_version "dev-python/pytest[${PYTHON_USEDEP}]"
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)" CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
+}
+
+src_test() {
+ [[ -e /dev/fuse ]] || return 0
+ addwrite /dev/fuse
+ pytest -vv || die "Tests fail with ${EPYTHON}"
+}