diff options
author | 2017-05-25 19:05:24 -0700 | |
---|---|---|
committer | 2017-05-27 23:45:25 +0200 | |
commit | 56813a80386bcb56d3f341f6cf5151da535c26c7 (patch) | |
tree | fe37598bf11c9930e74fa18a339d9363b3df5952 /app-backup/buttersink/buttersink-9999.ebuild | |
parent | dev-libs/icu: Remove old (diff) | |
download | gentoo-56813a80386bcb56d3f341f6cf5151da535c26c7.tar.gz gentoo-56813a80386bcb56d3f341f6cf5151da535c26c7.tar.bz2 gentoo-56813a80386bcb56d3f341f6cf5151da535c26c7.zip |
app-backup/buttersink: New package
Buttersink is a python-based, rsync-like utility for btrfs snapshots which
uses btrfs send/receive.
Bug: https://bugs.gentoo.org/619710
Closes: https://github.com/gentoo/gentoo/pull/4763
Diffstat (limited to 'app-backup/buttersink/buttersink-9999.ebuild')
-rw-r--r-- | app-backup/buttersink/buttersink-9999.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/app-backup/buttersink/buttersink-9999.ebuild b/app-backup/buttersink/buttersink-9999.ebuild new file mode 100644 index 000000000000..44802d17a6e9 --- /dev/null +++ b/app-backup/buttersink/buttersink-9999.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="rsync-like utility for btrfs snapshots" +HOMEPAGE="https://github.com/AmesCornish/buttersink" + +LICENSE="GPL-3" +SLOT=0 + +# local tests would require root and cause sandbox issues with btrfs subvolume +# operations, and network tests would require an SSH server with root login to +# test the SSH backend, or remote S3 for that backend +RESTRICT="test" + +if [[ ${PV} == 9999 ]] ; then + inherit git-r3 + KEYWORDS="" + EGIT_REPO_URI="https://github.com/AmesCornish/buttersink" + SRC_URI="" +else + KEYWORDS="~amd64 ~x86" + SRC_URI="https://github.com/AmesCornish/buttersink/archive/${PV}.tar.gz -> ${P}.tar.gz" +fi + +RDEPEND="${PYTHON_DEPS} + dev-python/boto[${PYTHON_USEDEP}] + dev-python/crcmod[${PYTHON_USEDEP}] + dev-python/flake8[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + sys-fs/btrfs-progs" +DEPEND="${RDEPEND}" + +python_prepare_all() { + if [[ ${PV} == 9999 ]] ; then + emake makestamps buttersink/version.py + else + mkdir makestamps || die + echo "version = \"${PV}\"" > buttersink/version.py || die + fi + distutils-r1_python_prepare_all +} |