| @@ -1,50 +1,51 @@ | | | @@ -1,50 +1,51 @@ |
1 | # $NetBSD: Makefile,v 1.3 2013/01/17 19:08:08 kleink Exp $ | | 1 | # $NetBSD: Makefile,v 1.4 2013/01/17 19:55:43 kleink Exp $ |
2 | | | 2 | |
3 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl} | | 3 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl} |
4 | PKGREVISION= 1 | | 4 | PKGREVISION= 1 |
5 | | | 5 | |
6 | COMMENT= Python WSGI Utility Library | | 6 | COMMENT= Python WSGI Utility Library |
7 | | | 7 | |
| | | 8 | USE_LANGUAGES= # empty |
8 | USE_TOOLS+= pax | | 9 | USE_TOOLS+= pax |
9 | | | 10 | |
10 | REPLACE_PYTHON= examples/cookieauth.py | | 11 | REPLACE_PYTHON= examples/cookieauth.py |
11 | REPLACE_PYTHON+= examples/manage-coolmagic.py | | 12 | REPLACE_PYTHON+= examples/manage-coolmagic.py |
12 | REPLACE_PYTHON+= examples/manage-couchy.py | | 13 | REPLACE_PYTHON+= examples/manage-couchy.py |
13 | REPLACE_PYTHON+= examples/manage-cupoftee.py | | 14 | REPLACE_PYTHON+= examples/manage-cupoftee.py |
14 | REPLACE_PYTHON+= examples/manage-i18nurls.py | | 15 | REPLACE_PYTHON+= examples/manage-i18nurls.py |
15 | REPLACE_PYTHON+= examples/manage-plnt.py | | 16 | REPLACE_PYTHON+= examples/manage-plnt.py |
16 | REPLACE_PYTHON+= examples/manage-shorty.py | | 17 | REPLACE_PYTHON+= examples/manage-shorty.py |
17 | REPLACE_PYTHON+= examples/manage-simplewiki.py | | 18 | REPLACE_PYTHON+= examples/manage-simplewiki.py |
18 | REPLACE_PYTHON+= examples/manage-webpylike.py | | 19 | REPLACE_PYTHON+= examples/manage-webpylike.py |
19 | REPLACE_PYTHON+= examples/upload.py | | 20 | REPLACE_PYTHON+= examples/upload.py |
20 | REPLACE_PYTHON+= examples/contrib/sessions.py | | 21 | REPLACE_PYTHON+= examples/contrib/sessions.py |
21 | REPLACE_PYTHON+= werkzeug/testsuite/multipart/collect.py | | 22 | REPLACE_PYTHON+= werkzeug/testsuite/multipart/collect.py |
22 | | | 23 | |
23 | DOCFILES= AUTHORS CHANGES | | 24 | DOCFILES= AUTHORS CHANGES |
24 | | | 25 | |
25 | EGDIR= share/examples/${PKGBASE} | | 26 | EGDIR= share/examples/${PKGBASE} |
26 | | | 27 | |
27 | PLIST_SUBST+= EGDIR=${EGDIR} | | 28 | PLIST_SUBST+= EGDIR=${EGDIR} |
28 | | | 29 | |
29 | INSTALLATION_DIRS+= ${DOCDIR} | | 30 | INSTALLATION_DIRS+= ${DOCDIR} |
30 | INSTALLATION_DIRS+= ${EGDIR} | | 31 | INSTALLATION_DIRS+= ${EGDIR} |
31 | | | 32 | |
32 | post-install: | | 33 | post-install: |
33 | .for i in console.png less.png more.png source.png | | 34 | .for i in console.png less.png more.png source.png |
34 | ${CHMOD} ${SHAREMODE} \ | | 35 | ${CHMOD} ${SHAREMODE} \ |
35 | ${DESTDIR}${PREFIX}/${PYSITELIB}/werkzeug/debug/shared/${i} | | 36 | ${DESTDIR}${PREFIX}/${PYSITELIB}/werkzeug/debug/shared/${i} |
36 | .endfor | | 37 | .endfor |
37 | .for i in ${DOCFILES} | | 38 | .for i in ${DOCFILES} |
38 | ${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PREFIX}/${DOCDIR} | | 39 | ${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PREFIX}/${DOCDIR} |
39 | .endfor | | 40 | .endfor |
40 | cd ${WRKSRC}/examples && pax -rwppm . ${DESTDIR}${PREFIX}/${EGDIR} | | 41 | cd ${WRKSRC}/examples && pax -rwppm . ${DESTDIR}${PREFIX}/${EGDIR} |
41 | .for i in down.png up.png | | 42 | .for i in down.png up.png |
42 | ${CHMOD} ${SHAREMODE} \ | | 43 | ${CHMOD} ${SHAREMODE} \ |
43 | ${DESTDIR}${PREFIX}/${EGDIR}/cupoftee/shared/${i} | | 44 | ${DESTDIR}${PREFIX}/${EGDIR}/cupoftee/shared/${i} |
44 | .endfor | | 45 | .endfor |
45 | | | 46 | |
46 | .include "../../www/py-werkzeug/Makefile.common" | | 47 | .include "../../www/py-werkzeug/Makefile.common" |
47 | | | 48 | |
48 | .include "../../lang/python/application.mk" | | 49 | .include "../../lang/python/application.mk" |
49 | .include "../../lang/python/egg.mk" | | 50 | .include "../../lang/python/egg.mk" |
50 | .include "../../mk/bsd.pkg.mk" | | 51 | .include "../../mk/bsd.pkg.mk" |