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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Nov 28 22:10:16 2010 UTC (8 years ago) by arfrever
Branch: MAIN
Changes since 1.2: +2 -2 lines
Restrict Jython ABIs.

(Portage version: 2.2.0_alpha6/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-zope/extensionclass/extensionclass-2.13.2.ebuild,v 1.2 2010/10/30 18:10:37 arfrever Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="2"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="3.* *-jython"
9 DISTUTILS_SRC_TEST="nosetests"
10
11 inherit distutils flag-o-matic
12
13 MY_PN="ExtensionClass"
14 MY_P="${MY_PN}-${PV}"
15
16 DESCRIPTION="Metaclass for subclassable extension types"
17 HOMEPAGE="http://pypi.python.org/pypi/ExtensionClass"
18 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip"
19
20 LICENSE="ZPL"
21 SLOT="0"
22 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
23 IUSE=""
24
25 DEPEND="app-arch/unzip"
26 RDEPEND=""
27
28 S="${WORKDIR}/${MY_P}"
29
30 DOCS="CHANGES.txt README.txt"
31 PYTHON_MODNAME="ComputedAttribute ExtensionClass MethodObject"
32
33 src_compile() {
34 append-flags -fno-strict-aliasing
35 distutils_src_compile
36 }
37
38 distutils_src_test_pre_hook() {
39 local module
40 for module in ComputedAttribute ExtensionClass MethodObject; do
41 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}"
42 done
43 }
44
45 src_install() {
46 distutils_src_install
47 python_clean_installation_image
48 }

  ViewVC Help
Powered by ViewVC 1.1.20