| 1 | # Copyright 1999-2010 Gentoo Foundation |
1 | # Copyright 1999-2012 Gentoo Foundation |
| 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.16-r4.ebuild,v 1.1 2010/12/19 18:31:55 rafaelmartins Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/app-admin/webapp-config/webapp-config-1.50.16-r4.ebuild,v 1.7 2012/06/22 15:21:47 ranger Exp $ |
| 4 | |
4 | |
| 5 | EAPI="3" |
5 | EAPI="3" |
| 6 | PYTHON_DEPEND="2" |
6 | PYTHON_DEPEND="2" |
| 7 | SUPPORT_PYTHON_ABIS="1" |
7 | SUPPORT_PYTHON_ABIS="1" |
| 8 | |
8 | |
| … | |
… | |
| 12 | HOMEPAGE="http://sourceforge.net/projects/webapp-config/" |
12 | HOMEPAGE="http://sourceforge.net/projects/webapp-config/" |
| 13 | SRC_URI="mirror://gentoo/${P}.tar.gz" |
13 | SRC_URI="mirror://gentoo/${P}.tar.gz" |
| 14 | |
14 | |
| 15 | LICENSE="GPL-2" |
15 | LICENSE="GPL-2" |
| 16 | SLOT="0" |
16 | SLOT="0" |
| 17 | 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" |
| 18 | IUSE="" |
18 | IUSE="" |
| 19 | |
19 | |
| 20 | DEPEND="" |
20 | DEPEND="" |
| 21 | RDEPEND="" |
21 | RDEPEND="" |
| 22 | RESTRICT_PYTHON_ABIS="3.*" |
22 | RESTRICT_PYTHON_ABIS="3.*" |
| … | |
… | |
| 27 | epatch "${FILESDIR}/${P}-apache-move.patch" |
27 | epatch "${FILESDIR}/${P}-apache-move.patch" |
| 28 | epatch "${FILESDIR}/${P}-baselayout2.patch" |
28 | epatch "${FILESDIR}/${P}-baselayout2.patch" |
| 29 | epatch "${FILESDIR}/${P}-htdocs-symlink.patch" |
29 | epatch "${FILESDIR}/${P}-htdocs-symlink.patch" |
| 30 | epatch "${FILESDIR}/${P}-absolute-paths.patch" |
30 | epatch "${FILESDIR}/${P}-absolute-paths.patch" |
| 31 | epatch "${FILESDIR}/${P}-update-servers.patch" |
31 | epatch "${FILESDIR}/${P}-update-servers.patch" |
|
|
32 | epatch "${FILESDIR}/${P}-fix-unicode-tests.patch" |
| 32 | # Do not build nor install eclass manual, bug 322759 |
33 | # Do not build nor install eclass manual, bug 322759 |
| 33 | rm -f doc/webapp.eclass.5* |
34 | rm -f doc/webapp.eclass.5* |
| 34 | sed -e '/MAN_PAGES/s/webapp.eclass.5//' \ |
35 | sed -e '/MAN_PAGES/s/webapp.eclass.5//' \ |
| 35 | -e '/HTML_PAGES/s/webapp.eclass.5.html//' \ |
36 | -e '/HTML_PAGES/s/webapp.eclass.5.html//' \ |
| 36 | -i doc/Makefile || die |
37 | -i doc/Makefile || die |
| … | |
… | |
| 41 | # http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html |
42 | # http://mail.python.org/pipermail/distutils-sig/2004-February/003713.html |
| 42 | # distutils does not provide for specifying two different script install |
43 | # distutils does not provide for specifying two different script install |
| 43 | # locations. Since we only install one script here the following should |
44 | # locations. Since we only install one script here the following should |
| 44 | # be ok |
45 | # be ok |
| 45 | distutils_src_install --install-scripts="/usr/sbin" |
46 | distutils_src_install --install-scripts="/usr/sbin" |
| 46 | |
|
|
| 47 | python_convert_shebangs 2 "${ED}usr/sbin/webapp-config" |
|
|
| 48 | |
47 | |
| 49 | insinto /etc/vhosts |
48 | insinto /etc/vhosts |
| 50 | doins config/webapp-config |
49 | doins config/webapp-config |
| 51 | |
50 | |
| 52 | keepdir /usr/share/webapps |
51 | keepdir /usr/share/webapps |