/[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.1 - (hide annotations) (download)
Wed Jun 16 22:11:15 2010 UTC (8 years, 2 months ago) by arfrever
Branch: MAIN
Version bump.
(Portage version: HEAD/cvs/Linux x86_64)

1 arfrever 1.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     RESTRICT_PYTHON_ABIS="3.*"
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="http://pypi.python.org/packages/source/${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