openbsd-ports/www/zope-cmf/Makefile

55 lines
1.4 KiB
Makefile
Raw Normal View History

2003-05-25 18:02:16 -04:00
# $OpenBSD: Makefile,v 1.5 2003/05/25 22:02:16 naddy Exp $
2002-03-11 21:55:18 -05:00
COMMENT= "Zope content management framework"
VERSION= 1.3.1
2002-03-11 21:55:18 -05:00
PKGNAME= zope-cmf-${VERSION}
CATEGORIES= www
HOMEPAGE= http://cmf.zope.org/
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}/download/CMF-${VERSION}/
DISTNAME= CMF-${VERSION}
# Zope Public License (ZPL) 2.0 <http://www.zope.org/Resources/ZPL>
2002-03-11 21:55:18 -05:00
BUILD_DEPENDS= :python-2.1*:lang/python/2.1 \
:zope->=2.4.0:www/zope
RUN_DEPENDS= :python-2.1*:lang/python/2.1 \
:zope->=2.4.0:www/zope
NO_REGRESS= Yes
ZOPEHOME= ${PREFIX}/lib/zope
PRODUCTSDIR= ${ZOPEHOME}/lib/python/Products
pre-build:
sed -e "s/'tests'/'tests' and name != 'skins'/" \
< ${ZOPEHOME}/inst/compilezpy.py \
> ${WRKDIR}/compilezpy.py
do-build:
cd ${WRKSRC} && python ${WRKDIR}/compilezpy.py
cd ${WRKSRC} && python -O ${WRKDIR}/compilezpy.py
do-install:
${INSTALL_PROGRAM_DIR} ${PRODUCTSDIR}
2003-05-25 18:02:16 -04:00
for p in Calendar Core Default Topic; do \
2002-03-11 21:55:18 -05:00
cp -R ${WRKSRC}/CMF$$p ${PRODUCTSDIR}; \
done
2003-05-25 18:02:16 -04:00
chown -R ${LIBOWN}:${LIBGRP} ${PRODUCTSDIR}
2002-03-11 21:55:18 -05:00
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/zope-cmf
2003-05-25 18:02:16 -04:00
${INSTALL_DATA} ${WRKSRC}/docs/*.stx ${WRKSRC}/docs/*.txt \
${PREFIX}/share/doc/zope-cmf
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/zope-cmf/imgs
${INSTALL_DATA} ${WRKSRC}/docs/imgs/* \
${PREFIX}/share/doc/zope-cmf/imgs
2002-03-11 21:55:18 -05:00
.include <bsd.port.mk>