diff options
author | Radoslaw Stachowiak <radek@gentoo.org> | 2005-01-14 21:16:20 +0000 |
---|---|---|
committer | Radoslaw Stachowiak <radek@gentoo.org> | 2005-01-14 21:16:20 +0000 |
commit | 57515036bc7f6472aff850a290fd43a415d1949b (patch) | |
tree | 5fca3551edaf6871e039ca9a846fae0038cbea6e /net-zope | |
parent | Stable on ppc64 (diff) | |
download | historical-57515036bc7f6472aff850a290fd43a415d1949b.tar.gz historical-57515036bc7f6472aff850a290fd43a415d1949b.tar.bz2 historical-57515036bc7f6472aff850a290fd43a415d1949b.zip |
new version.
Package-Manager: portage-2.0.51-r12
Diffstat (limited to 'net-zope')
-rw-r--r-- | net-zope/zope/ChangeLog | 12 | ||||
-rw-r--r-- | net-zope/zope/Manifest | 24 | ||||
-rw-r--r-- | net-zope/zope/files/2.7.4/i18n-1.0.0.patch | 176 | ||||
-rw-r--r-- | net-zope/zope/files/digest-zope-2.7.4 | 1 | ||||
-rw-r--r-- | net-zope/zope/files/zope.initd | 54 | ||||
-rw-r--r-- | net-zope/zope/zope-2.6.4-r1.ebuild | 4 | ||||
-rw-r--r-- | net-zope/zope/zope-2.7.1.ebuild | 4 | ||||
-rw-r--r-- | net-zope/zope/zope-2.7.2-r2.ebuild | 4 | ||||
-rw-r--r-- | net-zope/zope/zope-2.7.3.ebuild | 4 | ||||
-rw-r--r-- | net-zope/zope/zope-2.7.4.ebuild | 106 |
10 files changed, 368 insertions, 21 deletions
diff --git a/net-zope/zope/ChangeLog b/net-zope/zope/ChangeLog index 8c3901346e7a..2bec1f2ea01a 100644 --- a/net-zope/zope/ChangeLog +++ b/net-zope/zope/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-zope/zope -# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v 1.58 2004/12/29 21:18:41 ciaranm Exp $ +# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/ChangeLog,v 1.59 2005/01/14 21:16:20 radek Exp $ + +*zope-2.7.4 (14 Jan 2005) + + 14 Jan 2005; Radoslaw Stachowiak <radek@gentoo.org> +files/zope.initd, + +files/2.7.4/i18n-1.0.0.patch, +zope-2.7.4.ebuild: + New version 2.7.4. Changed i18n patch, and moved initd to global FILES. 29 Dec 2004; Ciaran McCreesh <ciaranm@gentoo.org> : Change encoding to UTF-8 for GLEP 31 compliance @@ -120,7 +126,7 @@ zope-2.5.1.ebuild: QA - fix use invocation - 24 May 2004; Bryan Østergaard <kloeri@gentoo.org> zope-2.6.4-r1.ebuild: + 24 May 2004; Bryan Ăstergaard <kloeri@gentoo.org> zope-2.6.4-r1.ebuild: Keyworded ~alpha, requested in bug #51550. 11 Apr 2004; Jason Wever <weeve@gentoo.org> zope-2.6.4-r1.ebuild: diff --git a/net-zope/zope/Manifest b/net-zope/zope/Manifest index c5f0dce87b92..5104ad2e4d0a 100644 --- a/net-zope/zope/Manifest +++ b/net-zope/zope/Manifest @@ -1,19 +1,23 @@ -MD5 c81621f111c337576281be10964f0602 zope-2.7.3.ebuild 3164 -MD5 8204eaee8be87f1c430c61819f6ee525 ChangeLog 10066 -MD5 6649fe5786ca04047e024eff6ea386ad zope-2.7.1.ebuild 3816 -MD5 ff3f3ff791f9c791bb13d1276ce98de3 zope-2.6.4-r1.ebuild 5622 -MD5 06308d0d91be80561036160135ea2eea zope-2.7.2-r2.ebuild 3219 +MD5 dd3d098bc6bb046ce251dd142d62e9b7 zope-2.7.1.ebuild 3816 +MD5 071e0cbd0de1fce59351895a4fc924cd zope-2.7.3.ebuild 3164 +MD5 f27b4a8235ae5a33c8755ea5e64836c5 zope-2.6.4-r1.ebuild 5622 +MD5 e737edd7973c8d51a18422ac47602d5a zope-2.7.4.ebuild 3289 +MD5 a8ec5c92e83f3602a50deec4bb4f6363 ChangeLog 10294 MD5 7890d88c5c6d189fbe6b187a3ebb6532 metadata.xml 161 -MD5 037cf91a5b4d60efe166f90210c837ed files/i18n-1.0.0.patch 8080 -MD5 5bed447c71046c9266eb31ec4781b314 files/digest-zope-2.7.3 62 +MD5 4addc802a313920f347129ebe3e75670 zope-2.7.2-r2.ebuild 3219 +MD5 ddddbf81a9803fef7474cb22df00a924 files/digest-zope-2.6.4-r1 64 MD5 c8b31c146de4f24ffcb5442630034d50 files/digest-zope-2.7.2-r2 62 MD5 ae93e53addb8b829a0c097a3b3d9ddf4 files/digest-zope-2.7.1 60 -MD5 ddddbf81a9803fef7474cb22df00a924 files/digest-zope-2.6.4-r1 64 +MD5 5bed447c71046c9266eb31ec4781b314 files/digest-zope-2.7.3 62 +MD5 6d06eaf6855a28d450c36882ed56e703 files/digest-zope-2.7.4 62 +MD5 037cf91a5b4d60efe166f90210c837ed files/i18n-1.0.0.patch 8080 +MD5 28b31acf9b00b4388850af2acd90b2e3 files/zope.initd 1232 MD5 a18ddd3f2cdcb815cf86f4b9c4bdd6fe files/2.6.4/zope.confd 950 MD5 4d278d26bb7be7693f7213861a9d3805 files/2.6.4/zope.initd 3791 MD5 a18ddd3f2cdcb815cf86f4b9c4bdd6fe files/2.7.1/zope.confd 950 -MD5 68ed65ed913618858b8c3e298fbdf5a7 files/2.7.1/zdctl.patch 570 MD5 8eed6ba044039a495f48e42555ee0893 files/2.7.1/zope.initd 1030 -MD5 bce3b7d98963ff6f3e3d53557f3b4912 files/2.7.2/gid.patch 460 +MD5 68ed65ed913618858b8c3e298fbdf5a7 files/2.7.1/zdctl.patch 570 MD5 e99b9fc903db808c1bbb5aa8b9d0b44f files/2.7.2/zope.initd 1169 +MD5 bce3b7d98963ff6f3e3d53557f3b4912 files/2.7.2/gid.patch 460 MD5 998ccd16d3ca461a8d30d2f9a7d46d24 files/2.7.3/zope.initd 1240 +MD5 c97d6dc27b456ae0fbfdf8ee5627ac1b files/2.7.4/i18n-1.0.0.patch 7630 diff --git a/net-zope/zope/files/2.7.4/i18n-1.0.0.patch b/net-zope/zope/files/2.7.4/i18n-1.0.0.patch new file mode 100644 index 000000000000..169d755ca78a --- /dev/null +++ b/net-zope/zope/files/2.7.4/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.4 b/net-zope/zope/files/digest-zope-2.7.4 new file mode 100644 index 000000000000..d4e8e1d058b4 --- /dev/null +++ b/net-zope/zope/files/digest-zope-2.7.4 @@ -0,0 +1 @@ +MD5 97c310f1de4609956c176588b08b25c5 Zope-2.7.4-0.tgz 2932971 diff --git a/net-zope/zope/files/zope.initd b/net-zope/zope/files/zope.initd new file mode 100644 index 000000000000..191ef17c6c8e --- /dev/null +++ b/net-zope/zope/files/zope.initd @@ -0,0 +1,54 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/files/zope.initd,v 1.1 2005/01/14 21:16:20 radek Exp $ + +opts="start stop reload kill quit status help" + +depend() { + need net +} + +start() { + ebegin "Starting Zope in INSTANCE_HOME" + INSTANCE_HOME/bin/zopectl start + eend $? +} + +stop() { + ebegin "Stopping Zope in INSTANCE_HOME" + INSTANCE_HOME/bin/zopectl stop + eend $? +} + +reload() { + # note: reload calls zope restart, runscript restart stops and starts + ebegin "Restarting Zope in INSTANCE_HOME" + INSTANCE_HOME/bin/zopectl restart + eend $? +} + +kill() { + ebegin "Killing Zope in INSTANCE_HOME" + INSTANCE_HOME/bin/zopectl kill + eend $? +} + +quit() { + ebegin "Quitting Zope Daemon Manager INSTANCE_HOME" + INSTANCE_HOME/bin/zopectl quit + eend $? +} + +status() { + ebegin "Status of Zope in INSTANCE_HOME" + INSTANCE_HOME/bin/zopectl status + eend $? +} + +help() { + ebegin "Help for Zope Daemon Manager in INSTANCE_HOME" + INSTANCE_HOME/bin/zopectl help + eend $? +} + diff --git a/net-zope/zope/zope-2.6.4-r1.ebuild b/net-zope/zope/zope-2.6.4-r1.ebuild index 0640e637b152..cedd343ccf5d 100644 --- a/net-zope/zope/zope-2.6.4-r1.ebuild +++ b/net-zope/zope/zope-2.6.4-r1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2004 Gentoo Foundation +# 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.6.4-r1.ebuild,v 1.13 2004/10/02 19:20:30 radek Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/zope-2.6.4-r1.ebuild,v 1.14 2005/01/14 21:16:20 radek Exp $ inherit eutils diff --git a/net-zope/zope/zope-2.7.1.ebuild b/net-zope/zope/zope-2.7.1.ebuild index 1bf3e09ff5f7..57fe72befe9a 100644 --- a/net-zope/zope/zope-2.7.1.ebuild +++ b/net-zope/zope/zope-2.7.1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2004 Gentoo Foundation +# 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.1.ebuild,v 1.4 2004/10/02 19:20:30 radek Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/zope-2.7.1.ebuild,v 1.5 2005/01/14 21:16:20 radek Exp $ inherit eutils diff --git a/net-zope/zope/zope-2.7.2-r2.ebuild b/net-zope/zope/zope-2.7.2-r2.ebuild index 8f2e4a9070d5..4d74b31f8ce7 100644 --- a/net-zope/zope/zope-2.7.2-r2.ebuild +++ b/net-zope/zope/zope-2.7.2-r2.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2004 Gentoo Foundation +# 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.2-r2.ebuild,v 1.6 2004/10/03 16:45:17 weeve Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/zope-2.7.2-r2.ebuild,v 1.7 2005/01/14 21:16:20 radek Exp $ inherit eutils diff --git a/net-zope/zope/zope-2.7.3.ebuild b/net-zope/zope/zope-2.7.3.ebuild index 1286ccb40d99..cacae9b2fbbf 100644 --- a/net-zope/zope/zope-2.7.3.ebuild +++ b/net-zope/zope/zope-2.7.3.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2004 Gentoo Foundation +# 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.3.ebuild,v 1.4 2004/11/07 23:56:20 weeve Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/zope-2.7.3.ebuild,v 1.5 2005/01/14 21:16:20 radek Exp $ inherit eutils diff --git a/net-zope/zope/zope-2.7.4.ebuild b/net-zope/zope/zope-2.7.4.ebuild new file mode 100644 index 000000000000..8eb37cb3d8fc --- /dev/null +++ b/net-zope/zope/zope-2.7.4.ebuild @@ -0,0 +1,106 @@ +# 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.4.ebuild,v 1.1 2005/01/14 21:16:20 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}-0.tgz" +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}-0" +ZUID=zope +ZGID=zope +ZS_DIR=${ROOT%/}/usr/lib +ZSERVDIR=${ZS_DIR}/${PN}-${PV} + +# 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=. || 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 + 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 +} + |