1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
10 SRC_URI="https://dev.gentoo.org/~twitch153/${PN}/${P}.tar.bz2"
11 KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd"
13 DESCRIPTION="Gentoo's installer for web-based applications"
14 HOMEPAGE="https://sourceforge.net/projects/webapp-config/"
20 DEPEND="app-text/xmlto
21 !dev-python/configparser"
22 RDEPEND="portage? ( sys-apps/portage[${PYTHON_USEDEP}] )"
25 epatch "${FILESDIR}/${P}-nulls-doctest.patch"
28 python_compile_all() {
33 # According to this discussion:
34 # http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html
35 # distutils does not provide for specifying two different script install
36 # locations. Since we only install one script here the following should
38 distutils-r1_python_install --install-scripts="/usr/sbin"
41 python_install_all() {
42 distutils-r1_python_install_all
45 doins config/webapp-config
47 keepdir /usr/share/webapps
48 keepdir /var/db/webapps
52 dohtml doc/*.[58].html
56 PYTHONPATH="." "${PYTHON}" WebappConfig/tests/dtest.py \
57 || die "Testing failed with ${EPYTHON}"
61 elog "Now that you have upgraded webapp-config, you **must** update your"
62 elog "config files in /etc/vhosts/webapp-config before you emerge any"
63 elog "packages that use webapp-config."