blob: 701055a00d2daa2a4659d7b0db94d7605c5ca3c3 (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 )
DISTUTILS_SINGLE_IMPL=1
inherit distutils-r1
DESCRIPTION="A mail user agent auto configuration service"
HOMEPAGE="http://www.automx.org"
SRC_URI="https://github.com/sys4/${PN}/archive/v${PV}.tar.gz -> automx-${PV}.tgz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="ldap memcached sql +tools"
DEPEND="
dev-python/ipaddr[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
|| ( www-apache/mod_wsgi[${PYTHON_USEDEP}] www-servers/uwsgi )
ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
memcached? ( dev-python/python-memcached[${PYTHON_USEDEP}] )
sql? ( dev-python/sqlalchemy[${PYTHON_USEDEP}] )
tools? ( net-dns/bind-tools net-misc/wget )
"
RDEPEND="${DEPEND}"
python_prepare_all() {
sed -i '/py_modules=/d' setup.py || die
distutils-r1_python_prepare_all
}
python_install_all() {
DOCS=( INSTALL CREDITS CHANGES BASIC_CONFIGURATION_README )
HTML_DOCS=( doc/html/. )
distutils-r1_python_install_all
docinto examples
dodoc src/conf/*example*
doman doc/man/man5/*
if use tools; then
dobin src/automx-test
doman doc/man/man1/automx-test.1
fi
exeinto /usr/lib/${PN}
doexe src/automx_wsgi.py
}
pkg_postinst() {
echo
einfo "See /usr/share/doc/${PF}/INSTALL.bz2 for setup instructions"
echo
}
|