Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 42111 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-13 / +40 lines)
Line  Link Here
0
-- /usr/portage/net-zope/zope/zope-2.6.4.ebuild        2004-02-20 20:41:12.000000000 +0100
0
++ /usr/local/portage/net-zope/zope/zope-2.6.4-r2.ebuild       2004-02-27 21:10:39.000000000 +0100
Lines 1-18 Link Here
1
# Copyright 1999-2004 Gentoo Technologies, Inc.
1
# Copyright 1999-2004 Gentoo Technologies, Inc.
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /home/cvsroot/gentoo-x86/net-zope/zope/zope-2.6.4.ebuild,v 1.2 2004/02/17 13:38:21 lanius Exp $
3
# $Header: /home/cvs/gentoo/portage/net-zope/zope/zope-2.6.4-r1.ebuild,v 1.1 2004/02/20 21:49:59 jb Exp $
4
4
5
inherit eutils
5
inherit eutils
6
6
7
S="${WORKDIR}/Zope-${PV}-src"
8
9
DESCRIPTION="Zope is a web application platform used for building high-performance, dynamic web sites."
7
DESCRIPTION="Zope is a web application platform used for building high-performance, dynamic web sites."
10
HOMEPAGE="http://www.zope.org"
8
HOMEPAGE="http://www.zope.org"
9
11
SRC_URI="http://www.zope.org/Products/Zope/${PV}/Zope-${PV}-src.tgz"
10
SRC_URI="http://www.zope.org/Products/Zope/${PV}/Zope-${PV}-src.tgz"
12
LICENSE="ZPL"
11
LICENSE="ZPL"
13
SLOT="${PV}"
12
SLOT="${PV}"
14
13
KEYWORDS="~x86 ~sparc"
15
KEYWORDS="x86 ~sparc"
14
IUSE="utf-8"
16
15
17
# This is for developers that wish to test Zope with virtual/python.
16
# This is for developers that wish to test Zope with virtual/python.
18
# If this is a problem, let me know right away. --kutsuya@gentoo.org
17
# If this is a problem, let me know right away. --kutsuya@gentoo.org
Lines 39-50 Link Here
39
       >=sys-apps/sed-4.0.5
38
       >=sys-apps/sed-4.0.5
40
       >=app-admin/zope-config-0.3"
39
       >=app-admin/zope-config-0.3"
41
40
41
42
S="${WORKDIR}/Zope-${PV}-src"
43
42
ZUID=zope
44
ZUID=zope
43
ZGID=$(echo ${P} |sed -e "s:\.:_:g")
45
ZGID=$(echo ${P} |sed -e "s:\.:_:g")
44
ZS_DIR=${ROOT}/usr/share/zope/
46
ZS_DIR=${ROOT}/usr/share/zope/
45
ZI_DIR=${ROOT}/var/lib/zope/
47
ZI_DIR=${ROOT}/var/lib/zope/
46
ZSERVDIR=${ZS_DIR}/${PF}/
48
ZSERVDIR=${ZS_DIR}/${PF}/
47
ZINSTDIR=${ZI_DIR}/${ZGID}
49
ZINSTDIR=${ZI_DIR}/${ZGID}
50
ZOPEOPTS="\"-u zope\""
48
CONFDIR=${ROOT}/etc/conf.d/
51
CONFDIR=${ROOT}/etc/conf.d/
49
RCNAME=zope.initd
52
RCNAME=zope.initd
50
53
Lines 83-89 Link Here
83
               fi
86
               fi
84
               ewarn "Zope Corp. only recommends using python-2.1.3 "
87
               ewarn "Zope Corp. only recommends using python-2.1.3 "
85
               ewarn "with this version of zope. Emerge at your own risk."
88
               ewarn "with this version of zope. Emerge at your own risk."
86
               ewarn "Python-2.3 is known NOT to work."
87
               sleep 12
89
               sleep 12
88
       fi
90
       fi
89
       enewgroup ${ZGID}
91
       enewgroup ${ZGID}
Lines 100-105 Link Here
100
       docinto doc/PLATFORMS ; dodoc doc/PLATFORMS/*
102
       docinto doc/PLATFORMS ; dodoc doc/PLATFORMS/*
101
       docinto doc/changenotes ; dodoc doc/changenotes/*
103
       docinto doc/changenotes ; dodoc doc/changenotes/*
102
104
105
       # Patched StructuredText will accept source text formatted in utf-8 encoding, 
106
       # apply all formattings and output utf-8 encoded text.
107
       # if you want to use this option you need to set your
108
       # system python encoding to utf-8 (create the file sitecusomize.py inside
109
       # your site-packages, add the following lines
110
       #       import sys
111
       #       sys.setdefaultencoding('utf-8')
112
       # If this is a problem, let me know right away. --batlogg@solution2u.net
113
       # I wondering if we need a USE flag for this and wheter we can set the
114
       # sys.encoding automtically
115
       # so i defined a use flag utf-8
116
117
       if use utf-8; then
118
       einfo "Patching structured text"
119
               einfo "make sure you have set the system pythong encoding to utf-8"
120
               einfo "create the file sitecusomize.py inside your site-packages"
121
               einfo "import sys"
122
               einfo "sys.setdefaultencoding('utf-8')"
123
               cd ${S}/lib/python/StructuredText/
124
       patch -p0 < ${FILESDIR}/stx_i18n-1.0.0.patch
125
           cd ${S}
126
       fi
127
103
       # using '/etc/init.d/zope'
128
       # using '/etc/init.d/zope'
104
       rm -Rf start stop LICENSE.txt README.txt doc/
129
       rm -Rf start stop LICENSE.txt README.txt doc/
105
130
Lines 112-119 Link Here
112
137
113
       # Add conf.d script.
138
       # Add conf.d script.
114
       dodir /etc/conf.d
139
       dodir /etc/conf.d
115
       cp ${FILESDIR}/2.6.1/zope.envd .templates/zope.confd
140
       cp ${FILESDIR}/${PV}/zope.confd .templates/zope.confd
116
117
       # Fill in environmental variables
141
       # Fill in environmental variables
118
       sed -i \
142
       sed -i \
119
           -e "/ZOPE_OPTS=/ c\\ZOPE_OPTS=${ZOPEOPTS}\\ " \
143
           -e "/ZOPE_OPTS=/ c\\ZOPE_OPTS=${ZOPEOPTS}\\ " \
Lines 121-130 Link Here
121
               -e "/SOFTWARE_HOME=/ c\\SOFTWARE_HOME=${ZSERVDIR}/lib/python\\ " \
145
               -e "/SOFTWARE_HOME=/ c\\SOFTWARE_HOME=${ZSERVDIR}/lib/python\\ " \
122
               .templates/zope.confd
146
               .templates/zope.confd
123
147
124
       # Add rc-script.
148
       # Add conf.d script.
125
       #!! TODO: fill in $python in zope-r2.initd
149
       dodir /etc/init.d
126
       sed -e "/python=/ c\\python=\"${python}\"\\ " ${FILESDIR}/2.6.1/${RCNAME} \
150
       cp ${FILESDIR}/${PV}/zope.initd .templates/zope.initd
127
               > .templates/zope.initd
151
       # Fill in rc-script.
152
       sed -i \
153
           -e "/python=/ c\\python=\"${python}\"\\ " \
154
               .templates/zope.initd
128
155
129
       # Copy the remaining contents of ${S} into the ${D}.
156
       # Copy the remaining contents of ${S} into the ${D}.
130
       dodir ${ZSERVDIR}
157
       dodir ${ZSERVDIR}

Return to bug 42111