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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Apr 27 19:43:57 2012 UTC (2 years, 10 months ago) by blueness
Branch: MAIN
Changes since 1.1: +2 -4 lines
Remove python_convert_shebangs, not needed on wrapper script

(Portage version: 2.1.10.49/cvs/Linux x86_64)

1 blueness 1.2 # Copyright 1999-2012 Gentoo Foundation
2 robbat2 1.1 # Distributed under the terms of the GNU General Public License v2
3 blueness 1.2 # $Header: /var/cvsroot/gentoo-x86/app-admin/webapp-config/webapp-config-1.50.18.ebuild,v 1.1 2011/02/04 18:45:13 robbat2 Exp $
4 robbat2 1.1
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     mirror://sourceforge/${PN}/${P}.tar.gz"
15    
16     LICENSE="GPL-2"
17     SLOT="0"
18     KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
19     IUSE=""
20    
21     DEPEND=""
22     RDEPEND=""
23     RESTRICT_PYTHON_ABIS="3.*"
24    
25     PYTHON_MODNAME="WebappConfig"
26    
27     src_prepare() {
28     epatch "${FILESDIR}/${PN}-1.50.16-apache-move.patch"
29     epatch "${FILESDIR}/${PN}-1.50.16-baselayout2.patch"
30     epatch "${FILESDIR}/${PN}-1.50.16-htdocs-symlink.patch"
31     #UPSTREAM-MERGED#epatch "${FILESDIR}/${PN}-1.50.16-absolute-paths.patch"
32     epatch "${FILESDIR}/${PN}-1.50.16-update-servers.patch"
33     # Do not build nor install eclass manual, bug 322759
34     rm -f doc/webapp.eclass.5*
35     sed -e '/MAN_PAGES/s/webapp.eclass.5//' \
36     -e '/HTML_PAGES/s/webapp.eclass.5.html//' \
37     -i doc/Makefile || die
38     }
39    
40     src_install() {
41     # According to this discussion:
42     # http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html
43     # distutils does not provide for specifying two different script install
44     # locations. Since we only install one script here the following should
45     # be ok
46     distutils_src_install --install-scripts="/usr/sbin"
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