summaryrefslogtreecommitdiff
path: root/www/py-zpublisher/Makefile
blob: 7a2fdbb319faa5b1ee74116180125908e65c44c4 (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
# $NetBSD: Makefile,v 1.12 2004/07/22 09:16:00 recht Exp $
#

DISTNAME=	Zope-2.2.2-src
PKGNAME=	py-zpublisher-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://classic.zope.org:8080/Documentation/Reference/ORB
COMMENT=	Publishes a collection of Python objects as Web resources

DEPENDS+=	py-extclass>=2.2.2:../../lang/py-extclass

WRKSRC=		${WRKDIR}/${DISTNAME}/lib/python
PLIST_SRC=	${WRKDIR}/.PLIST_SRC
EXTRACT_ELEMENTS=	${DISTNAME}/lib/python/ZPublisher

do-build:
	cd ${WRKSRC}/.. && ${PY_PROG} ${PY_LIBDIR}/compileall.py .
	cd ${WRKSRC}/.. && ${PY_PROG} -O ${PY_LIBDIR}/compileall.py .

do-install:
	${INSTALL_SCRIPT_DIR} ${PY_SITEPKG}
	${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
	cd ${WRKSRC} && ${PAX} -rw -pe ZPublisher ${PY_SITEPKG}
	${CHMOD} 755 ${PY_SITEPKG}/ZPublisher/Test.py
	cd ${PREFIX} && ${FIND} ${PY_SITEPATH}/ZPublisher \
		-type f -print >>${PLIST_SRC}
	cd ${PREFIX} && ${FIND} -d ${PY_SITEPATH}/ZPublisher \
		-type d -print | ${SED} -e "s/^/@dirrm /" >>${PLIST_SRC}
	${LN} -sf ../${PY_SITEPATH}/ZPublisher/Test.py ${PREFIX}/bin/bobo

.include "../../lang/python20/Makefile.inc"
.include "../../mk/bsd.pkg.mk"