diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-09-11 21:52:18 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-09-11 21:52:18 +0000 |
commit | ff2de58014441b401741b28c2d051ba1f06d8d70 (patch) | |
tree | 5c59b1ea6c747db44af254edafe638eb83794a81 /net-zope/zope | |
parent | Marked ppc stable for bug #259968. (diff) | |
download | historical-ff2de58014441b401741b28c2d051ba1f06d8d70.tar.gz historical-ff2de58014441b401741b28c2d051ba1f06d8d70.tar.bz2 historical-ff2de58014441b401741b28c2d051ba1f06d8d70.zip |
Version bump. Set SUPPORT_PYTHON_ABIS.
Package-Manager: portage-2.2_rc80/cvs/Linux x86_64
Diffstat (limited to 'net-zope/zope')
-rw-r--r-- | net-zope/zope/ChangeLog | 8 | ||||
-rw-r--r-- | net-zope/zope/Manifest | 4 | ||||
-rw-r--r-- | net-zope/zope/zope-2.12.9.ebuild | 176 |
3 files changed, 186 insertions, 2 deletions
diff --git a/net-zope/zope/ChangeLog b/net-zope/zope/ChangeLog index bfb3b87a011e..34f698a2026b 100644 --- a/net-zope/zope/ChangeLog +++ b/net-zope/zope/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-zope/zope # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v 1.177 2010/07/04 06:53:34 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v 1.178 2010/09/11 21:52:18 arfrever Exp $ + +*zope-2.12.9 (11 Sep 2010) + + 11 Sep 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +zope-2.12.9.ebuild: + Version bump. Set SUPPORT_PYTHON_ABIS. *zope-2.12.8 (04 Jul 2010) diff --git a/net-zope/zope/Manifest b/net-zope/zope/Manifest index b2e07ff7cd9f..3d8b6fd4a35e 100644 --- a/net-zope/zope/Manifest +++ b/net-zope/zope/Manifest @@ -11,6 +11,7 @@ DIST Zope2-2.12.5.zip 2447951 RMD160 3598235e5474e2e91f4e068111cf49f17f5ffdaa SH DIST Zope2-2.12.6.zip 2372167 RMD160 0aa80eb090c17ad3531654583a16d9f0d34f642f SHA1 3e8db5af4d79672246c6e5eb9bf95f48a13eaa5e SHA256 f4584cd91d80405dbece5a9ff0d4358cfdea98edc89dbc9e24511c58a24afc1f DIST Zope2-2.12.7.zip 2377968 RMD160 3501250d35759fa36a4629205378338e9f12a68d SHA1 9a335c49d1710937917d0dc77141b915f24f1322 SHA256 4b1e3413ce6f27d181e91aeecf01d132ba87d434e301514e10f7338b0f0695e3 DIST Zope2-2.12.8.zip 2382418 RMD160 e229eb890931dddd11bc05266139e5bfee67c982 SHA1 b870e65959dbf713ca1fc32e8f82154af4fc912a SHA256 40ceda18f0eec2fbc734c22849cbd4cc8ccee00cb8aa0d4745910ba3539c0bea +DIST Zope2-2.12.9.zip 2322236 RMD160 294b202065582e27d75e1b92fef4b771a0f1e5fe SHA1 ad4a0fc1cc4e5bc513959a7f3d1a239fc51790f9 SHA256 ffc9b67846561bce280c906984de507038730531a2059e816bff339c157e0b6b EBUILD zope-2.10.11.ebuild 2334 RMD160 5628a00cce8b9dfcd847049528cc13c6c41c401d SHA1 1fabddbc3731fc9cb9344fe05970cbf5f14d8438 SHA256 ec30cd035f75578d46a9588a50c973abdad2eb54a8a0d8e2f6914a2a9cccb7d9 EBUILD zope-2.10.7-r1.ebuild 2419 RMD160 a8eacc97fc3ec0d837e130c19b6160c51087054f SHA1 6cb14047b90e25b36582dc1b77296fd7033a1421 SHA256 b9fc3ccc0f925043e4999bc40d077ac3f927987fb72a4e2db3c1d2e9dac78f69 EBUILD zope-2.10.7.ebuild 2378 RMD160 b5aec5e9ff6fc8081dff21d3ab5049929922712d SHA1 8a7d41e475abb6efd60b1212e8520f862d804f8b SHA256 641c43f253d26a75a926283f5a5c8dadc65797cf605984b5d1b185c1161e8845 @@ -19,10 +20,11 @@ EBUILD zope-2.12.5.ebuild 4028 RMD160 501cedaa61e09838f72dab33a6850a73fcff5671 S EBUILD zope-2.12.6.ebuild 4249 RMD160 e69d8989189bd537d3159a74263d319e7a990e8b SHA1 ffeb89cf2dedbac6b5eb0dda4a019dd36fe47d84 SHA256 d194640b4411cbfb29de04f6c43634db6ef09e0db15912f76109070f04a6746f EBUILD zope-2.12.7.ebuild 4249 RMD160 ba9a6e23b3ad44877e47787fe4fc3c95882d232b SHA1 480d41f212fc4f9c2b7117403fa3cefb40a634e7 SHA256 dc9762134fd7f3342708e13e1817d5ff367c2bcb4a86fa4fc9996a939196de10 EBUILD zope-2.12.8.ebuild 4249 RMD160 8c92952e1effd7f1757c837247c354552b664dbf SHA1 989df89b80541c848692a0418989bb383a327d1b SHA256 4db462f8fe4ab0fe39c47e1b0247b32b239196879464f7e8f79f34dd396252cf +EBUILD zope-2.12.9.ebuild 5581 RMD160 ac861a04831148c9db1b4326b0ece77e96253410 SHA1 88a30f90c45130f3ba48f368d26e4ef8298d4d4c SHA256 f5bf23a1719c535a2140dfda090a64f198c72e35e06275ed9065b882b87af1c8 EBUILD zope-2.9.10-r1.ebuild 2439 RMD160 4d893fe82971f3d3a6b5bf47873c272ec732329b SHA1 930744cecdff3eed82705332bb505b9d5abbf486 SHA256 057741f43d33bd395e4bf69a1706931c5dcae18cd4f5e7e94d849a85dcde6345 EBUILD zope-2.9.10.ebuild 2397 RMD160 e33501ae1658b572c23e9383492215c2af0cc5b1 SHA1 fabcdb45cce3c0ae12e3f77e12a2122f409f13ec SHA256 c2ccd01a1e47987ef0a82c2803decdb85bc189e955b2c6c6c62186c897164a04 EBUILD zope-2.9.12.ebuild 2356 RMD160 77459a869dd0925c53572055e901fa1e710128f1 SHA1 2abb52de300d7d67c1f5f13600310cbc37264dfd SHA256 55a08e94da72603b68859f3dd91595fb8d2fc481378e5e0c868265dc396f164d EBUILD zope-3.2.2.ebuild 3624 RMD160 e74adaedc41a265b71fd583d87b6f33b34448c0a SHA1 5632e19dc545b80c4ebe734119d81c39fe2b101e SHA256 82e0e16be113e8e2c7f4ca11ef1fa3dc24b96ca4a65161909c4c58999779d57d EBUILD zope-3.3.1.ebuild 3429 RMD160 4951ab3da1c9adc918f0a093a4bfac6deceba2b5 SHA1 5aefef7e3cf1cfc22674510ec6c78b4d8bcc6448 SHA256 7cc2aa03f0e77a65a6fc93aa01755a7eb41de30384366fd963172389606cc139 -MISC ChangeLog 27191 RMD160 f02084395f47b0e4955b347343c8d3e86f59a76c SHA1 752e25dcb1be6f1d78175ca61655578ebea02839 SHA256 b3a2b6026b056ec0d49a12ec085dba6169060d1ac283ddd6083735c73f2b3911 +MISC ChangeLog 27357 RMD160 2adcf2eca8aa69d2df4588f1c59c8ef0dd45388e SHA1 bee11bda078f4d34815546d18408efdf7bd93d18 SHA256 963097fd0fb182503d4bbf3617b24f2bdd9465f5b9499ca3d477c2ea6b27b658 MISC metadata.xml 161 RMD160 5e136d45f811478292bd2ee1798a9b0229ffe468 SHA1 9755179a2dee0511818b1f6738ded28e335e1b9a SHA256 e69ac7205cbc2e42a297e20d8f08922003390a345bbf50ccf00d1158a1c97cc5 diff --git a/net-zope/zope/zope-2.12.9.ebuild b/net-zope/zope/zope-2.12.9.ebuild new file mode 100644 index 000000000000..1d5cca0e2088 --- /dev/null +++ b/net-zope/zope/zope-2.12.9.ebuild @@ -0,0 +1,176 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/zope-2.12.9.ebuild,v 1.1 2010/09/11 21:52:18 arfrever Exp $ + +EAPI="3" +PYTHON_DEPEND="2:2.6" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="2.4 2.5 3.*" + +inherit distutils eutils multilib versionator + +MY_PN="Zope2" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Zope 2 application server / web framework" +HOMEPAGE="http://www.zope.org http://zope2.zope.org http://pypi.python.org/pypi/Zope2" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip" + +LICENSE="ZPL" +SLOT="$(get_version_component_range 1-2)" +KEYWORDS="~alpha ~amd64 ~sparc ~x86" +IUSE="doc" +RESTRICT="test" + +RDEPEND="dev-python/docutils + dev-python/restrictedpython + dev-python/setuptools + net-zope/acquisition + net-zope/datetime + net-zope/extensionclass + net-zope/five-formlib + net-zope/initgroups + net-zope/missing + net-zope/multimapping + net-zope/namespaces + net-zope/persistence + net-zope/record + net-zope/tempstorage + net-zope/threadlock + net-zope/transaction + net-zope/zconfig + net-zope/zdaemon + net-zope/zlog + >=net-zope/zodb-3.9 + net-zope/zope-app-form + net-zope/zope-app-publication + net-zope/zope-app-publisher + net-zope/zope-app-schema + net-zope/zope-component + net-zope/zope-configuration + net-zope/zope-container + net-zope/zope-contentprovider + net-zope/zope-contenttype + net-zope/zope-deferredimport + net-zope/zope-event + net-zope/zope-exceptions + net-zope/zope-formlib + net-zope/zope-i18n + net-zope/zope-i18nmessageid + net-zope/zope-interface + net-zope/zope-lifecycleevent + net-zope/zope-location + net-zope/zope-mkzeoinstance + net-zope/zope-pagetemplate + net-zope/zope-processlifetime + net-zope/zope-proxy + net-zope/zope-publisher + net-zope/zope-schema + net-zope/zope-security + <net-zope/zope-sendmail-3.7.0 + net-zope/zope-sequencesort + net-zope/zope-site + net-zope/zope-size + net-zope/zope-structuredtext + net-zope/zope-tales + net-zope/zope-testbrowser + net-zope/zope-testing + net-zope/zope-traversing + net-zope/zope-viewlet + net-zope/zopeundo" +DEPEND="${RDEPEND} + app-arch/unzip + doc? ( dev-python/sphinx )" +PDEPEND="net-zope/zsqlmethods" + +S="${WORKDIR}/${MY_P}" + +ZUID="zope" +ZGID="zope" + +ZOPE_INSTALLATION_DIR="/usr/$(get_libdir)/${PN}-${SLOT}" + +# Narrow the scope of ownership/permissions. +# Security plan: +# * ZUID is the superuser for all zope instances. +# * ZGID is for a single instance's administration. + +src_compile() { + distutils_src_compile + + if use doc; then + einfo "Generation of documentation" + "$(PYTHON -f)" setup.py build_sphinx || die "Generation of documentation failed" + fi +} + +distutils_src_install_post_hook() { + mv "${D}${ZOPE_INSTALLATION_DIR}/lib/python" "${D}${ZOPE_INSTALLATION_DIR}/lib/python-${PYTHON_ABI}" +} + +src_install() { + distutils_src_install --home="${ZOPE_INSTALLATION_DIR}" + + # Don't install C sources. + find "${D}${ZOPE_INSTALLATION_DIR}" -name "*.c" | xargs rm -f + + local file + for file in "${D}${ZOPE_INSTALLATION_DIR}/bin/"*; do + scripts_preparation() { + cp "${file}" "${file}-${PYTHON_ABI}" || return 1 + python_convert_shebangs -q $(python_get_version) "${file}-${PYTHON_ABI}" + sed \ + -e "/import sys/i import os\nos.environ['PYTHONPATH'] = (os.environ.get('PYTHONPATH') + ':' if os.environ.get('PYTHONPATH') is not None else '') + os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'lib', 'python-${PYTHON_ABI}'))" \ + -e "/import sys/a sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'lib', 'python-${PYTHON_ABI}')))" \ + -i "${file}-${PYTHON_ABI}" + } + python_execute_function -q scripts_preparation + + python_generate_wrapper_scripts -f "${file}" + done + + modules_installation() { + local module + for module in Products Shared Shared/DC; do + echo "__import__('pkg_resources').declare_namespace(__name__)" > "${D}${ZOPE_INSTALLATION_DIR}/lib/python-${PYTHON_ABI}/${module}/__init__.py" || return 1 + done + } + python_execute_function -q modules_installation + + skel_preparation() { + sed -e "/^ZOPE_RUN=/s/runzope/&-${PYTHON_ABI}/" -i "${D}${ZOPE_INSTALLATION_DIR}/lib/python-${PYTHON_ABI}/Zope2/utilities/skel/bin/runzope.in" || return 1 + sed -e "/^ZDCTL=/s/zopectl/&-${PYTHON_ABI}/" -i "${D}${ZOPE_INSTALLATION_DIR}/lib/python-${PYTHON_ABI}/Zope2/utilities/skel/bin/zopectl.in" || return 1 + } + python_execute_function -q skel_preparation + + if use doc; then + pushd build/sphinx/html > /dev/null + dodoc _sources/* || die "Installation of documentation failed" + docinto html + dohtml -r [A-Za-z]* _static || die "Installation of documentation failed" + popd > /dev/null + fi + + # Copy the init script skeleton to skel directory of our installation. + insinto "${ZOPE_INSTALLATION_DIR}/skel" + doins "${FILESDIR}/zope.initd" || die "doins failed" +} + +pkg_postinst() { +# python_mod_optimize --allow-evaluated-non-sitedir-paths "${ZOPE_INSTALLATION_DIR}/lib/python-\${PYTHON_ABI}" + byte-compilation() { + "$(PYTHON)" "$(python_get_libdir)/compileall.py" -q ${ZOPE_INSTALLATION_DIR}/lib/python-${PYTHON_ABI} + "$(PYTHON)" -O "$(python_get_libdir)/compileall.py" -q ${ZOPE_INSTALLATION_DIR}/lib/python-${PYTHON_ABI} + } + python_execute_function -q byte-compilation + + # Create the zope user and group for backward compatibility. + enewgroup ${ZGID} 261 + usermod -g ${ZGID} ${ZUID} 2>&1 >/dev/null || \ + enewuser ${ZUID} 261 -1 /var/$(get_libdir)/zope ${ZGID} +} + +pkg_postrm() { +# python_mod_cleanup --allow-evaluated-non-sitedir-paths "${ZOPE_INSTALLATION_DIR}/lib/python-\${PYTHON_ABI}" + SUPPORT_PYTHON_ABIS="" python_mod_cleanup ${ZOPE_INSTALLATION_DIR}/lib +} |