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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jun 16 22:10:27 2010 UTC (8 years, 1 month ago) by arfrever
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Delete older ebuild.

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.1.ebuild,v 1.1 2010/05/30 19:13:30 arfrever Exp $
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=""
23
24 DEPEND="app-arch/unzip"
25 RDEPEND=""
26 RESTRICT_PYTHON_ABIS="3.*"
27
28 S="${WORKDIR}/${MY_P}"
29
30 DOCS="CHANGES.txt README.txt"
31 PYTHON_MODNAME="ComputedAttribute ExtensionClass MethodObject"
32
33 distutils_src_test_pre_hook() {
34 local module
35 for module in ComputedAttribute ExtensionClass MethodObject; do
36 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}"
37 done
38 }
39
40 src_install() {
41 distutils_src_install
42 python_clean_installation_image
43 }

  ViewVC Help
Powered by ViewVC 1.1.20