aboutsummaryrefslogtreecommitdiff
blob: b7d59d2ca416e8ddba31c0bc1a238be9fe7d7cb8 (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
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
60
61
62
63
64
65
66
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

PYTHON_COMPAT=( python2_7 python3_4 )

inherit user distutils-r1 bash-completion-r1 git-r3

DESCRIPTION="Automatation for common tasks around gentoo server upkeep"
HOMEPAGE="https://github.com/lmiphay/oam"
EGIT_REPO_URI="https://github.com/lmiphay/${PN}.git"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+completion +lnav +ranger"

# >=bash-4.3 is needed for 'local -n / declare -n'
RDEPEND="
	${PYTHON_DEPS}
	lnav? ( app-admin/lnav )
	app-admin/logrotate
	app-misc/screen
	ranger? ( app-misc/ranger )
	app-portage/genlop
	app-portage/gentoolkit
	app-portage/portage-utils
	>=app-shells/bash-4.3
	completion? ( app-shells/bash-completion )
	app-text/multitail
	dev-lang/perl
	dev-python/attrdict
	dev-python/click
	dev-python/eliot
	dev-python/eliot-tree
	dev-python/inotifyx
	dev-python/invoke
	dev-python/jinja
	dev-python/psutil
	dev-python/pyyaml
	sys-apps/moreutils[perl]
	sys-fs/inotify-tools
	virtual/python-enum34
"
DEPEND="
	dev-python/setuptools[${PYTHON_USEDEP}]
	${RDEPEND}
"

DOCS="README.md"

pkg_setup() {
	enewgroup oam
}

src_install() {
	   emake DESTDIR="${D}" install
	   dodoc ${DOCS}
	   distutils-r1_src_install
	   newbashcomp etc/bash.completion oam
}

src_test() {
	true
}