summaryrefslogtreecommitdiff
blob: 62972be2a3ae576c85a2c268f94f4026457940ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-web/twisted-web-0.5.0-r3.ebuild,v 1.1 2006/06/26 21:13:50 marienz Exp $

MY_PACKAGE=Web

inherit twisted eutils

DESCRIPTION="Twisted web server, programmable in Python"

KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sh ~sparc ~x86"

DEPEND=">=dev-python/twisted-2
	<dev-python/twisted-2.4"


src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}/${P}-root-skip.patch"
	epatch "${FILESDIR}/${P}-tests-2.2-compat.patch"
}

src_install() {
	twisted_src_install

	# Get rid of the main user-visible bits of websetroots: the
	# wrapper script in bin and the manpage. This leaves behind the
	# script in scripts in site-packages. websetroot is removed
	# entirely in upstream svn and does not work in this version.
	rm -rf "${D}"/usr/{bin,share/man}
}