1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python2_7 )
9 DESCRIPTION="rsync-like utility for btrfs snapshots"
10 HOMEPAGE="https://github.com/AmesCornish/buttersink"
15 # local tests would require root and cause sandbox issues with btrfs subvolume
16 # operations, and network tests would require an SSH server with root login to
17 # test the SSH backend, or remote S3 for that backend
20 if [[ ${PV} == 9999 ]] ; then
23 EGIT_REPO_URI="https://github.com/AmesCornish/buttersink"
26 KEYWORDS="~amd64 ~x86"
27 SRC_URI="https://github.com/AmesCornish/buttersink/archive/${PV}.tar.gz -> ${P}.tar.gz"
30 RDEPEND="${PYTHON_DEPS}
31 dev-python/boto[${PYTHON_USEDEP}]
32 dev-python/crcmod[${PYTHON_USEDEP}]
33 dev-python/psutil[${PYTHON_USEDEP}]
37 python_prepare_all() {
38 if [[ ${PV} == 9999 ]] ; then
39 emake makestamps buttersink/version.py
41 mkdir makestamps || die
42 echo "version = \"${PV}\"" > buttersink/version.py || die
44 distutils-r1_python_prepare_all