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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Feb 18 17:44:32 2013 UTC (20 months ago) by blueness
Branch: MAIN
Add live ebuild, thanks Devan Franchini

(Portage version: 2.1.11.50/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)

1 # Copyright 1999-2013 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.19.ebuild,v 1.4 2012/06/28 23:28:24 blueness Exp $
4
5 EAPI="5"
6
7 # We need to fix 'import md5' for the tests before
8 # we can be 3.x compat. Uncomment when done.
9 #PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2} )
10
11 PYTHON_COMPAT=( python{2_5,2_6,2_7} )
12
13 inherit distutils-r1
14
15 if [[ ${PV} = 9999* ]]
16 then
17 EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/${PN}.git"
18 inherit git-2
19 KEYWORDS=""
20 else
21 SRC_URI="http://dev.gentoo.org/~blueness/${PN}/${P}.tar.bz2"
22 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
23 fi
24
25 DESCRIPTION="Gentoo's installer for web-based applications"
26 HOMEPAGE="http://sourceforge.net/projects/webapp-config/"
27
28 LICENSE="GPL-2"
29 SLOT="0"
30 IUSE=""
31
32 DEPEND="app-text/xmlto"
33 RDEPEND=""
34 PYTHON_MODNAME="WebappConfig"
35
36 src_compile() {
37 BUILD_DIR="${WORKDIR}/${P}_build"
38 distutils-r1_python_compile
39 emake -C doc/
40 }
41
42 src_install() {
43 python_export_best
44 distutils-r1_python_install --install-scripts="/usr/sbin"
45
46 insinto /etc/vhosts
47 doins config/webapp-config
48
49 keepdir /usr/share/webapps
50 keepdir /var/db/webapps
51
52 dodoc AUTHORS TODO
53 doman doc/*.[58]
54 dohtml doc/*.[58].html
55 }
56
57 python_test() {
58 PYTHONPATH="." "${PYTHON}" WebappConfig/tests/dtest.py \
59 || die "Tests fail with ${EPYTHON}";
60 }
61
62 pkg_postinst() {
63 distutils-r1_pkg_postinst
64
65 elog "Now that you have upgraded webapp-config, you **must** update your"
66 elog "config files in /etc/vhosts/webapp-config before you emerge any"
67 elog "packages that use webapp-config."
68 }

  ViewVC Help
Powered by ViewVC 1.1.20