/[gentoo-x86]/net-zope/accesscontrol/accesscontrol-2.13.3.ebuild
Gentoo

Contents of /net-zope/accesscontrol/accesscontrol-2.13.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Jan 15 00:01:33 2011 UTC (9 years ago) by arfrever
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Delete older ebuild.

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/accesscontrol/accesscontrol-2.13.3.ebuild,v 1.3 2011/01/13 22:23:55 xarthisius 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
12
13 MY_PN="AccessControl"
14 MY_P="${MY_PN}-${PV}"
15
16 DESCRIPTION="Security framework for Zope2."
17 HOMEPAGE="http://pypi.python.org/pypi/AccessControl"
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="test"
24
25 RDEPEND="dev-python/restrictedpython
26 net-zope/acquisition
27 net-zope/extensionclass
28 net-zope/persistence
29 net-zope/record
30 net-zope/zexceptions
31 net-zope/zodb
32 net-zope/zope-component
33 net-zope/zope-configuration
34 net-zope/zope-deferredimport
35 net-zope/zope-interface
36 net-zope/zope-publisher
37 net-zope/zope-schema
38 net-zope/zope-security"
39 DEPEND="${RDEPEND}
40 app-arch/unzip
41 dev-python/setuptools
42 test? (
43 net-zope/datetime
44 net-zope/transaction
45 net-zope/zope-testing
46 )"
47
48 S="${WORKDIR}/${MY_P}"
49
50 DOCS="CHANGES.txt README.txt"
51 PYTHON_MODNAME="${MY_PN}"
52
53 src_prepare() {
54 distutils_src_prepare
55
56 # Disable broken tests.
57 rm -f src/AccessControl/tests/testSecurityManager.py
58 rm -f src/AccessControl/tests/testZopeSecurityPolicy.py
59 }
60
61 distutils_src_test_pre_hook() {
62 local module
63 for module in AccessControl; do
64 ln -fs "../../$(ls -d build-${PYTHON_ABI}/lib.*)/${module}/c${module}.so" "src/${module}/c${module}.so" || die "Symlinking ${module}/c${module}.so failed with Python ${PYTHON_ABI}"
65 done
66 }
67
68 src_install() {
69 distutils_src_install
70 python_clean_installation_image
71
72 delete_tests() {
73 rm -fr "${ED}$(python_get_sitedir)/AccessControl/tests"
74 }
75 python_execute_function -q delete_tests
76 }

  ViewVC Help
Powered by ViewVC 1.1.20