2003-06-21 03:49:24 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.17 2003/06/21 07:49:24 pvalchev Exp $
|
2001-08-05 16:44:41 -04:00
|
|
|
|
|
|
|
COMMENT= "object-oriented web application server"
|
|
|
|
|
2003-05-14 17:35:52 -04:00
|
|
|
VERSION= 2.6.1
|
|
|
|
PORT_VERSION= ${VERSION}
|
2002-03-25 21:50:23 -05:00
|
|
|
|
2001-08-05 16:44:41 -04:00
|
|
|
DISTNAME= Zope-${VERSION}-src
|
2002-03-25 21:50:23 -05:00
|
|
|
PKGNAME= zope-${PORT_VERSION}
|
2001-08-05 16:44:41 -04:00
|
|
|
CATEGORIES= www
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.zope.org/
|
|
|
|
|
2002-04-25 11:38:54 -04:00
|
|
|
# Zope Public License (ZPL) 2.0 <http://www.zope.org/Resources/ZPL>
|
2001-08-05 16:44:41 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2003-06-21 03:49:24 -04:00
|
|
|
MAINTAINER= Maurice Nonnekes <maurice@amaze.nl>
|
|
|
|
|
2001-08-05 16:44:41 -04:00
|
|
|
MASTER_SITES= http://www.zope.org/Products/Zope/${VERSION}/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2002-09-29 02:02:18 -04:00
|
|
|
DIST_SUBDIR= zope
|
|
|
|
|
2003-05-14 17:35:52 -04:00
|
|
|
#MASTER_SITES0= http://www.zope.org/Members/zigg/UnixSecurityPatch/
|
|
|
|
#PATCHFILES= Zope-${VERSION}-unix-security.patch:0
|
|
|
|
#PATCH_DIST_STRIP=-p1
|
2002-03-25 21:50:23 -05:00
|
|
|
|
2003-05-14 17:35:52 -04:00
|
|
|
#HOTFIX_DATE1= 2002-06-14
|
|
|
|
#MASTER_SITES1= http://www.zope.org/Products/Zope/Hotfix_${HOTFIX_DATE1}/
|
2002-09-29 02:02:18 -04:00
|
|
|
|
2003-05-14 17:35:52 -04:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
2002-09-29 02:02:18 -04:00
|
|
|
|
2003-05-14 17:35:52 -04:00
|
|
|
BUILD_DEPENDS= :python->=2.1.3,<2.2:lang/python/2.1
|
|
|
|
RUN_DEPENDS= :python->=2.1.3,<2.2:lang/python/2.1
|
2001-08-05 16:44:41 -04:00
|
|
|
|
2001-09-25 20:55:26 -04:00
|
|
|
# Note that the configure script is really just for pcgi, but it's
|
|
|
|
# the only one in the package.
|
2001-08-05 16:44:41 -04:00
|
|
|
|
2001-10-09 18:58:50 -04:00
|
|
|
CONFIGURE_STYLE=gnu
|
2001-08-05 16:44:41 -04:00
|
|
|
|
2001-10-09 18:58:50 -04:00
|
|
|
WRKBUILD= ${WRKSRC}/pcgi
|
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKBUILD}
|
2001-08-05 16:44:41 -04:00
|
|
|
|
|
|
|
ZOPEHOME= ${PREFIX}/lib/zope
|
|
|
|
PRODUCTSDIR= ${ZOPEHOME}/lib/python/Products
|
|
|
|
|
|
|
|
do-build:
|
2001-11-01 22:35:11 -05:00
|
|
|
cd ${WRKSRC} && \
|
2002-04-25 14:47:57 -04:00
|
|
|
ZDIR=${ZOPEHOME} ${LOCALBASE}/bin/python2.1 w_pcgi.py && \
|
|
|
|
ZDIR=${ZOPEHOME} ${LOCALBASE}/bin/python2.1 \
|
|
|
|
-O inst/compilezpy.py
|
2001-08-05 16:44:41 -04:00
|
|
|
sed -e "s%@@PREFIX@@%${PREFIX}%g" \
|
|
|
|
-e "s%@@LOCALBASE@@%${LOCALBASE}%g" \
|
|
|
|
< ${FILESDIR}/zope-instance > ${WRKSRC}/zope-instance
|
|
|
|
|
|
|
|
# All this should give us what closely resembles a zope.org binary
|
2001-09-25 20:55:26 -04:00
|
|
|
# installation and allow us to rely as much as possible on make
|
|
|
|
# plist to update to newer versions.
|
2001-08-05 16:44:41 -04:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/zope-instance ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM_DIR} ${ZOPEHOME}
|
|
|
|
cp -Rp ${WRKSRC}/* ${ZOPEHOME}
|
2003-05-14 17:35:52 -04:00
|
|
|
chown -R ${BINOWN}:${BINGRP} ${ZOPEHOME}
|
|
|
|
cd ${ZOPEHOME}/lib && ln -fs ../../python2.1
|
2001-08-05 16:44:41 -04:00
|
|
|
rm -r ${ZOPEHOME}/*.txt ${ZOPEHOME}/doc ${ZOPEHOME}/lib/Components \
|
|
|
|
${ZOPEHOME}/pcgi/Win32
|
|
|
|
find ${ZOPEHOME} -name \*.orig -or -name \*.o -or -name .cvsignore \
|
2001-09-25 20:55:26 -04:00
|
|
|
-or -name sedscript -or -name \*.old | xargs rm
|
2001-08-05 16:44:41 -04:00
|
|
|
find ${ZOPEHOME}/lib/python -name config.c -or -name Makefile \
|
2001-09-25 20:55:26 -04:00
|
|
|
-or -name Makefile.pre -or -name Makefile.pre.in | xargs rm
|
2003-05-14 17:35:52 -04:00
|
|
|
rm ${ZOPEHOME}/pcgi/Makefile \
|
2001-08-05 16:44:41 -04:00
|
|
|
${ZOPEHOME}/pcgi/config.log ${ZOPEHOME}/pcgi/config.status \
|
|
|
|
${ZOPEHOME}/pcgi/config.cache ${ZOPEHOME}/zope-instance \
|
|
|
|
${ZOPEHOME}/w*_pcgi.py*
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/zope/changenotes
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.txt ${WRKSRC}/doc/*.txt \
|
|
|
|
${PREFIX}/share/doc/zope
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/changenotes/* \
|
|
|
|
${PREFIX}/share/doc/zope/changenotes
|
2002-03-25 21:50:23 -05:00
|
|
|
echo "Zope ${VERSION} (OpenBSD package zope-${PORT_VERSION})" \
|
|
|
|
> ${PREFIX}/lib/zope/lib/python/version.txt
|
2003-05-14 17:35:52 -04:00
|
|
|
# ${INSTALL_DATA_DIR} ${PRODUCTSDIR}/Hotfix_${HOTFIX_DATE1}
|
|
|
|
# ${INSTALL_DATA} \
|
|
|
|
# ${WRKDIR}/lib/python/Products/Hotfix_${HOTFIX_DATE1}/* \
|
|
|
|
# ${PRODUCTSDIR}/Hotfix_${HOTFIX_DATE1}
|
2001-11-01 22:35:11 -05:00
|
|
|
|
|
|
|
do-regress:
|
2002-04-25 14:47:57 -04:00
|
|
|
cd ${WRKSRC} && ${LOCALBASE}/bin/python2.1 utilities/testrunner.py -a
|
2001-08-05 16:44:41 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|