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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Dec 19 18:31:55 2010 UTC (3 years, 3 months ago) by rafaelmartins
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Added support to www-servers/{nginx,gatling}. Thanks to Fernando V. (bug #211996)

(Portage version: 2.2.0_alpha8/cvs/Linux x86_64)

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-r3.ebuild,v 1.5 2010/10/03 23:49:12 reavertm Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="2"
7 SUPPORT_PYTHON_ABIS="1"
8
9 inherit distutils eutils
10
11 DESCRIPTION="Gentoo's installer for web-based applications"
12 HOMEPAGE="http://sourceforge.net/projects/webapp-config/"
13 SRC_URI="mirror://gentoo/${P}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
18 IUSE=""
19
20 DEPEND=""
21 RDEPEND=""
22 RESTRICT_PYTHON_ABIS="3.*"
23
24 PYTHON_MODNAME="WebappConfig"
25
26 src_prepare() {
27 epatch "${FILESDIR}/${P}-apache-move.patch"
28 epatch "${FILESDIR}/${P}-baselayout2.patch"
29 epatch "${FILESDIR}/${P}-htdocs-symlink.patch"
30 epatch "${FILESDIR}/${P}-absolute-paths.patch"
31 # Do not build nor install eclass manual, bug 322759
32 rm -f doc/webapp.eclass.5*
33 sed -e '/MAN_PAGES/s/webapp.eclass.5//' \
34 -e '/HTML_PAGES/s/webapp.eclass.5.html//' \
35 -i doc/Makefile || die
36 }
37
38 src_install() {
39 # According to this discussion:
40 # http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html
41 # distutils does not provide for specifying two different script install
42 # locations. Since we only install one script here the following should
43 # be ok
44 distutils_src_install --install-scripts="/usr/sbin"
45
46 python_convert_shebangs 2 "${ED}usr/sbin/webapp-config"
47
48 insinto /etc/vhosts
49 doins config/webapp-config
50
51 keepdir /usr/share/webapps
52 keepdir /var/db/webapps
53
54 dodoc examples/phpmyadmin-2.5.4-r1.ebuild AUTHORS.txt CHANGES.txt examples/postinstall-en.txt
55 doman doc/*.[58]
56 dohtml doc/*.[58].html
57 }
58
59 src_test() {
60 testing() {
61 PYTHONPATH="." "$(PYTHON)" WebappConfig/tests/dtest.py
62 }
63 python_execute_function testing
64 }
65
66 pkg_postinst() {
67 distutils_pkg_postinst
68
69 elog "Now that you have upgraded webapp-config, you **must** update your"
70 elog "config files in /etc/vhosts/webapp-config before you emerge any"
71 elog "packages that use webapp-config."
72 }

  ViewVC Help
Powered by ViewVC 1.1.20