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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Mar 6 09:37:50 2006 UTC (8 years, 5 months ago) by wrobel
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Added webapp-config-1.50.12 to the tree. Potential AMD64 fix for bug #125156
(Portage version: 2.0.54)

1 # Copyright 1999-2006 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.11.ebuild,v 1.3 2006/03/06 08:32:41 wrobel 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 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
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 einfo "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 einfo "Python version below 2.4! Disabling tests."
48 fi
49 }
50
51 pkg_postinst() {
52 echo
53 einfo "Now that you have upgraded webapp-config, you **must** update your"
54 einfo "config files in /etc/vhosts/webapp-config before you emerge any"
55 einfo "packages that use webapp-config."
56 echo
57 epause 5
58 }

  ViewVC Help
Powered by ViewVC 1.1.20