summaryrefslogtreecommitdiff
path: root/app-backup/rdiff-backup/rdiff-backup-2.2.1.ebuild
blob: e479d6ae0ef754278a4b48a4acee0630248b6ffc (plain)
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
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{8..10} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1

DESCRIPTION="Local/remote mirroring+incremental backup"
HOMEPAGE="https://github.com/rdiff-backup/rdiff-backup"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
	https://github.com/rdiff-backup/${PN}/releases/download/v${PV}/${PN}-old.1
	https://github.com/rdiff-backup/${PN}/releases/download/v${PV}/${PN}-delete.1
	https://github.com/rdiff-backup/${PN}/releases/download/v${PV}/${PN}-statistics.1
	https://github.com/rdiff-backup/${PN}/releases/download/v${PV}/${PN}.1"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
# Tests use a tox environment and separate steps for test env preparation
RESTRICT="test"

DEPEND="dev-python/setuptools_scm[${PYTHON_USEDEP}]
	>=net-libs/librsync-1.0:0="

RDEPEND="dev-python/pylibacl[${PYTHON_USEDEP}]
	dev-python/pyxattr[${PYTHON_USEDEP}]
	>=net-libs/librsync-1.0:0="

src_prepare() {
	cp -L "${DISTDIR}"/*.1 dist || die
	sed -e "s#share/doc/${PN}#share/doc/${PF}#" -i setup.py || die
	default
}