openbsd-ports/www/zope/Makefile

73 lines
2.3 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.2 2001/09/26 00:55:26 matt Exp $
2001-08-05 16:44:41 -04:00
COMMENT= "object-oriented web application server"
VERSION= 2.4.1
2001-08-05 16:44:41 -04:00
DISTNAME= Zope-${VERSION}-src
PKGNAME= zope-${VERSION}
2001-08-05 16:44:41 -04:00
CATEGORIES= www
NEED_VERSION= 1.419
HOMEPAGE= http://www.zope.org/
MAINTAINER= Matt Behrens <matt@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://www.zope.org/Products/Zope/${VERSION}/
EXTRACT_SUFX= .tgz
EXTRACT_CASES= *.tgz) gtar zxf ${FULLDISTDIR}/$$archive ;;
2001-08-05 16:44:41 -04:00
BUILD_DEPENDS= python2.1:python-2.1*-threads:lang/python \
gtar::archivers/gtar
2001-08-05 16:44:41 -04:00
RUN_DEPENDS= python2.1:python-2.1*-threads:lang/python
# 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
CONFIGURE_STYLE=autoconf
WRKBUILD= ${WRKSRC}/pcgi
AUTOCONF_DIR= ${WRKBUILD}
ZOPEHOME= ${PREFIX}/lib/zope
PRODUCTSDIR= ${ZOPEHOME}/lib/python/Products
do-build:
cd ${WRKSRC} && ZDIR=${ZOPEHOME} python w_pcgi.py
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
# 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}
chown -R 0:0 ${ZOPEHOME}
cd ${ZOPEHOME}/lib && ln -s ../../python2.1
rm -r ${ZOPEHOME}/*.txt ${ZOPEHOME}/doc ${ZOPEHOME}/lib/Components \
${ZOPEHOME}/pcgi/Win32
find ${ZOPEHOME} -name \*.orig -or -name \*.o -or -name .cvsignore \
-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 \
-or -name Makefile.pre -or -name Makefile.pre.in | xargs rm
2001-08-05 16:44:41 -04:00
rm ${ZOPEHOME}/lib/python/Setup ${ZOPEHOME}/pcgi/Makefile \
${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
.include <bsd.port.mk>