blob: dd84377f6e7f19126a22e6f52ec28ed17b0cf06f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-zope/namespaces/namespaces-20100910.ebuild,v 1.1 2010/09/10 21:58:00 arfrever Exp $
EAPI="3"
PYTHON_DEPEND="*"
SUPPORT_PYTHON_ABIS="1"
inherit python
DESCRIPTION="Products, Shared and Shared.DC namespaces for Zope"
HOMEPAGE="http://www.gentoo.org/"
SRC_URI=""
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
IUSE=""
DEPEND=""
RDEPEND="dev-python/setuptools"
src_install() {
installation() {
local module
for module in Products Shared Shared/DC; do
dodir $(python_get_sitedir)/${module} || return 1
echo "__import__('pkg_resources').declare_namespace(__name__)" > "${ED}$(python_get_sitedir)/${module}/__init__.py" || return 1
done
}
python_execute_function installation
}
pkg_postinst() {
python_mod_optimize Products/__init__.py Shared/__init__.py Shared/DC/__init__.py
}
pkg_postrm() {
python_mod_cleanup Products/__init__.py Shared/__init__.py Shared/DC/__init__.py
}
|