/[gentoo-x86]/net-zope/extensionclass/extensionclass-2.13.0.ebuild
Gentoo

Contents of /net-zope/extensionclass/extensionclass-2.13.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Mar 12 18:16:36 2010 UTC (8 years, 5 months ago) by arfrever
Branch: MAIN
Version bump.
(Portage version: 15821-svn/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI="3"
6 PYTHON_DEPEND="2"
7 SUPPORT_PYTHON_ABIS="1"
8 DISTUTILS_SRC_TEST="nosetests"
9
10 inherit distutils
11
12 MY_PN="ExtensionClass"
13 MY_P="${MY_PN}-${PV}"
14
15 DESCRIPTION="Metaclass for subclassable extension types"
16 HOMEPAGE="http://pypi.python.org/pypi/ExtensionClass"
17 SRC_URI="http://pypi.python.org/packages/source/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip"
18
19 LICENSE="ZPL"
20 SLOT="0"
21 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
22 IUSE="test"
23
24 DEPEND="app-arch/unzip
25 test? ( net-zope/zope-testing )"
26 RDEPEND=""
27 RESTRICT_PYTHON_ABIS="3.*"
28
29 S="${WORKDIR}/${MY_P}"
30
31 PYTHON_MODNAME="ComputedAttribute ExtensionClass MethodObject"
32 DOCS="CHANGES.txt README.txt"
33
34 distutils_src_test_pre_hook() {
35 local module
36 for module in ComputedAttribute ExtensionClass MethodObject; do
37 ln -fs "../../$(ls -d build-${PYTHON_ABI}/lib.*)/${module}/_${module}.so" "src/${module}/_${module}.so" || die "Symlinking ${module}/_${module}.so failed with Python ${PYTHON_ABI}"
38 done
39 }
40
41 src_install() {
42 distutils_src_install
43
44 # Don't install C sources.
45 find "${D}"usr/$(get_libdir)/python*/site-packages -name "*.c" -o -name "*.h" | xargs rm -f
46 }

  ViewVC Help
Powered by ViewVC 1.1.20