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

Contents of /app-admin/webapp-config/webapp-config-1.53-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Wed Jul 15 20:46:27 2015 UTC (3 years, 1 month ago) by zlogene
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +2 -2 lines
ia64 stable wrt bug #530260

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

1 # Copyright 1999-2015 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.53-r2.ebuild,v 1.11 2015/06/21 20:14:50 zlogene Exp $
4
5 EAPI="5"
6
7 RESTRICT="test"
8
9 PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
10
11 inherit distutils-r1
12
13 SRC_URI="http://dev.gentoo.org/~twitch153/${PN}/${P}.tar.bz2"
14 KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd"
15
16 DESCRIPTION="Gentoo's installer for web-based applications"
17 HOMEPAGE="http://sourceforge.net/projects/webapp-config/"
18
19 LICENSE="GPL-2"
20 SLOT="0"
21 IUSE="+portage"
22
23 DEPEND="app-text/xmlto
24 !dev-python/configparser
25 sys-apps/gentoo-functions"
26 RDEPEND="portage? ( sys-apps/portage[${PYTHON_USEDEP}] )"
27
28 python_prepare() {
29 epatch "${FILESDIR}/${P}-sources-function.sh-from-lib-gentoo.patch"
30 }
31
32 python_compile_all() {
33 emake -C doc/
34 }
35
36 python_install() {
37 # According to this discussion:
38 # http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html
39 # distutils does not provide for specifying two different script install
40 # locations. Since we only install one script here the following should
41 # be ok
42 distutils-r1_python_install --install-scripts="/usr/sbin"
43 }
44
45 python_install_all() {
46 distutils-r1_python_install_all
47
48 insinto /etc/vhosts
49 doins config/webapp-config
50
51 keepdir /usr/share/webapps
52 keepdir /var/db/webapps
53
54 dodoc AUTHORS
55 doman doc/*.[58]
56 dohtml doc/*.[58].html
57 }
58
59 python_test() {
60 PYTHONPATH="." "${PYTHON}" WebappConfig/tests/dtest.py \
61 || die "Testing failed with ${EPYTHON}"
62 }
63
64 pkg_postinst() {
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