/[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.2 - (show annotations) (download)
Fri Jul 5 00:29:10 2013 UTC (3 years ago) by blueness
Branch: MAIN
Changes since 1.1: +21 -12 lines
Add intelligent dependency on portage to -9999

(Portage version: 2.1.12.2/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-9999.ebuild,v 1.1 2013/02/18 17:44:32 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
31 DEPEND="app-text/xmlto"
32
33 # We can't use-dep on portage for 9999 else we make repoman angry!
34 if [[ ${PV} = 9999* ]]
35 then
36 IUSE=""
37 RDEPEND=""
38 else
39 IUSE="+portage"
40 RDEPEND="portage? ( sys-apps/portage[${PYTHON_USEDEP}] )"
41 fi
42
43 python_compile_all() {
44 emake -C doc/
45 }
46
47 python_install() {
48 # According to this discussion:
49 # http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html
50 # distutils does not provide for specifying two different script install
51 # locations. Since we only install one script here the following should
52 # be ok
53 distutils-r1_python_install --install-scripts="/usr/sbin"
54 }
55
56 python_install_all() {
57 insinto /etc/vhosts
58 doins config/webapp-config
59
60 keepdir /usr/share/webapps
61 keepdir /var/db/webapps
62
63 dodoc AUTHORS TODO
64 doman doc/*.[58]
65 dohtml doc/*.[58].html
66 }
67
68 python_test() {
69 PYTHONPATH="." "${PYTHON}" WebappConfig/tests/dtest.py \
70 || die "Testing failed with ${EPYTHON}"
71 }
72
73 pkg_postinst() {
74 elog "Now that you have upgraded webapp-config, you **must** update your"
75 elog "config files in /etc/vhosts/webapp-config before you emerge any"
76 elog "packages that use webapp-config."
77 }

  ViewVC Help
Powered by ViewVC 1.1.20