summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadoslaw Stachowiak <radek@gentoo.org>2005-10-17 22:05:29 +0000
committerRadoslaw Stachowiak <radek@gentoo.org>2005-10-17 22:05:29 +0000
commit2b6c32e5e685a5b49d92924761c3692049f094b5 (patch)
treee712c8f2571788311bee0f464ad92df1a6a95ff2 /net-zope
parentVersion bump as notified by Matthias Reinelt via e-mail. (diff)
downloadhistorical-2b6c32e5e685a5b49d92924761c3692049f094b5.tar.gz
historical-2b6c32e5e685a5b49d92924761c3692049f094b5.tar.bz2
historical-2b6c32e5e685a5b49d92924761c3692049f094b5.zip
version bump in 2.7 and 2.8. also fixes security bug #109087
Package-Manager: portage-1.589-cvs
Diffstat (limited to 'net-zope')
-rw-r--r--net-zope/zope/ChangeLog9
-rw-r--r--net-zope/zope/Manifest17
-rw-r--r--net-zope/zope/files/2.7.8/i18n-1.0.0.patch176
-rw-r--r--net-zope/zope/files/digest-zope-2.7.81
-rw-r--r--net-zope/zope/files/digest-zope-2.8.21
-rw-r--r--net-zope/zope/zope-2.7.8.ebuild107
-rw-r--r--net-zope/zope/zope-2.8.2.ebuild110
7 files changed, 414 insertions, 7 deletions
diff --git a/net-zope/zope/ChangeLog b/net-zope/zope/ChangeLog
index ed4283260c0a..e0718f163617 100644
--- a/net-zope/zope/ChangeLog
+++ b/net-zope/zope/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-zope/zope
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v 1.79 2005/09/18 12:22:29 blubb Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v 1.80 2005/10/17 22:05:29 radek Exp $
+
+*zope-2.8.2 (17 Oct 2005)
+*zope-2.7.8 (17 Oct 2005)
+
+ 17 Oct 2005; Radoslaw Stachowiak <radek@gentoo.org>
+ +files/2.7.8/i18n-1.0.0.patch, +zope-2.7.8.ebuild, +zope-2.8.2.ebuild:
+ version bump in 2.7 and 2.8. also fixes security bug #109087
18 Sep 2005; Simon Stelling <blubb@gentoo.org> zope-2.8.1.ebuild:
make zope multilib-strict aware; bug 106234
diff --git a/net-zope/zope/Manifest b/net-zope/zope/Manifest
index 2b23f8b676f0..13db7e94278e 100644
--- a/net-zope/zope/Manifest
+++ b/net-zope/zope/Manifest
@@ -1,22 +1,27 @@
-MD5 594e808d18e70b251754bd34ae6cfdf7 ChangeLog 12886
-MD5 7890d88c5c6d189fbe6b187a3ebb6532 metadata.xml 161
+MD5 fb3994e90988af7430b6dfc73125606b zope-2.7.8.ebuild 3334
+MD5 a51712c4e56687605942d3c914c60d31 zope-2.8.1.ebuild 3512
+MD5 42625ed029875b4d13c9af34f02aa7ed zope-2.7.5.ebuild 3334
MD5 5416407eff85546578bb4e7c61f45d5e zope-2.6.4-r1.ebuild 5629
MD5 8664a857f90291f6bd82968b54b23e0d zope-2.7.7.ebuild 3332
MD5 03dd7525a3392e245889fba308edc438 zope-2.8.0.ebuild 3362
-MD5 42625ed029875b4d13c9af34f02aa7ed zope-2.7.5.ebuild 3334
+MD5 6e4ba5b7bd92b20ad3f28cb7e3158deb zope-2.8.2.ebuild 3515
+MD5 8f597e217e4dd3f4ed4668522d480f53 ChangeLog 13130
+MD5 7890d88c5c6d189fbe6b187a3ebb6532 metadata.xml 161
MD5 e3ebbd463da7c5b7f7cacd4d79323c46 zope-2.7.6.ebuild 3335
-MD5 a51712c4e56687605942d3c914c60d31 zope-2.8.1.ebuild 3512
MD5 ddddbf81a9803fef7474cb22df00a924 files/digest-zope-2.6.4-r1 64
+MD5 515774f7b0464e0ce8c3283141c676c7 files/digest-zope-2.7.5 66
+MD5 8bf817c4c3e6ad2b06e92a95c6ffd7e0 files/digest-zope-2.7.6 66
MD5 5d8e83203542dfc8d07354dcdd682134 files/digest-zope-2.7.7 66
+MD5 dd38699498b0cab29b7eb5df48c4674a files/digest-zope-2.7.8 66
MD5 17edb3696d5d99b37864d9bb7cc23d21 files/digest-zope-2.8.0 69
MD5 47255f0bd3319908dc8ee081f6c8cf17 files/digest-zope-2.8.1 66
-MD5 515774f7b0464e0ce8c3283141c676c7 files/digest-zope-2.7.5 66
+MD5 e1516616e08b645a062860a4903fa4fe files/digest-zope-2.8.2 69
MD5 037cf91a5b4d60efe166f90210c837ed files/i18n-1.0.0.patch 8080
MD5 28b31acf9b00b4388850af2acd90b2e3 files/zope.initd 1232
-MD5 8bf817c4c3e6ad2b06e92a95c6ffd7e0 files/digest-zope-2.7.6 66
MD5 a18ddd3f2cdcb815cf86f4b9c4bdd6fe files/2.6.4/zope.confd 950
MD5 4d278d26bb7be7693f7213861a9d3805 files/2.6.4/zope.initd 3791
MD5 c97d6dc27b456ae0fbfdf8ee5627ac1b files/2.7.4/i18n-1.0.0.patch 7630
MD5 adfe59eaafb05edb1c4a445563b04c08 files/2.7.6/i18n-1.0.0.patch 7634
MD5 adfe59eaafb05edb1c4a445563b04c08 files/2.7.7/i18n-1.0.0.patch 7634
+MD5 adfe59eaafb05edb1c4a445563b04c08 files/2.7.8/i18n-1.0.0.patch 7634
MD5 adfe59eaafb05edb1c4a445563b04c08 files/2.8.1/i18n-1.0.0.patch 7634
diff --git a/net-zope/zope/files/2.7.8/i18n-1.0.0.patch b/net-zope/zope/files/2.7.8/i18n-1.0.0.patch
new file mode 100644
index 000000000000..f901451fce0c
--- /dev/null
+++ b/net-zope/zope/files/2.7.8/i18n-1.0.0.patch
@@ -0,0 +1,176 @@
+? encode.diff
+? i18n-0.9.9.patch
+? i18n-1.0.0.patch
+? i18n.patch
+? run_tests
+? test.diff
+Index: ClassicStructuredText.py
+===================================================================
+RCS file: /var/lib/cvs/nkm/zope/StructuredText/ClassicStructuredText.py,v
+retrieving revision 1.1.1.2
+retrieving revision 1.1.1.1.2.1
+diff -u -r1.1.1.2 -r1.1.1.1.2.1
+Index: DocumentClass.py
+===================================================================
+RCS file: /var/lib/cvs/nkm/zope/StructuredText/DocumentClass.py,v
+retrieving revision 1.1.1.1
+diff -u -r1.1.1.1 DocumentClass.py
+--- DocumentClass.py 15 Apr 2003 15:13:52 -0000 1.1.1.1
++++ DocumentClass.py 9 Nov 2003 18:02:30 -0000
+@@ -789,7 +789,7 @@
+
+ def doc_literal(
+ self, s,
+- expr = re.compile(r"(\W+|^)'([%s%s%s\s]+)'([%s]+|$)" % (letters, digits, literal_punc, phrase_delimiters)).search,):
++ expr = re.compile(r"(\W+|^)'((?:\w|[%s%s\s])+)'([%s]+|$)" % (digits, literal_punc, phrase_delimiters), re.U).search,):
+
+ # old expr... failed to cross newlines.
+ # expr=re.compile(
+@@ -807,7 +807,9 @@
+
+ def doc_emphasize(
+ self, s,
+- expr = re.compile(r'\*([%s%s%s\s]+?)\*' % (letters, digits, strongem_punc)).search
++ # i18nal variant
++ expr = re.compile(r'\*((?:\w|[%s\s])+?)\*' % (strongem_punc), re.U).search
++ #expr = re.compile(r'\*([%s%s%s\s]+?)\*' % (letters, digits, strongem_punc)).search
+ #expr = re.compile(r'\s*\*([ \n\r%s0-9.:/;,\'\"\?\-\_\/\=\-\>\<\(\)]+)\*(?!\*|-)' % letters).search # old expr, inconsistent punctuation
+ ):
+
+@@ -853,7 +855,7 @@
+
+ def doc_underline(self,
+ s,
+- expr=re.compile(r'_([%s%s%s\s]+)_([\s%s]|$)' % (letters, digits, under_punc,phrase_delimiters)).search):
++ expr=re.compile(r'_((?:\w|[%s\s])+)_([\s%s]|$)' % (under_punc,phrase_delimiters), re.U).search):
+
+ result = expr(s)
+ if result:
+@@ -867,7 +869,7 @@
+
+ def doc_strong(self,
+ s,
+- expr = re.compile(r'\*\*([%s%s%s\s]+?)\*\*' % (letters, digits, strongem_punc)).search
++ expr = re.compile(r'\*\*((?:\w|[%s%s\s])+?)\*\*' % (digits, strongem_punc), re.U).search
+ #expr = re.compile(r'\s*\*\*([ \n\r%s0-9.:/;,\'\"\?\-\_\/\=\-\>\<\(\)]+)\*\*(?!\*|-)' % letters).search, # old expr, inconsistent punc, failed to cross newlines.
+ ):
+
+@@ -879,7 +881,7 @@
+ return None
+
+ ## Some constants to make the doc_href() regex easier to read.
+- _DQUOTEDTEXT = r'("[ %s0-9\n\r%s]+")' % (letters,dbl_quoted_punc) ## double quoted text
++ _DQUOTEDTEXT = r'("[^"]+")'
+ _ABSOLUTE_URL=r'((http|https|ftp|mailto|file|about)[:/]+?[%s0-9_\@\.\,\?\!\/\:\;\-\#\~\=\&\%%\+]+)' % letters
+ _ABS_AND_RELATIVE_URL=r'([%s0-9_\@\.\,\?\!\/\:\;\-\#\~\=\&\%%\+]+)' % letters
+
+@@ -887,12 +889,12 @@
+
+
+ def doc_href1(self, s,
+- expr=re.compile(_DQUOTEDTEXT + "(:)" + _ABS_AND_RELATIVE_URL + _SPACES).search
++ expr=re.compile(_DQUOTEDTEXT + "(:)" + _ABS_AND_RELATIVE_URL + _SPACES, re.U).search
+ ):
+ return self.doc_href(s, expr)
+
+ def doc_href2(self, s,
+- expr=re.compile(_DQUOTEDTEXT + r'(\,\s+)' + _ABSOLUTE_URL + _SPACES).search
++ expr=re.compile(_DQUOTEDTEXT + r'(\,\s+)' + _ABSOLUTE_URL + _SPACES, re.U).search
+ ):
+ return self.doc_href(s, expr)
+
+Index: DocumentWithImages.py
+===================================================================
+RCS file: /var/lib/cvs/nkm/zope/StructuredText/DocumentWithImages.py,v
+retrieving revision 1.1.1.1
+retrieving revision 1.2
+--- DocumentWithImages.py 2005-01-14 21:34:31.789944304 +0100
++++ DocumentWithImages.py 2005-01-14 21:33:58.362026120 +0100
+@@ -30,7 +30,7 @@
+
+ def doc_img(
+ self, s,
+- expr1=re.compile('\"([ _a-zA-Z0-9*.:/;,\-\n\~]+)\":img:([a-zA-Z0-9%\_\-.:/\?=;,\n\~]+)').search,
++ expr1=re.compile('\"((?:\w|[ *.:/;,\-\n\~])+)\":img:([a-zA-Z0-9\_\-.:/;,\n\~]+)', re.U).search,
+ ):
+
+
+Index: HTMLClass.py
+===================================================================
+RCS file: /var/lib/cvs/nkm/zope/StructuredText/HTMLClass.py,v
+retrieving revision 1.1.1.1
+retrieving revision 1.2.2.2
+diff -u -r1.1.1.1 -r1.2.2.2
+Index: ST.py
+===================================================================
+RCS file: /var/lib/cvs/nkm/zope/StructuredText/ST.py,v
+retrieving revision 1.1.1.1
+retrieving revision 1.2
+diff -u -r1.1.1.1 -r1.2
+--- ST.py 15 Apr 2003 15:13:53 -0000 1.1.1.1
++++ ST.py 15 Apr 2003 15:16:25 -0000 1.2
+@@ -115,6 +115,9 @@
+ Structure => [paragraph,[sub-paragraphs]]
+ """
+
++ if type(paragraphs) == type(''):
++ paragraphs = unicode(paragraphs, 'utf-8')
++
+ currentlevel = 0
+ currentindent = 0
+ levels = {0:0}
+Index: Zwiki.py
+===================================================================
+RCS file: /var/lib/cvs/nkm/zope/StructuredText/Zwiki.py,v
+retrieving revision 1.1.1.2
+retrieving revision 1.1.1.1.2.1
+diff -u -r1.1.1.2 -r1.1.1.1.2.1
+Index: test.py
+===================================================================
+RCS file: /var/lib/cvs/nkm/zope/StructuredText/test.py,v
+retrieving revision 1.1.1.1
+retrieving revision 1.1.2.1
+diff -u -r1.1.1.1 -r1.1.2.1
+Index: tests/__init__.py
+===================================================================
+RCS file: /var/lib/cvs/nkm/zope/StructuredText/tests/__init__.py,v
+retrieving revision 1.1.1.1
+retrieving revision 1.1.2.1
+diff -u -r1.1.1.1 -r1.1.2.1
+Index: tests/testStructuredText.py
+===================================================================
+RCS file: /var/lib/cvs/nkm/zope/StructuredText/tests/testStructuredText.py,v
+retrieving revision 1.1.1.1
+retrieving revision 1.1.1.1.2.3
+diff -u -r1.1.1.1 -r1.1.1.1.2.3
+--- tests/testStructuredText.py 15 Apr 2003 15:13:56 -0000 1.1.1.1
++++ tests/testStructuredText.py 7 Nov 2003 12:12:32 -0000 1.1.1.1.2.3
+@@ -210,13 +210,22 @@
+ '<code>"literal":http://www.zope.org/.</code>')
+
+
+- def XXXtestUnicodeContent(self):
+- # This fails because ST uses the default locale to get "letters"
+- # whereas it should use \w+ and re.U if the string is Unicode.
+- #self._test(u"h\xe9 **y\xe9** xx",
+- # u"h\xe9 <strong>y\xe9</strong> xx")
+- pass
++ def testUnicodeContent(self):
++ self._test(u"h\xe9 **y\xe9** xx",
++ u"h\xe9 <strong>y\xe9</strong> xx")
++ self._test(u"h\xe9 *y\xe9* xx",
++ u"h\xe9 <em>y\xe9</em> xx")
++ self._test(u"h\xe9 _y\xe9_ xx",
++ u"h\xe9 <u>y\xe9</u> xx")
++ self._test(u"h\xe9 'y\xe9' xx",
++ u"h\xe9 <code>y\xe9</code> xx")
++ self._test(u"h\xe9 \"y\xe9\":http://zope.org xx",
++ u"h\xe9 <a href=\"http://zope.org\">y\xe9</a> xx")
+
++ def testDoNotHang(self):
++ raw_str = 'UAB "Vita Baltic International" produkcijos asortiment\u0105 papild\u0117 dar trys specifines nedegumo savybes turin\u010dios porolono ru\u0161ys. \nSpalio m\u0117nes\u012f buvo gauti tarptautiniai sertifikatai, liudijantys, kad porolonai CV 3037, CV 3538 ir CV 2533 atitinka degumo standart\u0173 BS 5852:Part 2: 1982 reikalavimus. Tai labai gera \u017einia bald\u0173 gamintojams, gaminantiems baldus ir \u010diu\u017einius,\nkuri\u0173 gaminiams keliami ypatingi importuotoj\u0173 reikalavimai.'
++ res_txt = raw_str
++ self._test(raw_str, res_txt)
+
+ def test_suite():
+ suite = unittest.TestSuite()
diff --git a/net-zope/zope/files/digest-zope-2.7.8 b/net-zope/zope/files/digest-zope-2.7.8
new file mode 100644
index 000000000000..7fe2a3ef3a6e
--- /dev/null
+++ b/net-zope/zope/files/digest-zope-2.7.8
@@ -0,0 +1 @@
+MD5 7e0eaefe7e0b9a753f1dee7a73a0aca5 Zope-2.7.8-final.tgz 2952102
diff --git a/net-zope/zope/files/digest-zope-2.8.2 b/net-zope/zope/files/digest-zope-2.8.2
new file mode 100644
index 000000000000..b5495d1008c7
--- /dev/null
+++ b/net-zope/zope/files/digest-zope-2.8.2
@@ -0,0 +1 @@
+MD5 3ce41fce6deb1739fec5c4abcd8ab834 Zope-2.8.2-final.tar.gz 8227937
diff --git a/net-zope/zope/zope-2.7.8.ebuild b/net-zope/zope/zope-2.7.8.ebuild
new file mode 100644
index 000000000000..afe314cca99c
--- /dev/null
+++ b/net-zope/zope/zope-2.7.8.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/zope-2.7.8.ebuild,v 1.1 2005/10/17 22:05:29 radek Exp $
+
+inherit eutils
+
+DESCRIPTION="Zope is a web application platform used for building high-performance, dynamic web sites."
+HOMEPAGE="http://www.zope.org"
+SRC_URI="http://www.zope.org/Products/Zope/${PV}/Zope-${PV}-final.tgz"
+LICENSE="ZPL"
+SLOT="${PV}"
+
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+IUSE="unicode"
+
+RDEPEND="=dev-lang/python-2.3*"
+python='python2.3'
+
+DEPEND="${RDEPEND}
+virtual/libc
+>=sys-apps/sed-4.0.5"
+
+S="${WORKDIR}/Zope-${PV}-final"
+ZUID=zope
+ZGID=zope
+ZS_DIR=${ROOT%/}/usr/lib
+ZSERVDIR=${ZS_DIR}/${P}
+
+# Narrow the scope of ownership/permissions.
+# Security plan:
+# * ZUID is the superuser for all zope instances.
+# * ZGID is for a single instance's administration.
+# * Other' should not have any access to ${ZSERVDIR},
+# because they can work through the Zope web interface.
+# This should protect our code/data better.
+#
+# UPDATE: ${ZSERVDIR} is a lib directory and should be world readable
+# like e.g /usr/lib/python we do not store any user data there,
+# currently removed all custom permission stuff, for ${ZSERVDIR}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+}
+
+src_compile() {
+ ./configure --ignore-largefile --prefix=. --with-python=/usr/bin/python2.3 || die "Failed to configure."
+ emake || die "Failed to compile."
+}
+
+src_install() {
+ dodoc README.txt
+ dodoc doc/*.txt
+ docinto PLATFORMS ; dodoc doc/PLATFORMS/*
+
+ # Patched StructuredText will accept source text formatted in utf-8 encoding,
+ # apply all formattings and output utf-8 encoded text.
+ # if you want to use this option you need to set your
+ # system python encoding to utf-8 (create the file sitecustomize.py inside
+ # your site-packages, add the following lines
+ # import sys
+ # sys.setdefaultencoding('utf-8')
+ # If this is a problem, let me know right away. --batlogg@gentoo.org
+ # I wondering if we need a USE flag for this and wheter we can set the
+ # sys.encoding automtically
+ # so i defined a use flag
+
+ if use unicode; then
+ einfo "Patching structured text"
+ einfo "make sure you have set the system python encoding to utf-8"
+ einfo "create the file sitecustomize.py inside your site-packages"
+ einfo "import sys"
+ einfo "sys.setdefaultencoding('utf8')"
+ cd ${S}/lib/python/StructuredText/
+ epatch ${FILESDIR}/${PV}/i18n-1.0.0.patch
+ sleep 15
+ cd ${S}
+ fi
+
+ make install PREFIX=${D}${ZSERVDIR}
+ rm -rf ${D}${ZSERVDIR}/doc
+ dosym ../../share/doc/${PF} ${ZSERVDIR}/doc
+ # copy the init script skeleton to skel directory of our installation
+ skel=${D}${ZSERVDIR}/skel
+ # <radek@gentoo.org> from 2.7.4 release i think that we can use the same
+ # file for every one, and not separate it by PV
+ cp ${FILESDIR}/zope.initd ${skel}/zope.initd
+}
+
+pkg_postinst() {
+ # create the zope user and group for backward compatibility
+ enewgroup ${ZGID} 261
+ usermod -g ${ZGID} ${ZUID} 2>&1 >/dev/null || \
+ enewuser ${ZUID} 261 /bin/false /var/lib/zope ${ZGID}
+
+ einfo "Be warned that you need at least one zope instance to run zope."
+ einfo "Please emerge zope-config for futher instance management."
+}
+
+pkg_prerm() {
+
+ #need to remove this symlink because portage keeps links to
+ #existing targets
+
+ rm ${ZSERVDIR}/bin/python
+}
+
diff --git a/net-zope/zope/zope-2.8.2.ebuild b/net-zope/zope/zope-2.8.2.ebuild
new file mode 100644
index 000000000000..3d0e88f13077
--- /dev/null
+++ b/net-zope/zope/zope-2.8.2.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/zope-2.8.2.ebuild,v 1.1 2005/10/17 22:05:29 radek Exp $
+
+inherit eutils multilib
+
+DESCRIPTION="Zope is a web application platform used for building high-performance, dynamic web sites."
+HOMEPAGE="http://www.zope.org"
+SRC_URI="http://www.zope.org/Products/Zope/${PV}/Zope-${PV}-final.tar.gz"
+LICENSE="ZPL"
+SLOT="${PV}"
+
+KEYWORDS="~x86 ~sparc ~ppc ~alpha ~amd64"
+IUSE="unicode"
+
+RDEPEND="=dev-lang/python-2.3*"
+python='python2.3'
+
+DEPEND="${RDEPEND}
+virtual/libc
+>=sys-apps/sed-4.0.5"
+
+S="${WORKDIR}/Zope-${PV}-final"
+ZUID=zope
+ZGID=zope
+ZS_DIR=${ROOT%/}/usr/$(get_libdir)
+ZSERVDIR=${ZS_DIR}/${P}
+
+# Narrow the scope of ownership/permissions.
+# Security plan:
+# * ZUID is the superuser for all zope instances.
+# * ZGID is for a single instance's administration.
+# * Other' should not have any access to ${ZSERVDIR},
+# because they can work through the Zope web interface.
+# This should protect our code/data better.
+#
+# UPDATE: ${ZSERVDIR} is a lib directory and should be world readable
+# like e.g /usr/lib/python we do not store any user data there,
+# currently removed all custom permission stuff, for ${ZSERVDIR}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+}
+
+src_compile() {
+ ./configure --ignore-largefile --prefix=. --with-python=/usr/bin/python2.3 || die "Failed to configure."
+ emake || die "Failed to compile."
+}
+
+src_install() {
+ dodoc README.txt
+ dodoc doc/*.txt
+ docinto PLATFORMS ; dodoc doc/PLATFORMS/*
+ docinto ZEO ; dodoc doc/ZEO/*
+
+ # Patched StructuredText will accept source text formatted in utf-8 encoding,
+ # apply all formattings and output utf-8 encoded text.
+ # if you want to use this option you need to set your
+ # system python encoding to utf-8 (create the file sitecustomize.py inside
+ # your site-packages, add the following lines
+ # import sys
+ # sys.setdefaultencoding('utf-8')
+ # If this is a problem, let me know right away. --batlogg@gentoo.org
+ # I wondering if we need a USE flag for this and wheter we can set the
+ # sys.encoding automtically
+ # so i defined a use flag
+
+ if use unicode; then
+ einfo "Patching structured text"
+ einfo "make sure you have set the system python encoding to utf-8"
+ einfo "create the file sitecustomize.py inside your site-packages"
+ einfo "import sys"
+ einfo "sys.setdefaultencoding('utf8')"
+ # stx i18n support borked. --batlogg@gentoo.org
+ ewarn "sorry, the Structured Text patch doesn't work yet for zope-2.8."
+ #cd ${S}/lib/python/StructuredText/
+ #epatch ${FILESDIR}/${PV}/i18n-1.0.0.patch
+ sleep 15
+ cd ${S}
+ fi
+
+ make install PREFIX=${D}${ZSERVDIR}
+ rm -rf ${D}${ZSERVDIR}/doc
+ dosym ../../share/doc/${PF} ${ZSERVDIR}/doc
+ # copy the init script skeleton to skel directory of our installation
+ skel=${D}${ZSERVDIR}/skel
+ # <radek@gentoo.org> from 2.7.4 release i think that we can use the same
+ # file for every one, and not separate it by PV
+ cp ${FILESDIR}/zope.initd ${skel}/zope.initd
+}
+
+pkg_postinst() {
+ # create the zope user and group for backward compatibility
+ enewgroup ${ZGID} 261
+ usermod -g ${ZGID} ${ZUID} 2>&1 >/dev/null || \
+ enewuser ${ZUID} 261 -1 /var/$(get_libdir)/zope ${ZGID}
+
+ einfo "Be warned that you need at least one zope instance to run zope."
+ einfo "Please emerge zope-config for futher instance management."
+}
+
+pkg_prerm() {
+
+ #need to remove this symlink because portage keeps links to
+ #existing targets
+
+ rm ${ZSERVDIR}/bin/python
+}
+