dev-python/reflink: new package
authorGeorgy Yakovlev <gyakovlev@gentoo.org>
Sat, 26 Jan 2019 02:32:24 +0000 (18:32 -0800)
committerGeorgy Yakovlev <gyakovlev@gentoo.org>
Sun, 27 Jan 2019 23:28:48 +0000 (15:28 -0800)
pythonic wrapper around reflink family of syscalls

Package-Manager: Portage-2.3.58, Repoman-2.3.12
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
dev-python/reflink/Manifest [new file with mode: 0644]
dev-python/reflink/metadata.xml [new file with mode: 0644]
dev-python/reflink/reflink-0.2.1.ebuild [new file with mode: 0644]

diff --git a/dev-python/reflink/Manifest b/dev-python/reflink/Manifest
new file mode 100644 (file)
index 0000000..962a554
--- /dev/null
@@ -0,0 +1 @@
+DIST reflink-0.2.1.tar.gz 14638 BLAKE2B a6449ebb27619ead9ff8452df6c48f3617e5f06eb347fbbe14ab00b9a43c01de8e101466288ac6fb73602165d4d4e9315f941c2f28dffe245ed2c39a10a61cf1 SHA512 5995ed787bda93cb46d99a603110768087420edd72c01d5f3f7f08a3f8f63b4629b900a3c173dd7f3119a892ac19ab1a9c3000ddd83810b22a52dfb5fb892a28
diff --git a/dev-python/reflink/metadata.xml b/dev-python/reflink/metadata.xml
new file mode 100644 (file)
index 0000000..e3b3aab
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person">
+               <email>gyakovlev@gentoo.org</email>
+               <name>Georgy Yakovlev</name>
+       </maintainer>
+       <longdescription lang="en">
+               Python wrapper around the reflink system calls.
+               Btrfs, XFS, OCFS2 reflink support, Apple macOS APFS clonefile support.
+       </longdescription>
+       <upstream>
+               <remote-id type="pypi">reflink</remote-id>
+       </upstream>
+</pkgmetadata>
diff --git a/dev-python/reflink/reflink-0.2.1.ebuild b/dev-python/reflink/reflink-0.2.1.ebuild
new file mode 100644 (file)
index 0000000..8c8c593
--- /dev/null
@@ -0,0 +1,44 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
+
+inherit distutils-r1
+
+DESCRIPTION="RFC-compliant FQDN validation and manipulation for Python"
+HOMEPAGE="https://gitlab.com/rubdos/pyreflink"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc test"
+
+BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+       doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+       test? (
+               dev-python/pytest[${PYTHON_USEDEP}]
+               dev-python/pytest-runner[${PYTHON_USEDEP}]
+               sys-fs/btrfs-progs
+       )
+"
+RDEPEND="virtual/python-cffi[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}"
+
+# goes places, like writing to /dev or creating btrfs volumes
+RESTRICT="test"
+
+python_compile_all() {
+       use doc && emake -C docs html
+}
+
+python_install_all() {
+       use doc && local HTML_DOCS=( docs/_build/html/. )
+       distutils-r1_python_install_all
+}
+
+python_test() {
+       esetup.py test
+}