/[gentoo-x86]/app-admin/webapp-config/webapp-config-1.50.16-r1.ebuild
Gentoo

Diff of /app-admin/webapp-config/webapp-config-1.50.16-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.13 Revision 1.14
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/app-admin/webapp-config/Attic/webapp-config-1.50.16-r1.ebuild,v 1.13 2010/03/10 03:16:31 sping Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-admin/webapp-config/Attic/webapp-config-1.50.16-r1.ebuild,v 1.14 2010/05/14 18:56:00 arfrever Exp $
4 4
5inherit eutils distutils 5EAPI="3"
6PYTHON_DEPEND="2"
7SUPPORT_PYTHON_ABIS="1"
8
9inherit distutils eutils
6 10
7DESCRIPTION="Gentoo's installer for web-based applications" 11DESCRIPTION="Gentoo's installer for web-based applications"
8HOMEPAGE="http://sourceforge.net/projects/webapp-config/" 12HOMEPAGE="http://sourceforge.net/projects/webapp-config/"
9SRC_URI="mirror://gentoo/${P}.tar.gz" 13SRC_URI="mirror://gentoo/${P}.tar.gz"
10 14
12SLOT="0" 16SLOT="0"
13KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" 17KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
14IUSE="" 18IUSE=""
15 19
16DEPEND="" 20DEPEND=""
21RDEPEND=""
22RESTRICT_PYTHON_ABIS="3.*"
17 23
18src_unpack() { 24PYTHON_MODNAME="WebappConfig"
19 unpack ${A} 25
20 cd "${S}" 26src_prepare() {
21 epatch "${FILESDIR}"/${P}-apache-move.patch 27 epatch "${FILESDIR}/${P}-apache-move.patch"
22} 28}
23 29
24src_install() { 30src_install() {
25
26 # According to this discussion: 31 # According to this discussion:
27 # http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html 32 # http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html
28 # distutils does not provide for specifying two different script install 33 # distutils does not provide for specifying two different script install
29 # locations. Since we only install one script here the following should 34 # locations. Since we only install one script here the following should
30 # be ok 35 # be ok
31 distutils_src_install --install-scripts="/usr/sbin" 36 distutils_src_install --install-scripts="/usr/sbin"
32 37
33 dodir /etc/vhosts 38 python_convert_shebangs 2 "${ED}usr/sbin/webapp-config"
34 cp config/webapp-config "${D}"/etc/vhosts/ 39
40 insinto /etc/vhosts
41 doins config/webapp-config
42
35 keepdir /usr/share/webapps 43 keepdir /usr/share/webapps
36 keepdir /var/db/webapps 44 keepdir /var/db/webapps
45
37 dodoc examples/phpmyadmin-2.5.4-r1.ebuild AUTHORS.txt CHANGES.txt examples/postinstall-en.txt 46 dodoc examples/phpmyadmin-2.5.4-r1.ebuild AUTHORS.txt CHANGES.txt examples/postinstall-en.txt
38 doman doc/webapp-config.5 doc/webapp-config.8 47 doman doc/*.[58]
39 dohtml doc/webapp-config.5.html doc/webapp-config.8.html 48 dohtml doc/*.[58].html
40} 49}
41 50
42src_test() { 51src_test() {
43 distutils_python_version 52 testing() {
44 if [[ $PYVER_MAJOR -gt 1 ]] && [[ $PYVER_MINOR -gt 3 ]] ; then
45 elog "Running webapp-config doctests..."
46 if ! PYTHONPATH="." ${python} WebappConfig/tests/dtest.py; then 53 PYTHONPATH="." "$(PYTHON)" WebappConfig/tests/dtest.py
47 eerror "DocTests failed - please submit a bug report" 54 }
48 die "DocTesting failed!" 55 python_execute_function testing
49 fi
50 else
51 elog "Python version below 2.4! Disabling tests."
52 fi
53} 56}
54 57
55pkg_postinst() { 58pkg_postinst() {
56 echo 59 distutils_pkg_postinst
60
57 elog "Now that you have upgraded webapp-config, you **must** update your" 61 elog "Now that you have upgraded webapp-config, you **must** update your"
58 elog "config files in /etc/vhosts/webapp-config before you emerge any" 62 elog "config files in /etc/vhosts/webapp-config before you emerge any"
59 elog "packages that use webapp-config." 63 elog "packages that use webapp-config."
60 echo
61 epause 5
62} 64}

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20