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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Wed Mar 10 03:16:31 2010 UTC (4 years, 5 months ago) by sping
Branch: MAIN
Changes since 1.12: +4 -4 lines
app-admin/webapp-config: Fix SRC_URI and HOMEPAGE (bug #267895)
(Portage version: 2.2_rc65/cvs/Linux i686)

1 # Copyright 1999-2010 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.16-r1.ebuild,v 1.12 2009/08/24 15:51:55 beandog Exp $
4
5 inherit eutils distutils
6
7 DESCRIPTION="Gentoo's installer for web-based applications"
8 HOMEPAGE="http://sourceforge.net/projects/webapp-config/"
9 SRC_URI="mirror://gentoo/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
14 IUSE=""
15
16 DEPEND=""
17
18 src_unpack() {
19 unpack ${A}
20 cd "${S}"
21 epatch "${FILESDIR}"/${P}-apache-move.patch
22 }
23
24 src_install() {
25
26 # According to this discussion:
27 # http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html
28 # distutils does not provide for specifying two different script install
29 # locations. Since we only install one script here the following should
30 # be ok
31 distutils_src_install --install-scripts="/usr/sbin"
32
33 dodir /etc/vhosts
34 cp config/webapp-config "${D}"/etc/vhosts/
35 keepdir /usr/share/webapps
36 keepdir /var/db/webapps
37 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
39 dohtml doc/webapp-config.5.html doc/webapp-config.8.html
40 }
41
42 src_test() {
43 distutils_python_version
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
47 eerror "DocTests failed - please submit a bug report"
48 die "DocTesting failed!"
49 fi
50 else
51 elog "Python version below 2.4! Disabling tests."
52 fi
53 }
54
55 pkg_postinst() {
56 echo
57 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"
59 elog "packages that use webapp-config."
60 echo
61 epause 5
62 }

  ViewVC Help
Powered by ViewVC 1.1.20