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.13.0_rc1.ebuild
Date: Sat, 30 Oct 2010 05:08:26
Message-Id: 20101030050823.2D14120051@flycatcher.gentoo.org
1 arfrever 10/10/30 05:08:23
2
3 Modified: ChangeLog
4 Added: zope-2.13.0_rc1.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha2_p2/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.184 net-zope/zope/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-zope/zope/ChangeLog?rev=1.184&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-zope/zope/ChangeLog?rev=1.184&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-zope/zope/ChangeLog?r1=1.183&r2=1.184
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v
20 retrieving revision 1.183
21 retrieving revision 1.184
22 diff -u -r1.183 -r1.184
23 --- ChangeLog 17 Oct 2010 21:43:59 -0000 1.183
24 +++ ChangeLog 30 Oct 2010 05:08:23 -0000 1.184
25 @@ -1,6 +1,12 @@
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.183 2010/10/17 21:43:59 arfrever Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v 1.184 2010/10/30 05:08:23 arfrever Exp $
30 +
31 +*zope-2.13.0_rc1 (30 Oct 2010)
32 +
33 + 30 Oct 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
34 + -zope-2.13.0_alpha4.ebuild, +zope-2.13.0_rc1.ebuild:
35 + Version bump.
36
37 *zope-2.13.0_beta1 (17 Oct 2010)
38
39
40
41
42 1.1 net-zope/zope/zope-2.13.0_rc1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-zope/zope/zope-2.13.0_rc1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-zope/zope/zope-2.13.0_rc1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: zope-2.13.0_rc1.ebuild
48 ===================================================================
49 # Copyright 1999-2010 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.13.0_rc1.ebuild,v 1.1 2010/10/30 05:08:23 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.*"
57
58 inherit distutils eutils multilib versionator
59
60 MY_PN="Zope2"
61 MY_P="${MY_PN}-${PV/_rc/c}"
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 ~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/accesscontrol
77 net-zope/acquisition
78 net-zope/datetime
79 net-zope/documenttemplate
80 net-zope/extensionclass
81 net-zope/initgroups
82 net-zope/missing
83 net-zope/multimapping
84 net-zope/namespaces
85 net-zope/persistence
86 net-zope/record
87 net-zope/tempstorage
88 net-zope/transaction
89 net-zope/zconfig
90 net-zope/zdaemon
91 net-zope/zexceptions
92 net-zope/zlog
93 >=net-zope/zodb-3.9
94 net-zope/zope-app-form
95 net-zope/zope-browser
96 net-zope/zope-browsermenu
97 net-zope/zope-browserpage
98 net-zope/zope-browserresource
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-pagetemplate
114 net-zope/zope-processlifetime
115 net-zope/zope-proxy
116 net-zope/zope-ptresource
117 net-zope/zope-publisher
118 net-zope/zope-schema
119 net-zope/zope-security
120 net-zope/zope-sendmail
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-3.5.0
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/btreefolder2-2.13.0
135 net-zope/externalmethod
136 net-zope/mailhost
137 net-zope/mimetools
138 net-zope/ofsp
139 net-zope/pythonscripts
140 net-zope/standardcachemanagers
141 net-zope/zctextindex"
142
143 S="${WORKDIR}/${MY_P}"
144
145 pkg_setup() {
146 python_pkg_setup
147 ZOPE_INSTALLATION_DIR="usr/$(get_libdir)/${PN}-${SLOT}"
148 }
149
150 src_compile() {
151 distutils_src_compile
152
153 if use doc; then
154 einfo "Generation of documentation"
155 "$(PYTHON -f)" setup.py build_sphinx || die "Generation of documentation failed"
156 fi
157 }
158
159 distutils_src_install_post_hook() {
160 mv "${D}${ZOPE_INSTALLATION_DIR}/lib/python" "${D}${ZOPE_INSTALLATION_DIR}/lib/python-${PYTHON_ABI}"
161 }
162
163 src_install() {
164 distutils_src_install --home="${ZOPE_INSTALLATION_DIR}"
165
166 local file
167 for file in "${D}${ZOPE_INSTALLATION_DIR}/bin/"*; do
168 scripts_preparation() {
169 cp "${file}" "${file}-${PYTHON_ABI}" || return 1
170 python_convert_shebangs -q $(python_get_version) "${file}-${PYTHON_ABI}"
171 sed \
172 -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}'))" \
173 -e "/import sys/a sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'lib', 'python-${PYTHON_ABI}')))" \
174 -i "${file}-${PYTHON_ABI}"
175 }
176 python_execute_function -q scripts_preparation
177
178 python_generate_wrapper_scripts -f "${file}"
179 done
180
181 modules_installation() {
182 local module
183 for module in Products Shared Shared/DC; do
184 echo "__import__('pkg_resources').declare_namespace(__name__)" > "${D}${ZOPE_INSTALLATION_DIR}/lib/python-${PYTHON_ABI}/${module}/__init__.py" || return 1
185 done
186 }
187 python_execute_function -q modules_installation
188
189 skel_preparation() {
190 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
191 sed -e "/^ZDCTL=/s/zopectl/&-${PYTHON_ABI}/" -i "${D}${ZOPE_INSTALLATION_DIR}/lib/python-${PYTHON_ABI}/Zope2/utilities/skel/bin/zopectl.in" || return 1
192 }
193 python_execute_function -q skel_preparation
194
195 if use doc; then
196 pushd build/sphinx/html > /dev/null
197 dodoc _sources/* || die "Installation of documentation failed"
198 docinto html
199 dohtml -r [A-Za-z]* _static || die "Installation of documentation failed"
200 popd > /dev/null
201 fi
202
203 # Copy the init script skeleton to skel directory of our installation.
204 insinto "/${ZOPE_INSTALLATION_DIR}/skel"
205 doins "${FILESDIR}/zope.initd" || die "doins failed"
206 }
207
208 pkg_postinst() {
209 python_mod_optimize --allow-evaluated-non-sitedir-paths "/${ZOPE_INSTALLATION_DIR}/lib/python-\${PYTHON_ABI}"
210 }
211
212 pkg_postrm() {
213 python_mod_cleanup --allow-evaluated-non-sitedir-paths "/${ZOPE_INSTALLATION_DIR}/lib/python-\${PYTHON_ABI}"
214 }