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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Sep 11 21:25:12 2010 UTC (9 years, 4 months 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/accesscontrol/accesscontrol-2.13.2.ebuild,v 1.1 2010/07/17 16:49:11 arfrever 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="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="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 ~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-deferredimport
34 net-zope/zope-interface
35 net-zope/zope-publisher
36 net-zope/zope-security"
37 DEPEND="${RDEPEND}
38 app-arch/unzip
39 dev-python/setuptools
40 test? (
41 net-zope/datetime
42 net-zope/transaction
43 net-zope/zope-configuration
44 net-zope/zope-schema
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 # Don't install tests.
73 delete_tests() {
74 rm -fr "${ED}$(python_get_sitedir)/AccessControl/tests"
75 }
76 python_execute_function -q delete_tests
77 }

  ViewVC Help
Powered by ViewVC 1.1.20