forked from python-diamond/Diamond
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiamond.ebuild
59 lines (47 loc) · 1.07 KB
/
diamond.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
57
58
59
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit python git-2
PYTHON_DEPEND="2:2.4"
RESTRICT_PYTHON_ABIS="3.*"
DESCRIPTION="Diamond is a python daemon that collects system metrics and publishes them to Graphite (and others)."
HOMEPAGE="https://github.com/BrightcoveOS/Diamond"
LICENSE="MIT"
KEYWORDS="amd64 x86"
SLOT="0"
IUSE="
-test
-mongo
-mysql
-snmp
-redis
"
RDEPEND="
dev-python/configobj
dev-python/setproctitle
test? ( dev-python/mock )
mongo? ( dev-python/pymongo )
mysql? ( dev-python/mysql-python )
snmp? ( dev-python/pysnmp )
redis? ( dev-python/redis-py )
"
DEPEND="
${RDEPEND}
"
EGIT_REPO_URI="https://github.com/BrightcoveOS/Diamond.git"
EGIT_COMMIT="GIT_HASH"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_test() {
make test || eerror "Make test failed. See above for details."
}
src_install() {
default
newinitd "${S}/gentoo/init.d" diamond
}
pkg_info() {
"${ROOT}"/usr/bin/diamond --version
}