2000-10-22 22:01:48 +02:00
|
|
|
# $NetBSD: Makefile,v 1.2 2000/10/22 20:01:54 tsarna Exp $
|
2000-07-28 19:51:15 +02:00
|
|
|
#
|
|
|
|
|
2000-10-22 22:01:48 +02:00
|
|
|
DISTNAME= Zope-2.2.2-src
|
|
|
|
PKGNAME= py-zpublisher-2.2.2
|
2000-07-28 19:51:15 +02:00
|
|
|
CATEGORIES= www
|
2000-10-22 22:01:48 +02:00
|
|
|
MASTER_SITES= http://www.zope.org/Products/Zope/2.2.2/
|
2000-07-28 19:51:15 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= tsarna@netbsd.org
|
|
|
|
HOMEPAGE= http://classic.zope.org:8080/Documentation/Reference/ORB
|
|
|
|
|
2000-10-22 22:01:48 +02:00
|
|
|
DEPENDS+= py-extclass>=2.2.2:../../lang/python
|
2000-07-28 19:51:15 +02:00
|
|
|
|
|
|
|
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
|
|
|
|
EXTRACT_ELEMENTS= ${DISTNAME}/lib/python/ZPublisher
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/lib/python
|
|
|
|
|
|
|
|
do-build:
|
2000-10-22 22:01:48 +02:00
|
|
|
(cd ${WRKSRC}/..; ${PY_PROG} ${PY_LIBDIR}/compileall.py .)
|
|
|
|
(cd ${WRKSRC}/..; ${PY_PROG} -O ${PY_LIBDIR}/compileall.py .)
|
2000-07-28 19:51:15 +02:00
|
|
|
|
|
|
|
do-install:
|
2000-10-22 22:01:48 +02:00
|
|
|
${INSTALL_SCRIPT_DIR} ${PY_SITEPKG}
|
2000-07-28 19:51:15 +02:00
|
|
|
${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
|
2000-10-22 22:01:48 +02:00
|
|
|
(cd ${WRKSRC}; ${PAX} -r -w -v -p e ZPublisher ${PY_SITEPKG})
|
|
|
|
${CHMOD} 755 ${PY_SITEPKG}/ZPublisher/Test.py
|
|
|
|
(cd ${PREFIX}; ${FIND} ${PY_SITEPATH}/ZPublisher \
|
2000-07-28 19:51:15 +02:00
|
|
|
-type f -print >>${PLIST_SRC})
|
2000-10-22 22:01:48 +02:00
|
|
|
(cd ${PREFIX}; ${FIND} -d ${PY_SITEPATH}/ZPublisher \
|
2000-07-28 19:51:15 +02:00
|
|
|
-type d -print | ${SED} -e "s/^/@dirrm /" >>${PLIST_SRC})
|
2000-10-22 22:01:48 +02:00
|
|
|
${LN} -sf ../${PY_SITEPATH}/ZPublisher/Test.py ${PREFIX}/bin/bobo
|
2000-07-28 19:51:15 +02:00
|
|
|
|
2000-10-22 22:01:48 +02:00
|
|
|
.include "../../lang/python/Makefile.inc"
|
2000-07-28 19:51:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|