forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buttersink-9999.ebuild
47 lines (39 loc) · 1.21 KB
/
buttersink-9999.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# 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
IUSE="test"
# 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/psutil[${PYTHON_USEDEP}]
sys-fs/btrfs-progs"
DEPEND="${RDEPEND}
test? ( dev-python/flake8[${PYTHON_USEDEP}] )"
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
}