| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/webapp-config/webapp-config-1.50.19.ebuild,v 1.3 2012/06/28 21:09:54 floppym Exp $
|
| 4 |
|
| 5 |
EAPI="3"
|
| 6 |
|
| 7 |
PYTHON_DEPEND="2:2.6"
|
| 8 |
SUPPORT_PYTHON_ABIS="1"
|
| 9 |
|
| 10 |
inherit distutils
|
| 11 |
|
| 12 |
DESCRIPTION="Gentoo's installer for web-based applications"
|
| 13 |
HOMEPAGE="http://sourceforge.net/projects/webapp-config/"
|
| 14 |
SRC_URI="http://dev.gentoo.org/~blueness/${PN}/${P}.tar.bz2"
|
| 15 |
|
| 16 |
LICENSE="GPL-2"
|
| 17 |
SLOT="0"
|
| 18 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
|
| 19 |
IUSE=""
|
| 20 |
|
| 21 |
DEPEND="app-text/xmlto"
|
| 22 |
RDEPEND=""
|
| 23 |
RESTRICT_PYTHON_ABIS="2.5 3.*"
|
| 24 |
|
| 25 |
PYTHON_MODNAME="WebappConfig"
|
| 26 |
|
| 27 |
src_compile() {
|
| 28 |
distutils_src_compile
|
| 29 |
#parallel build fixed in next release
|
| 30 |
emake -j1 -C doc/
|
| 31 |
}
|
| 32 |
|
| 33 |
src_install() {
|
| 34 |
# According to this discussion:
|
| 35 |
# http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html
|
| 36 |
# distutils does not provide for specifying two different script install
|
| 37 |
# locations. Since we only install one script here the following should
|
| 38 |
# be ok
|
| 39 |
distutils_src_install --install-scripts="/usr/sbin"
|
| 40 |
|
| 41 |
insinto /etc/vhosts
|
| 42 |
doins config/webapp-config
|
| 43 |
|
| 44 |
keepdir /usr/share/webapps
|
| 45 |
keepdir /var/db/webapps
|
| 46 |
|
| 47 |
dodoc AUTHORS TODO
|
| 48 |
doman doc/*.[58]
|
| 49 |
dohtml doc/*.[58].html
|
| 50 |
}
|
| 51 |
|
| 52 |
src_test() {
|
| 53 |
testing() {
|
| 54 |
PYTHONPATH="." "$(PYTHON)" WebappConfig/tests/dtest.py
|
| 55 |
}
|
| 56 |
python_execute_function testing
|
| 57 |
}
|
| 58 |
|
| 59 |
pkg_postinst() {
|
| 60 |
distutils_pkg_postinst
|
| 61 |
|
| 62 |
elog "Now that you have upgraded webapp-config, you **must** update your"
|
| 63 |
elog "config files in /etc/vhosts/webapp-config before you emerge any"
|
| 64 |
elog "packages that use webapp-config."
|
| 65 |
}
|