Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-zope/zope: ChangeLog zope-2.12.15.ebuild
Date: Sun, 06 Feb 2011 18:31:02
Message-Id: 20110206183051.C3D9820054@flycatcher.gentoo.org
1 arfrever 11/02/06 18:30:51
2
3 Modified: ChangeLog
4 Added: zope-2.12.15.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha20/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.193 net-zope/zope/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-zope/zope/ChangeLog?rev=1.193&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-zope/zope/ChangeLog?rev=1.193&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-zope/zope/ChangeLog?r1=1.192&r2=1.193
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v
20 retrieving revision 1.192
21 retrieving revision 1.193
22 diff -u -r1.192 -r1.193
23 --- ChangeLog 20 Jan 2011 13:47:42 -0000 1.192
24 +++ ChangeLog 6 Feb 2011 18:30:51 -0000 1.193
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-zope/zope
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v 1.192 2011/01/20 13:47:42 arfrever Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v 1.193 2011/02/06 18:30:51 arfrever Exp $
30 +
31 +*zope-2.12.15 (06 Feb 2011)
32 +
33 + 06 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
34 + -zope-2.12.13.ebuild, +zope-2.12.15.ebuild:
35 + Version bump.
36
37 *zope-2.13.2 (20 Jan 2011)
38
39
40
41
42 1.1 net-zope/zope/zope-2.12.15.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-zope/zope/zope-2.12.15.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-zope/zope/zope-2.12.15.ebuild?rev=1.1&content-type=text/plain
46
47 Index: zope-2.12.15.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-zope/zope/zope-2.12.15.ebuild,v 1.1 2011/02/06 18:30:51 arfrever Exp $
52
53 EAPI="3"
54 PYTHON_DEPEND="2:2.6"
55 SUPPORT_PYTHON_ABIS="1"
56 RESTRICT_PYTHON_ABIS="2.4 2.5 3.* *-jython"
57
58 inherit distutils multilib versionator
59
60 MY_PN="Zope2"
61 MY_P="${MY_PN}-${PV}"
62
63 DESCRIPTION="Zope 2 application server / web framework"
64 HOMEPAGE="http://www.zope.org http://zope2.zope.org http://pypi.python.org/pypi/Zope2 https://launchpad.net/zope2"
65 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip"
66
67 LICENSE="ZPL"
68 SLOT="$(get_version_component_range 1-2)"
69 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
70 IUSE="doc"
71 RESTRICT="test"
72
73 RDEPEND="dev-python/docutils
74 dev-python/restrictedpython
75 dev-python/setuptools
76 net-zope/acquisition
77 net-zope/datetime
78 net-zope/extensionclass
79 net-zope/five-formlib
80 net-zope/initgroups
81 net-zope/missing
82 net-zope/multimapping
83 || ( net-zope/namespaces-zope[Products,Shared,Shared-DC] net-zope/namespaces )
84 net-zope/persistence
85 net-zope/record
86 net-zope/tempstorage
87 net-zope/threadlock
88 net-zope/transaction
89 net-zope/zconfig
90 net-zope/zdaemon
91 net-zope/zlog
92 >=net-zope/zodb-3.9
93 net-zope/zope-app-form
94 net-zope/zope-app-publication
95 net-zope/zope-app-publisher
96 net-zope/zope-app-schema
97 net-zope/zope-component
98 net-zope/zope-configuration
99 net-zope/zope-container
100 net-zope/zope-contentprovider
101 net-zope/zope-contenttype
102 net-zope/zope-deferredimport
103 net-zope/zope-event
104 net-zope/zope-exceptions
105 net-zope/zope-formlib
106 net-zope/zope-i18n
107 net-zope/zope-i18nmessageid
108 net-zope/zope-interface
109 net-zope/zope-lifecycleevent
110 net-zope/zope-location
111 net-zope/zope-mkzeoinstance
112 net-zope/zope-pagetemplate
113 net-zope/zope-processlifetime
114 net-zope/zope-proxy
115 net-zope/zope-publisher
116 net-zope/zope-schema
117 net-zope/zope-security
118 <net-zope/zope-sendmail-3.7.0
119 net-zope/zope-sequencesort
120 net-zope/zope-site
121 net-zope/zope-size
122 net-zope/zope-structuredtext
123 net-zope/zope-tales
124 net-zope/zope-testbrowser
125 net-zope/zope-testing
126 net-zope/zope-traversing
127 net-zope/zope-viewlet
128 net-zope/zopeundo"
129 DEPEND="${RDEPEND}
130 app-arch/unzip
131 doc? ( dev-python/sphinx )"
132 PDEPEND="net-zope/zsqlmethods"
133
134 S="${WORKDIR}/${MY_P}"
135
136 pkg_setup() {
137 python_pkg_setup
138 ZOPE_INSTALLATION_DIR="usr/$(get_libdir)/${PN}-${SLOT}"
139 }
140
141 src_compile() {
142 distutils_src_compile
143
144 if use doc; then
145 einfo "Generation of documentation"
146 "$(PYTHON -f)" setup.py build_sphinx || die "Generation of documentation failed"
147 fi
148 }
149
150 distutils_src_install_post_hook() {
151 mv "${T}/images/${PYTHON_ABI}/${ZOPE_INSTALLATION_DIR}/lib/python"{,-${PYTHON_ABI}}
152 }
153
154 src_install() {
155 distutils_src_install --home="${ZOPE_INSTALLATION_DIR}"
156
157 # Don't install C sources.
158 find "${D}${ZOPE_INSTALLATION_DIR}" -name "*.c" | xargs rm -f
159
160 local file
161 for file in "${D}${ZOPE_INSTALLATION_DIR}/bin/"*; do
162 scripts_preparation() {
163 cp "${file}" "${file}-${PYTHON_ABI}" || return 1
164 python_convert_shebangs -q $(python_get_version) "${file}-${PYTHON_ABI}"
165 sed \
166 -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}'))" \
167 -e "/import sys/a sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'lib', 'python-${PYTHON_ABI}')))" \
168 -i "${file}-${PYTHON_ABI}"
169 }
170 python_execute_function -q scripts_preparation
171
172 python_generate_wrapper_scripts -f "${file}"
173 done
174
175 modules_installation() {
176 local module
177 for module in Products Shared Shared/DC; do
178 echo "__import__('pkg_resources').declare_namespace(__name__)" > "${D}${ZOPE_INSTALLATION_DIR}/lib/python-${PYTHON_ABI}/${module}/__init__.py" || return 1
179 done
180 }
181 python_execute_function -q modules_installation
182
183 skel_preparation() {
184 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
185 sed -e "/^ZDCTL=/s/zopectl/&-${PYTHON_ABI}/" -i "${D}${ZOPE_INSTALLATION_DIR}/lib/python-${PYTHON_ABI}/Zope2/utilities/skel/bin/zopectl.in" || return 1
186 }
187 python_execute_function -q skel_preparation
188
189 if use doc; then
190 pushd build/sphinx/html > /dev/null
191 dodoc _sources/* || die "Installation of documentation failed"
192 docinto html
193 dohtml -r [A-Za-z]* _static || die "Installation of documentation failed"
194 popd > /dev/null
195 fi
196
197 # Copy the init script skeleton to skel directory of our installation.
198 insinto "/${ZOPE_INSTALLATION_DIR}/skel"
199 doins "${FILESDIR}/zope.initd" || die "doins failed"
200 }
201
202 pkg_postinst() {
203 python_mod_optimize --allow-evaluated-non-sitedir-paths "/${ZOPE_INSTALLATION_DIR}/lib/python-\${PYTHON_ABI}"
204 }
205
206 pkg_postrm() {
207 python_mod_cleanup --allow-evaluated-non-sitedir-paths "/${ZOPE_INSTALLATION_DIR}/lib/python-\${PYTHON_ABI}"
208 }