summaryrefslogtreecommitdiff
path: root/www/py-zpublisher/Makefile
diff options
context:
space:
mode:
authortsarna <tsarna@pkgsrc.org>2000-07-28 17:51:15 +0000
committertsarna <tsarna@pkgsrc.org>2000-07-28 17:51:15 +0000
commita51dc8fa1f675e6f16fa3ed4b9da803059cb5a5b (patch)
treedd65def56b784e1d7b752f6cb9bd2cbc53982297 /www/py-zpublisher/Makefile
parentf091085dc6caa164a828ab12e1918bee6932852c (diff)
downloadpkgsrc-a51dc8fa1f675e6f16fa3ed4b9da803059cb5a5b.tar.gz
Initial import of pkg for ZPublisher from Zope 2.2.0. ZPublisher is the
Zope Web-based ORB. It published Python objects through the web. It is one of the core pieces of Zope, but can also be used separately.
Diffstat (limited to 'www/py-zpublisher/Makefile')
-rw-r--r--www/py-zpublisher/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/www/py-zpublisher/Makefile b/www/py-zpublisher/Makefile
new file mode 100644
index 00000000000..d875ac24146
--- /dev/null
+++ b/www/py-zpublisher/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/07/28 17:51:15 tsarna Exp $
+#
+
+DISTNAME= Zope-2.2.0-src
+PKGNAME= py-zpublisher-2.2.0
+CATEGORIES= www
+MASTER_SITES= http://www.zope.org/Products/Zope/2.2.0/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= tsarna@netbsd.org
+HOMEPAGE= http://classic.zope.org:8080/Documentation/Reference/ORB
+
+DEPENDS+= py-extclass>=2.2.0:../../lang/python
+
+PLIST_SRC= ${WRKDIR}/.PLIST_SRC
+SITE_PKG= lib/python1.5/site-packages
+PYTHON_LIBDIR= ${LOCALBASE}/${SITE_PKG}
+EXTRACT_ELEMENTS= ${DISTNAME}/lib/python/ZPublisher
+
+WRKSRC= ${WRKDIR}/${DISTNAME}/lib/python
+
+do-build:
+ (cd ${WRKSRC}/..; ${LOCALBASE}/bin/python ${PREFIX}/lib/python1.5/compileall.py .)
+ (cd ${WRKSRC}/..; ${LOCALBASE}/bin/python -O ${PREFIX}/lib/python1.5/compileall.py .)
+
+do-install:
+ ${INSTALL_SCRIPT_DIR} ${PYTHON_LIBDIR}
+ ${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
+ (cd ${WRKSRC}; ${PAX} -r -w -v -p e ZPublisher ${PYTHON_LIBDIR})
+ ${CHMOD} 755 ${PYTHON_LIBDIR}/ZPublisher/Test.py
+ (cd ${PREFIX}; ${FIND} ${SITE_PKG}/ZPublisher \
+ -type f -print >>${PLIST_SRC})
+ (cd ${PREFIX}; ${FIND} -d ${SITE_PKG}/ZPublisher \
+ -type d -print | ${SED} -e "s/^/@dirrm /" >>${PLIST_SRC})
+ ${LN} -sf ../${SITE_PKG}/ZPublisher/Test.py ${PREFIX}/bin/bobo
+
+.include "../../mk/bsd.pkg.mk"