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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Mar 1 15:15:54 2012 UTC (7 years, 11 months ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Removing p.masked net-zope deps

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-zope/threadlock/threadlock-2.13.0.ebuild,v 1.3 2011/01/13 22:27:49 xarthisius Exp $
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
12
13 MY_PN="ThreadLock"
14 MY_P="${MY_PN}-${PV}"
15
16 DESCRIPTION="Special ThreadLock objects used in Zope2."
17 HOMEPAGE="http://pypi.python.org/pypi/ThreadLock"
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 RDEPEND="net-zope/extensionclass"
26 DEPEND="${RDEPEND}
27 app-arch/unzip
28 dev-python/setuptools"
29
30 S="${WORKDIR}/${MY_P}"
31
32 DOCS="CHANGES.txt README.txt"
33 PYTHON_MODNAME="${MY_PN}"
34
35 distutils_src_test_pre_hook() {
36 local module
37 for module in ThreadLock; do
38 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}"
39 done
40 }
41
42 src_install() {
43 distutils_src_install
44 python_clean_installation_image
45 }

  ViewVC Help
Powered by ViewVC 1.1.20