diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-09-10 21:58:00 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-09-10 21:58:00 +0000 |
commit | 2e7c679da56db0af5210e831b8251ac9f1feeaac (patch) | |
tree | 095c3d50ff67a05bac4de58a8b509d52128a3076 /net-zope/namespaces | |
parent | Fix dependencies. Avoid breaking strict-aliasing rules. (diff) | |
download | gentoo-2-2e7c679da56db0af5210e831b8251ac9f1feeaac.tar.gz gentoo-2-2e7c679da56db0af5210e831b8251ac9f1feeaac.tar.bz2 gentoo-2-2e7c679da56db0af5210e831b8251ac9f1feeaac.zip |
Initial addition.
(Portage version: 2.2_rc79_p5/cvs/Linux x86_64)
Diffstat (limited to 'net-zope/namespaces')
-rw-r--r-- | net-zope/namespaces/ChangeLog | 10 | ||||
-rw-r--r-- | net-zope/namespaces/metadata.xml | 5 | ||||
-rw-r--r-- | net-zope/namespaces/namespaces-20100910.ebuild | 40 |
3 files changed, 55 insertions, 0 deletions
diff --git a/net-zope/namespaces/ChangeLog b/net-zope/namespaces/ChangeLog new file mode 100644 index 000000000000..cd4f55ac8fa3 --- /dev/null +++ b/net-zope/namespaces/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-zope/namespaces +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-zope/namespaces/ChangeLog,v 1.1 2010/09/10 21:58:00 arfrever Exp $ + +*namespaces-20100910 (10 Sep 2010) + + 10 Sep 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +namespaces-20100910.ebuild, +metadata.xml: + Initial addition. Ebuild written by me. + diff --git a/net-zope/namespaces/metadata.xml b/net-zope/namespaces/metadata.xml new file mode 100644 index 000000000000..42125e6223db --- /dev/null +++ b/net-zope/namespaces/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>net-zope</herd> +</pkgmetadata> diff --git a/net-zope/namespaces/namespaces-20100910.ebuild b/net-zope/namespaces/namespaces-20100910.ebuild new file mode 100644 index 000000000000..dd84377f6e7f --- /dev/null +++ b/net-zope/namespaces/namespaces-20100910.ebuild @@ -0,0 +1,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 +} |