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