Lines 2-13
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
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 $ |
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 |
|
4 |
|
5 |
EAPI="3" |
5 |
EAPI="5" |
6 |
|
6 |
|
7 |
PYTHON_DEPEND="2:2.6" |
7 |
PYTHON_COMPAT=( python{2_6,2_7} pypy{1_9,2_0} ) |
8 |
SUPPORT_PYTHON_ABIS="1" |
|
|
9 |
|
8 |
|
10 |
inherit distutils |
9 |
inherit distutils-r1 |
11 |
|
10 |
|
12 |
DESCRIPTION="Gentoo's installer for web-based applications" |
11 |
DESCRIPTION="Gentoo's installer for web-based applications" |
13 |
HOMEPAGE="http://sourceforge.net/projects/webapp-config/" |
12 |
HOMEPAGE="http://sourceforge.net/projects/webapp-config/" |
Lines 16-43
Link Here
|
16 |
LICENSE="GPL-2" |
15 |
LICENSE="GPL-2" |
17 |
SLOT="0" |
16 |
SLOT="0" |
18 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
17 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
19 |
IUSE="" |
18 |
IUSE="+portage" |
20 |
|
19 |
|
21 |
DEPEND="app-text/xmlto" |
20 |
DEPEND="app-text/xmlto" |
22 |
RDEPEND="" |
21 |
RDEPEND="portage? ( sys-apps/portage[${PYTHON_USEDEP}] )" |
23 |
RESTRICT_PYTHON_ABIS="2.5 3.*" |
|
|
24 |
|
22 |
|
25 |
PYTHON_MODNAME="WebappConfig" |
23 |
python_compile_all() { |
26 |
|
|
|
27 |
src_compile() { |
28 |
distutils_src_compile |
29 |
#parallel build fixed in next release |
24 |
#parallel build fixed in next release |
30 |
emake -j1 -C doc/ |
25 |
emake -j1 -C doc/ |
31 |
} |
26 |
} |
32 |
|
27 |
|
33 |
src_install() { |
28 |
python_install() { |
34 |
# According to this discussion: |
29 |
# According to this discussion: |
35 |
# http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html |
30 |
# http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html |
36 |
# distutils does not provide for specifying two different script install |
31 |
# distutils does not provide for specifying two different script install |
37 |
# locations. Since we only install one script here the following should |
32 |
# locations. Since we only install one script here the following should |
38 |
# be ok |
33 |
# be ok |
39 |
distutils_src_install --install-scripts="/usr/sbin" |
34 |
distutils-r1_python_install --install-scripts="/usr/sbin" |
|
|
35 |
} |
40 |
|
36 |
|
|
|
37 |
python_install_all() { |
41 |
insinto /etc/vhosts |
38 |
insinto /etc/vhosts |
42 |
doins config/webapp-config |
39 |
doins config/webapp-config |
43 |
|
40 |
|
Lines 49-64
Link Here
|
49 |
dohtml doc/*.[58].html |
46 |
dohtml doc/*.[58].html |
50 |
} |
47 |
} |
51 |
|
48 |
|
52 |
src_test() { |
49 |
python_test() { |
53 |
testing() { |
50 |
PYTHONPATH="." "${PYTHON}" WebappConfig/tests/dtest.py \ |
54 |
PYTHONPATH="." "$(PYTHON)" WebappConfig/tests/dtest.py |
51 |
|| die "Testing failed with ${EPYTHON}" |
55 |
} |
|
|
56 |
python_execute_function testing |
57 |
} |
52 |
} |
58 |
|
53 |
|
59 |
pkg_postinst() { |
54 |
pkg_postinst() { |
60 |
distutils_pkg_postinst |
|
|
61 |
|
62 |
elog "Now that you have upgraded webapp-config, you **must** update your" |
55 |
elog "Now that you have upgraded webapp-config, you **must** update your" |
63 |
elog "config files in /etc/vhosts/webapp-config before you emerge any" |
56 |
elog "config files in /etc/vhosts/webapp-config before you emerge any" |
64 |
elog "packages that use webapp-config."</pre></body></html> |
57 |
elog "packages that use webapp-config."</pre></body></html> |