blob: fe34df0477f69595ec8bba131b0be56e4c543c01 (
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
41
42
43
44
|
# $NetBSD: Makefile,v 1.12 2003/04/16 16:29:24 jmc Exp $
#
DISTNAME= Zope-2.2.2-src
PKGNAME= py-dtml-2.2.2
WRKSRC= ${WRKDIR}/${DISTNAME}/lib/python/DocumentTemplate
CATEGORIES= textproc
MASTER_SITES= http://www.zope.org/Products/Zope/2.2.2/
EXTRACT_SUFX= .tgz
MAINTAINER= tsarna@netbsd.org
HOMEPAGE= http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.html
COMMENT= DTML and StructuredText from Zope, also independently useful
DEPENDS+= py-extclass>=2.2.2:../../lang/py-extclass
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
EXTRACT_ELEMENTS= ${DISTNAME}/lib/python/DocumentTemplate \
${DISTNAME}/lib/python/StructuredText \
${DISTNAME}/lib/python/ts_regex.py
do-configure:
(cd ${WRKSRC} && \
${CP} ${PY_CONFIGDIR}/Makefile.pre.in . &&\
${MAKE} -f Makefile.pre.in boot)
post-build:
cd ${WRKSRC} && make clean && ${RM} Makefile* sedscript release.* *.c
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 -pp . ${PY_SITEPKG}
cd ${PREFIX} && ${FIND} ${PY_SITEPATH}/DocumentTemplate \
${PY_SITEPATH}/StructuredText \
-type f -print >>${PLIST_SRC}
cd ${PREFIX} && ${FIND} -d ${PY_SITEPATH}/DocumentTemplate \
${PY_SITEPATH}/StructuredText \
-type d -print | ${SED} -e "s/^/@dirrm /" >>${PLIST_SRC}
.include "../../lang/python20/Makefile.inc"
.include "../../mk/bsd.pkg.mk"
|