Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 315875
Collapse All | Expand All

(-)http-replicator.orig//http-replicator-3.0-r2.ebuild (-2 / +17 lines)
Lines 2-8 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/net-proxy/http-replicator/http-replicator-3.0-r2.ebuild,v 1.5 2009/06/09 20:30:18 jer Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-proxy/http-replicator/http-replicator-3.0-r2.ebuild,v 1.5 2009/06/09 20:30:18 jer Exp $
4
4
5
inherit eutils
5
EAPI=4
6
PYTHON_DEPEND="2:2.6:2.7"
7
inherit eutils python
6
8
7
MY_P="${PN}_${PV}"
9
MY_P="${PN}_${PV}"
8
10
Lines 16-24 Link Here
16
KEYWORDS="alpha amd64 hppa ppc ~sparc x86"
18
KEYWORDS="alpha amd64 hppa ppc ~sparc x86"
17
IUSE=""
19
IUSE=""
18
20
19
DEPEND=">=dev-lang/python-2.3"
21
DEPEND=""
20
RDEPEND="${DEPEND}"
22
RDEPEND="${DEPEND}"
21
23
24
pkge_setup() {
25
	python_set_active_version 2
26
}
27
22
src_compile() {
28
src_compile() {
23
	epatch "${FILESDIR}/http-replicator-3.0-sighup.patch"
29
	epatch "${FILESDIR}/http-replicator-3.0-sighup.patch"
24
	einfo "No compilation necessary"
30
	einfo "No compilation necessary"
Lines 47-52 Link Here
47
53
48
	insinto /etc/logrotate.d
54
	insinto /etc/logrotate.d
49
	newins debian/logrotate http-replicator
55
	newins debian/logrotate http-replicator
56
57
	# Set  the shebangs according to the eselected python
58
	if [[ $(python_get_version) ==  "2.6" ]] || [[ $(python_get_version) == "2.7" ]]; then
59
		python_convert_shebangs $(python_get_version) "${ED}"/usr/bin/http-replicator \
60
		"${ED}"/usr/bin/repcacheman.py
61
	else
62
		ewarn "The current selected system version of python does not support http-replicator"
63
		python_convert_shebangs -r 2.7 "${ED}"
64
	fi
50
}
65
}
51
66
52
pkg_postinst() {
67
pkg_postinst() {

Return to bug 315875