blob: 09d161974678d405e47ced9d78d63ac2c20b8563 (
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
33
34
35
36
37
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyprotocols/pyprotocols-1.0_pre2082.ebuild,v 1.1 2007/02/28 00:18:29 dev-zero Exp $
NEED_PYTHON=2.4
inherit distutils
KEYWORDS="~amd64 ~x86"
MY_PN=PyProtocols
MY_P=${MY_PN}-${PV/_pre/a0dev_r}
DESCRIPTION="Extends the PEP 246 adapt() function with a new 'declaration API' that lets you easily define your own protocols and adapters, and declare what adapters should be used to adapt what types, objects, or protocols."
HOMEPAGE="http://peak.telecommunity.com/PyProtocols.html"
SRC_URI="http://peak.telecommunity.com/snapshots/${MY_P}.zip"
LICENSE="|| ( PSF-2.4 ZPL )"
SLOT="0"
IUSE=""
DEPEND="dev-python/setuptools
app-arch/unzip"
RDEPEND=""
S=${WORKDIR}/${MY_P}
PYTHON_MODNAME="protocols"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i \
-e '/ez_setup/d' \
-e '/install_requires = \[.*\],/d' \
-e '/install_requires/, /],/d' \
setup.py || die "sed failed"
}
|