pkgsrc/www/py-pcgi/Makefile
recht 4150812b27 add python as category
ok'd a while back at pkgsrcCon by agc and wiz
2004-07-22 09:15:59 +00:00

36 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.11 2004/07/22 09:16:00 recht Exp $
#
DISTNAME= Zope-2.2.2-src
PKGNAME= py-pcgi-2.2.2
PKGREVISION= 1
CATEGORIES= www python
MASTER_SITES= http://www.zope.org/Products/Zope/2.2.2/
EXTRACT_SUFX= .tgz
MAINTAINER= tsarna@NetBSD.org
HOMEPAGE= http://starship.python.net/crew/jbauer/persistcgi/
COMMENT= Persistent CGI system for Zope and other ZPublisher applications
WRKSRC= ${WRKDIR}/${DISTNAME}/pcgi
HAS_CONFIGURE= yes
EXTRACT_ELEMENTS= ${DISTNAME}/pcgi
ALL_TARGET= all
post-build:
(cd ${WRKSRC}; ${PY_PROG} ${PY_LIBDIR}/compileall.py .)
(cd ${WRKSRC}; ${PY_PROG} -O ${PY_LIBDIR}/compileall.py .)
(cd ${WRKSRC}/Util; \
${SED} -e s,/usr/local,${PREFIX}, <pcgifile.py >pcgifile; \
${SED} -e s,/usr/local,${PREFIX}, <killpcgi.py >killpcgi )
do-install:
${INSTALL_SCRIPT_DIR} ${PY_SITEPKG}
${INSTALL_SCRIPT} ${WRKSRC}/pcgi_publisher.py* ${PY_SITEPKG}
${INSTALL_PROGRAM} ${WRKSRC}/pcgi-wrapper ${PREFIX}/libexec
${INSTALL_SCRIPT} ${WRKSRC}/Util/pcgifile ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/Util/killpcgi ${PREFIX}/bin
.include "../../lang/python20/Makefile.inc"
.include "../../mk/bsd.pkg.mk"