Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jan 2002 20:50:26 +0900 (KST)
From:      Hye-Shik Chang <perky@fallin.lv>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        "HAYASHI Yasushi" <yasi@yasi.to>, "Neil Blakey-Milner" <nbm@freebsd.org>
Subject:   ports/33836: Fix port : www/zope (make compatible with Python 2.2)
Message-ID:  <200201131150.g0DBoQ458216@akaraka.yonsei.ac.kr>

next in thread | raw e-mail | index | archive | help

>Number:         33836
>Category:       ports
>Synopsis:       Fix port : www/zope (make compatible with Python 2.2)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 13 04:00:03 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Hye-Shik Chang
>Release:        FreeBSD 4.5-PRERELEASE i386
>Organization:
Yonsei University
>Environment:
System: FreeBSD akaraka.yonsei.ac.kr 4.5-PRERELEASE FreeBSD 4.5-PRERELEASE #0: Mon Dec 24 06:07:50 KST 2001 root@akaraka.yonsei.ac.kr:/usr/src/sys/compile/RYOKO i386

>Description:
- temporary fix for compatibility to python 2.2

(Makefile.pre.in was set obsolete by BDFL of Python)

>How-To-Repeat:

>Fix:

diff -ruN zope.orig/Makefile zope/Makefile
--- zope.orig/Makefile	Sat Oct 20 06:09:35 2001
+++ zope/Makefile	Sun Jan 13 20:47:36 2002
@@ -7,7 +7,7 @@
 
 PORTNAME=	zope
 PORTVERSION=	2.4.2
-PORTREVISION=	0
+PORTREVISION=	1
 CATEGORIES=	www python zope
 MASTER_SITES=	http://www.zope.org/Products/Zope/${PORTVERSION}/
 DISTNAME=	Zope-${PORTVERSION}-src
@@ -49,6 +49,19 @@
 		VERSION=${PORTVERSION} \
 		WEBBASEDIR=${WEBBASEDIR}
 
+.include <bsd.port.pre.mk>
+
+MF_TEMPLATE=	${ZOPEBASEDIR}/lib/python/Products/PluginIndexes/TextIndex/Splitter/ZopeSplitter/Makefile.pre.in
+post-patch:
+.if ${PYTHON_REL} >= 220
+# temporary trick until next release
+	@${SED} -e 's,.*config\(/Makefile.pre.in\).*,    return "${MF_TEMPLATE}",' \
+		-e 's,.*sys.version.*,,' \
+		-e 's,\(cp %s \.\),if [ ! -f ./Makefile.pre.in ]; then (\1); fi,' \
+		${WRKSRC}/inst/do.py > ${WRKSRC}/inst/do.py.tmp \
+		&& ${MV} -f ${WRKSRC}/inst/do.py.tmp ${WRKSRC}/inst/do.py
+.endif
+
 # I decided to consider the whole souce tree to be part of the package
 # since in there, Zope can live on its own. I can use Zope's own building
 # mechanism.
@@ -121,4 +134,4 @@
 	@${ECHO} "===>   For Apache changes see ${APACHE_CONFDIR}/apache.conf.Zope-Changes."
 	@${ECHO} "===>   Zope.cgi and pcgi-wrapper live in ${CGIBINDIR}."
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201131150.g0DBoQ458216>