forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
holland-1.0.10.ebuild
56 lines (43 loc) · 1.38 KB
/
holland-1.0.10.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
48
49
50
51
52
53
54
55
56
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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 +mysql postgres sqlite"
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
"
RDEPEND="
mysql? ( ~app-backup/holland-backup-mysql-meta-${PV}[${PYTHON_USEDEP}] )
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
}