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

Contents of /app-admin/webapp-config/webapp-config-1.50.15.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sun Sep 9 21:11:40 2007 UTC (6 years, 7 months ago) by hollow
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
fix functions.sh usage for baselayout-2
(Portage version: 2.1.3.7)

1 # Copyright 1999-2007 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.15.ebuild,v 1.11 2007/01/02 23:08:46 rl03 Exp $
4
5 inherit eutils distutils
6
7 DESCRIPTION="Gentoo's installer for web-based applications"
8 HOMEPAGE="http://www.gentoo.org/"
9 SRC_URI="http://dev.gentoo.org/~wrobel/webapp-config/${PF}.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 S=${WORKDIR}/${PF}
16
17 DEPEND=""
18
19 src_install() {
20
21 # According to this discussion:
22 # http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html
23 # distutils does not provide for specifying two different script install
24 # locations. Since we only install one script here the following should
25 # be ok
26 distutils_src_install --install-scripts="/usr/sbin"
27
28 dodir /etc/vhosts
29 cp config/webapp-config ${D}/etc/vhosts/
30 keepdir /usr/share/webapps
31 keepdir /var/db/webapps
32 dodoc examples/phpmyadmin-2.5.4-r1.ebuild AUTHORS.txt TODO.txt CHANGES.txt examples/postinstall-en.txt
33 doman doc/webapp-config.5 doc/webapp-config.8 doc/webapp.eclass.5
34 dohtml doc/webapp-config.5.html doc/webapp-config.8.html doc/webapp.eclass.5.html
35 }
36
37 src_test() {
38 cd ${S}
39 distutils_python_version
40 if [[ $PYVER_MAJOR > 1 ]] && [[ $PYVER_MINOR > 3 ]] ; then
41 elog "Running webapp-config doctests..."
42 if ! PYTHONPATH="." ${python} WebappConfig/tests/dtest.py; then
43 eerror "DocTests failed - please submit a bug report"
44 die "DocTesting failed!"
45 fi
46 else
47 elog "Python version below 2.4! Disabling tests."
48 fi
49 }
50
51 pkg_postinst() {
52 echo
53 elog "Now that you have upgraded webapp-config, you **must** update your"
54 elog "config files in /etc/vhosts/webapp-config before you emerge any"
55 elog "packages that use webapp-config."
56 echo
57 epause 5
58 }

  ViewVC Help
Powered by ViewVC 1.1.20