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.7.ebuild
Date: Sun, 04 Jul 2010 06:47:29
Message-Id: 20100704064709.E66BC2CE14@corvid.gentoo.org
1 arfrever 10/07/04 06:47:09
2
3 Modified: ChangeLog
4 Added: zope-2.12.7.ebuild
5 Log:
6 Version bump.
7 (Portage version: HEAD/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.176 net-zope/zope/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-zope/zope/ChangeLog?rev=1.176&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-zope/zope/ChangeLog?rev=1.176&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-zope/zope/ChangeLog?r1=1.175&r2=1.176
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v
19 retrieving revision 1.175
20 retrieving revision 1.176
21 diff -u -r1.175 -r1.176
22 --- ChangeLog 4 Jul 2010 06:42:28 -0000 1.175
23 +++ ChangeLog 4 Jul 2010 06:47:09 -0000 1.176
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.175 2010/07/04 06:42:28 arfrever Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v 1.176 2010/07/04 06:47:09 arfrever Exp $
29 +
30 +*zope-2.12.7 (04 Jul 2010)
31 +
32 + 04 Jul 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
33 + +zope-2.12.7.ebuild:
34 + Version bump.
35
36 *zope-2.12.6 (04 Jul 2010)
37
38
39
40
41 1.1 net-zope/zope/zope-2.12.7.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-zope/zope/zope-2.12.7.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-zope/zope/zope-2.12.7.ebuild?rev=1.1&content-type=text/plain
45
46 Index: zope-2.12.7.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.7.ebuild,v 1.1 2010/07/04 06:47:09 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/initgroups
78 net-zope/missing
79 net-zope/multimapping
80 net-zope/persistence
81 net-zope/record
82 net-zope/tempstorage
83 net-zope/threadlock
84 net-zope/transaction
85 net-zope/zdaemon
86 net-zope/zconfig
87 net-zope/zlog
88 >=net-zope/zodb-3.9
89 net-zope/zope-app-form
90 net-zope/zope-app-publication
91 net-zope/zope-app-publisher
92 net-zope/zope-app-schema
93 net-zope/zope-component
94 net-zope/zope-configuration
95 net-zope/zope-container
96 net-zope/zope-contentprovider
97 net-zope/zope-contenttype
98 net-zope/zope-deferredimport
99 net-zope/zope-event
100 net-zope/zope-exceptions
101 net-zope/zope-formlib
102 net-zope/zope-i18n
103 net-zope/zope-i18nmessageid
104 net-zope/zope-interface
105 net-zope/zope-lifecycleevent
106 net-zope/zope-location
107 net-zope/zope-mkzeoinstance
108 net-zope/zope-pagetemplate
109 net-zope/zope-processlifetime
110 net-zope/zope-proxy
111 net-zope/zope-publisher
112 net-zope/zope-schema
113 net-zope/zope-security
114 <net-zope/zope-sendmail-3.7.0
115 net-zope/zope-sequencesort
116 net-zope/zope-site
117 net-zope/zope-size
118 net-zope/zope-structuredtext
119 net-zope/zope-tales
120 net-zope/zope-testbrowser
121 net-zope/zope-testing
122 net-zope/zope-traversing
123 net-zope/zope-viewlet
124 net-zope/zopeundo
125 "
126 DEPEND="${RDEPEND}
127 app-arch/unzip
128 doc? ( dev-python/sphinx )"
129
130 S="${WORKDIR}/${MY_P}"
131
132 ZUID="zope"
133 ZGID="zope"
134
135 ZSERVDIR="/usr/$(get_libdir)/${PN}-${SLOT}"
136
137 # Narrow the scope of ownership/permissions.
138 # Security plan:
139 # * ZUID is the superuser for all zope instances.
140 # * ZGID is for a single instance's administration.
141
142 pkg_setup() {
143 python_set_active_version 2
144 python_pkg_setup
145 }
146
147 src_compile() {
148 "$(PYTHON)" setup.py build || die "Building failed"
149
150 if use doc; then
151 einfo "Generation of documentation"
152 pushd doc > /dev/null
153 emake html || die "Generation of documentation failed"
154 popd > /dev/null
155 fi
156 }
157
158 src_install() {
159 "$(PYTHON)" setup.py install --home="${ZSERVDIR}" --root="${D}" || die "Installation failed"
160 dosym "$(PYTHON -a)" "${ZSERVDIR}/bin/python" || die "dosym failed"
161
162 for file in "${D}usr/$(get_libdir)/${PN}-${SLOT}/bin/"*; do
163 if [[ -f "${file}" && ! -L "${file}" ]]; then
164 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"
165 fi
166 done
167
168 touch "${D}usr/$(get_libdir)/${PN}-${SLOT}/lib/python/Products/__init__.py" || die "touch failed"
169
170 if use doc; then
171 pushd doc/.build/html > /dev/null
172 dodoc _sources/* || die "Installation of documentation failed"
173 docinto html
174 dohtml -r [A-Za-z]* _static || die "Installation of documentation failed"
175 popd > /dev/null
176 fi
177
178 # Copy the init script skeleton to skel directory of our installation.
179 insinto "${ZSERVDIR}/skel"
180 doins "${FILESDIR}/zope.initd" || die "doins failed"
181 }
182
183 pkg_postinst() {
184 python_mod_optimize "${ZSERVDIR}/lib/python"
185
186 # Create the zope user and group for backward compatibility.
187 enewgroup ${ZGID} 261
188 usermod -g ${ZGID} ${ZUID} 2>&1 >/dev/null || \
189 enewuser ${ZUID} 261 -1 /var/$(get_libdir)/zope ${ZGID}
190
191 einfo "Be warned that you need at least one zope instance to run zope."
192 einfo "Please emerge zope-config for further instance management."
193 }
194
195 pkg_postrm() {
196 python_mod_cleanup "${ZSERVDIR}/lib/python"
197 }