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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Thu Jun 28 01:48:16 2012 UTC (6 years, 5 months ago) by blueness
Branch: MAIN
Changes since 1.1: +2 -2 lines
Add DEPEND=app-text/xmlto for generating the docs

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 blueness 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # 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.19.ebuild,v 1.1 2012/06/28 00:55:52 blueness Exp $
4 blueness 1.1
5     EAPI="3"
6    
7     PYTHON_DEPEND="2"
8     SUPPORT_PYTHON_ABIS="1"
9    
10     inherit distutils
11    
12     DESCRIPTION="Gentoo's installer for web-based applications"
13     HOMEPAGE="http://sourceforge.net/projects/webapp-config/"
14     SRC_URI="http://dev.gentoo.org/~blueness/${PN}/${P}.tar.bz2"
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 blueness 1.2 DEPEND="app-text/xmlto"
22 blueness 1.1 RDEPEND=""
23     RESTRICT_PYTHON_ABIS="3.*"
24    
25     PYTHON_MODNAME="WebappConfig"
26    
27     src_compile() {
28     distutils_src_compile
29     emake -C doc/
30     }
31    
32     src_install() {
33     # According to this discussion:
34     # http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html
35     # distutils does not provide for specifying two different script install
36     # locations. Since we only install one script here the following should
37     # be ok
38     distutils_src_install --install-scripts="/usr/sbin"
39    
40     insinto /etc/vhosts
41     doins config/webapp-config
42    
43     keepdir /usr/share/webapps
44     keepdir /var/db/webapps
45    
46     dodoc AUTHORS TODO
47     doman doc/*.[58]
48     dohtml doc/*.[58].html
49     }
50    
51     src_test() {
52     testing() {
53     PYTHONPATH="." "$(PYTHON)" WebappConfig/tests/dtest.py
54     }
55     python_execute_function testing
56     }
57    
58     pkg_postinst() {
59     distutils_pkg_postinst
60    
61     elog "Now that you have upgraded webapp-config, you **must** update your"
62     elog "config files in /etc/vhosts/webapp-config before you emerge any"
63     elog "packages that use webapp-config."
64     }

  ViewVC Help
Powered by ViewVC 1.1.20