1 |
arfrever 10/04/24 17:08:46 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: zope-2.12.5.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
(Portage version: HEAD/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.173 net-zope/zope/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-zope/zope/ChangeLog?rev=1.173&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-zope/zope/ChangeLog?rev=1.173&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-zope/zope/ChangeLog?r1=1.172&r2=1.173 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v |
19 |
retrieving revision 1.172 |
20 |
retrieving revision 1.173 |
21 |
diff -u -r1.172 -r1.173 |
22 |
--- ChangeLog 18 Apr 2010 11:55:57 -0000 1.172 |
23 |
+++ ChangeLog 24 Apr 2010 17:08:46 -0000 1.173 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for net-zope/zope |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v 1.172 2010/04/18 11:55:57 maekke Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v 1.173 2010/04/24 17:08:46 arfrever Exp $ |
29 |
+ |
30 |
+*zope-2.12.5 (24 Apr 2010) |
31 |
+ |
32 |
+ 24 Apr 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o> |
33 |
+ -zope-2.12.3.ebuild, +zope-2.12.5.ebuild: |
34 |
+ Version bump. |
35 |
|
36 |
18 Apr 2010; Markus Meier <maekke@g.o> zope-2.9.12.ebuild, |
37 |
zope-2.10.11.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 net-zope/zope/zope-2.12.5.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-zope/zope/zope-2.12.5.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-zope/zope/zope-2.12.5.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: zope-2.12.5.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/zope-2.12.5.ebuild,v 1.1 2010/04/24 17:08:46 arfrever Exp $ |
51 |
|
52 |
EAPI="3" |
53 |
PYTHON_DEPEND="2:2.6" |
54 |
|
55 |
inherit eutils multilib python versionator |
56 |
|
57 |
MY_PN="Zope2" |
58 |
MY_P="${MY_PN}-${PV}" |
59 |
|
60 |
DESCRIPTION="Zope is a web application platform used for building high-performance, dynamic web sites" |
61 |
HOMEPAGE="http://www.zope.org http://pypi.python.org/pypi/Zope2" |
62 |
SRC_URI="http://pypi.python.org/packages/source/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip" |
63 |
|
64 |
LICENSE="ZPL" |
65 |
SLOT="$(get_version_component_range 1-2)" |
66 |
KEYWORDS="~alpha ~amd64 ~sparc ~x86" |
67 |
IUSE="doc" |
68 |
RESTRICT="test" |
69 |
|
70 |
RDEPEND="dev-python/docutils |
71 |
dev-python/restrictedpython |
72 |
dev-python/setuptools |
73 |
net-zope/acquisition |
74 |
net-zope/datetime |
75 |
net-zope/extensionclass |
76 |
net-zope/five-formlib |
77 |
net-zope/persistence |
78 |
net-zope/tempstorage |
79 |
net-zope/transaction |
80 |
net-zope/zdaemon |
81 |
net-zope/zconfig |
82 |
net-zope/zlog |
83 |
>=net-zope/zodb-3.9 |
84 |
net-zope/zope-app-form |
85 |
net-zope/zope-app-publication |
86 |
net-zope/zope-app-publisher |
87 |
net-zope/zope-app-schema |
88 |
net-zope/zope-component |
89 |
net-zope/zope-configuration |
90 |
net-zope/zope-container |
91 |
net-zope/zope-contentprovider |
92 |
net-zope/zope-contenttype |
93 |
net-zope/zope-deferredimport |
94 |
net-zope/zope-event |
95 |
net-zope/zope-exceptions |
96 |
net-zope/zope-formlib |
97 |
net-zope/zope-i18n |
98 |
net-zope/zope-i18nmessageid |
99 |
net-zope/zope-interface |
100 |
net-zope/zope-lifecycleevent |
101 |
net-zope/zope-location |
102 |
net-zope/zope-pagetemplate |
103 |
net-zope/zope-processlifetime |
104 |
net-zope/zope-proxy |
105 |
net-zope/zope-publisher |
106 |
net-zope/zope-schema |
107 |
net-zope/zope-security |
108 |
<net-zope/zope-sendmail-3.7.0 |
109 |
net-zope/zope-sequencesort |
110 |
net-zope/zope-site |
111 |
net-zope/zope-size |
112 |
net-zope/zope-structuredtext |
113 |
net-zope/zope-tales |
114 |
net-zope/zope-testbrowser |
115 |
net-zope/zope-testing |
116 |
net-zope/zope-traversing |
117 |
net-zope/zope-viewlet |
118 |
net-zope/zopeundo |
119 |
" |
120 |
DEPEND="${RDEPEND} |
121 |
app-arch/unzip |
122 |
doc? ( dev-python/sphinx )" |
123 |
|
124 |
S="${WORKDIR}/${MY_P}" |
125 |
|
126 |
ZUID="zope" |
127 |
ZGID="zope" |
128 |
|
129 |
ZSERVDIR="/usr/$(get_libdir)/${PN}-${SLOT}" |
130 |
|
131 |
# Narrow the scope of ownership/permissions. |
132 |
# Security plan: |
133 |
# * ZUID is the superuser for all zope instances. |
134 |
# * ZGID is for a single instance's administration. |
135 |
|
136 |
pkg_setup() { |
137 |
python_set_active_version 2 |
138 |
} |
139 |
|
140 |
src_compile() { |
141 |
"$(PYTHON)" setup.py build || die "Building failed" |
142 |
|
143 |
if use doc; then |
144 |
cd doc |
145 |
emake html || die "Building of documentation failed" |
146 |
fi |
147 |
} |
148 |
|
149 |
src_install() { |
150 |
"$(PYTHON)" setup.py install --home="${ZSERVDIR}" --root="${D}" || die "Installation failed" |
151 |
dosym "$(PYTHON -a)" "${ZSERVDIR}/bin/python" || die "dosym failed" |
152 |
|
153 |
for file in "${D}usr/$(get_libdir)/${PN}-${SLOT}/bin/"*; do |
154 |
if [[ -f "${file}" && ! -L "${file}" ]]; then |
155 |
sed -e '/import sys/iimport os\nos.environ["PYTHONPATH"] = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "lib", "python"))' -e '/import sys/asys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "lib", "python")))' -i "${file}" || die "Changing of os.environ and sys.path in ${file} failed" |
156 |
fi |
157 |
done |
158 |
|
159 |
touch "${D}usr/$(get_libdir)/${PN}-${SLOT}/lib/python/Products/__init__.py" || die "touch failed" |
160 |
|
161 |
if use doc; then |
162 |
pushd doc/.build/html > /dev/null |
163 |
dodoc _sources/* || die "Installation of documentation failed" |
164 |
docinto html |
165 |
dohtml -r [A-Za-z]* _static || die "Installation of documentation failed" |
166 |
popd > /dev/null |
167 |
fi |
168 |
|
169 |
# Copy the init script skeleton to skel directory of our installation. |
170 |
insinto "${ZSERVDIR}/skel" |
171 |
doins "${FILESDIR}/zope.initd" || die "doins failed" |
172 |
} |
173 |
|
174 |
pkg_postinst() { |
175 |
python_mod_optimize "${ZSERVDIR}/lib/python" |
176 |
|
177 |
# Create the zope user and group for backward compatibility. |
178 |
enewgroup ${ZGID} 261 |
179 |
usermod -g ${ZGID} ${ZUID} 2>&1 >/dev/null || \ |
180 |
enewuser ${ZUID} 261 -1 /var/$(get_libdir)/zope ${ZGID} |
181 |
|
182 |
einfo "Be warned that you need at least one zope instance to run zope." |
183 |
einfo "Please emerge zope-config for further instance management." |
184 |
} |
185 |
|
186 |
pkg_postrm() { |
187 |
python_mod_cleanup "${ZSERVDIR}/lib/python" |
188 |
} |