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

(-)/usr/portage/net-zope/zope/zope-2.6.4.ebuild (-12 / +39 lines)
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.3 2004/03/05 10:29:14 dholm 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
inherit eutils
4
inherit eutils
5
S="${WORKDIR}/Zope-${PV}-src"
6
7
DESCRIPTION="Zope is a web application platform used for building high-performance, dynamic web sites."
5
DESCRIPTION="Zope is a web application platform used for building high-performance, dynamic web sites."
8
HOMEPAGE="http://www.zope.org"
6
HOMEPAGE="http://www.zope.org"
7
9
SRC_URI="http://www.zope.org/Products/Zope/${PV}/Zope-${PV}-src.tgz"
8
SRC_URI="http://www.zope.org/Products/Zope/${PV}/Zope-${PV}-src.tgz"
10
LICENSE="ZPL"
9
LICENSE="ZPL"
11
SLOT="${PV}"
10
SLOT="${PV}"
12
11
KEYWORDS="~x86 ~sparc"
13
KEYWORDS="x86 ~sparc ~ppc"
12
IUSE="utf-8"
14
# This is for developers that wish to test Zope with virtual/python.
13
# This is for developers that wish to test Zope with virtual/python.
15
# If this is a problem, let me know right away. --kutsuya@gentoo.org
14
# 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"
40
41
S="${WORKDIR}/Zope-${PV}-src"
42
41
ZUID=zope
43
ZUID=zope
42
ZGID=$(echo ${P} |sed -e "s:\.:_:g")
44
ZGID=$(echo ${P} |sed -e "s:\.:_:g")
43
ZS_DIR=${ROOT}/usr/share/zope/
45
ZS_DIR=${ROOT}/usr/share/zope/
44
ZI_DIR=${ROOT}/var/lib/zope/
46
ZI_DIR=${ROOT}/var/lib/zope/
45
ZSERVDIR=${ZS_DIR}/${PF}/
47
ZSERVDIR=${ZS_DIR}/${PF}/
46
ZINSTDIR=${ZI_DIR}/${ZGID}
48
ZINSTDIR=${ZI_DIR}/${ZGID}
49
ZOPEOPTS="\"-u zope\""
47
CONFDIR=${ROOT}/etc/conf.d/
50
CONFDIR=${ROOT}/etc/conf.d/
48
RCNAME=zope.initd
51
RCNAME=zope.initd
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/*
104
	# Patched StructuredText will accept source text formatted in utf-8 encoding, 
105
	# apply all formattings and output utf-8 encoded text.
106
	# if you want to use this option you need to set your
107
	# system python encoding to utf-8 (create the file sitecusomize.py inside
108
	# your site-packages, add the following lines
109
	# 	import sys
110
	# 	sys.setdefaultencoding('utf-8')
111
	# If this is a problem, let me know right away. --batlogg@solution2u.net
112
	# I wondering if we need a USE flag for this and wheter we can set the
113
	# sys.encoding automtically
114
	# so i defined a use flag utf-8
115
116
	if use utf-8; then
117
    	einfo "Patching structured text"
118
		einfo "make sure you have set the system pythong encoding to utf-8"
119
		einfo "create the file sitecusomize.py inside your site-packages"
120
	 	einfo "import sys"
121
		einfo "sys.setdefaultencoding('utf-8')"
122
		cd ${S}/lib/python/StructuredText/
123
    	patch -p0 < ${FILESDIR}/stx_i18n-1.0.0.patch
124
	    cd ${S}
125
	fi
126
102
	# using '/etc/init.d/zope'
127
	# using '/etc/init.d/zope'
103
	rm -Rf start stop LICENSE.txt README.txt doc/
128
	rm -Rf start stop LICENSE.txt README.txt doc/
Lines 112-119 Link Here
112
	# Add conf.d script.
137
	# Add conf.d script.
113
	dodir /etc/conf.d
138
	dodir /etc/conf.d
114
	cp ${FILESDIR}/2.6.1/zope.envd .templates/zope.confd
139
	cp ${FILESDIR}/${PV}/zope.confd .templates/zope.confd
115
116
	# Fill in environmental variables
140
	# Fill in environmental variables
117
	sed -i \
141
	sed -i \
118
	    -e "/ZOPE_OPTS=/ c\\ZOPE_OPTS=${ZOPEOPTS}\\ " \
142
	    -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
	# Add rc-script.
147
	# Add conf.d script.
124
	#!! TODO: fill in $python in zope-r2.initd
148
	dodir /etc/init.d
125
	sed -e "/python=/ c\\python=\"${python}\"\\ " ${FILESDIR}/2.6.1/${RCNAME} \
149
	cp ${FILESDIR}/${PV}/zope.initd .templates/zope.initd
126
		> .templates/zope.initd
150
	# Fill in rc-script.
151
	sed -i \
152
	    -e "/python=/ c\\python=\"${python}\"\\ " \
153
		.templates/zope.initd
127
	# Copy the remaining contents of ${S} into the ${D}.
154
	# Copy the remaining contents of ${S} into the ${D}.
128
	dodir ${ZSERVDIR}
155
	dodir ${ZSERVDIR}

Return to bug 42111