You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-backup/holland/holland-1.0.10.ebuild

55 lines
1.3 KiB

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1
DESCRIPTION="Holland Core Plugins"
HOMEPAGE="http://www.hollandbackup.org/"
SRC_URI="http://hollandbackup.org/releases/stable/${PV%.*}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples postgres sqlite"
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
"
RDEPEND="
postgres? ( ~app-backup/holland-backup-pgdump-${PV}[${PYTHON_USEDEP}] )
sqlite? ( ~app-backup/holland-backup-sqlite-${PV}[${PYTHON_USEDEP}] )
examples? (
~app-backup/holland-backup-example-${PV}[${PYTHON_USEDEP}]
~app-backup/holland-backup-random-${PV}[${PYTHON_USEDEP}]
)
"
python_compile_all() {
use doc && emake -C docs html
}
python_install_all() {
use doc && local DOCS=( README config/README config/providers/README docs/man/README docs/man/holland.rst )
use doc && local HTML_DOCS=( docs/build/html/. )
distutils-r1_python_install_all
keepdir /var/log/holland
keepdir /etc/holland
keepdir /etc/holland/backupsets
keepdir /etc/holland/providers
insinto /etc/holland
doins config/holland.conf
insinto /etc/holland/backupsets
doins config/backupsets/default.conf
doman docs/man/holland.1
}