blob: 092899642ab9301002ae4e3281b02c4fc3168251 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# $NetBSD: Makefile,v 1.14 2006/06/25 09:46:53 rillig Exp $
#
DISTNAME= Zope-2.2.2-src
PKGNAME= py-pcgi-2.2.2
PKGREVISION= 2
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
BUILD_TARGET= all
PYTHON_PATCH_SCRIPTS= Util/*.py
INSTALLATION_DIRS= bin libexec
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 "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"
|