2014-01-12 10:45:24 +01:00
|
|
|
# $NetBSD: Makefile,v 1.6 2014/01/12 09:45:25 wiz Exp $
|
2013-01-07 18:06:25 +01:00
|
|
|
|
|
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
|
|
|
|
|
|
|
|
COMMENT= Python WSGI Utility Library
|
|
|
|
|
2013-01-17 20:55:43 +01:00
|
|
|
USE_LANGUAGES= # empty
|
2013-01-17 00:12:06 +01:00
|
|
|
USE_TOOLS+= pax
|
2013-01-07 18:06:25 +01:00
|
|
|
|
2013-07-09 19:11:42 +02:00
|
|
|
PYTHON_VERSIONS_INCLUDE_3X= yes
|
|
|
|
|
2013-01-17 00:12:06 +01:00
|
|
|
REPLACE_PYTHON= examples/cookieauth.py
|
|
|
|
REPLACE_PYTHON+= examples/manage-coolmagic.py
|
|
|
|
REPLACE_PYTHON+= examples/manage-couchy.py
|
|
|
|
REPLACE_PYTHON+= examples/manage-cupoftee.py
|
|
|
|
REPLACE_PYTHON+= examples/manage-i18nurls.py
|
|
|
|
REPLACE_PYTHON+= examples/manage-plnt.py
|
|
|
|
REPLACE_PYTHON+= examples/manage-shorty.py
|
|
|
|
REPLACE_PYTHON+= examples/manage-simplewiki.py
|
|
|
|
REPLACE_PYTHON+= examples/manage-webpylike.py
|
|
|
|
REPLACE_PYTHON+= examples/upload.py
|
|
|
|
REPLACE_PYTHON+= examples/contrib/sessions.py
|
|
|
|
REPLACE_PYTHON+= werkzeug/testsuite/multipart/collect.py
|
|
|
|
|
|
|
|
DOCFILES= AUTHORS CHANGES
|
|
|
|
|
|
|
|
EGDIR= share/examples/${PKGBASE}
|
|
|
|
|
|
|
|
PLIST_SUBST+= EGDIR=${EGDIR}
|
|
|
|
|
|
|
|
INSTALLATION_DIRS+= ${DOCDIR}
|
|
|
|
INSTALLATION_DIRS+= ${EGDIR}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.for i in console.png less.png more.png source.png
|
|
|
|
${CHMOD} ${SHAREMODE} \
|
|
|
|
${DESTDIR}${PREFIX}/${PYSITELIB}/werkzeug/debug/shared/${i}
|
|
|
|
.endfor
|
|
|
|
.for i in ${DOCFILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PREFIX}/${DOCDIR}
|
|
|
|
.endfor
|
|
|
|
cd ${WRKSRC}/examples && pax -rwppm . ${DESTDIR}${PREFIX}/${EGDIR}
|
|
|
|
.for i in down.png up.png
|
|
|
|
${CHMOD} ${SHAREMODE} \
|
|
|
|
${DESTDIR}${PREFIX}/${EGDIR}/cupoftee/shared/${i}
|
|
|
|
.endfor
|
|
|
|
|
2013-01-17 20:08:08 +01:00
|
|
|
.include "../../www/py-werkzeug/Makefile.common"
|
|
|
|
|
2013-01-17 00:12:06 +01:00
|
|
|
.include "../../lang/python/application.mk"
|
2013-01-07 18:06:25 +01:00
|
|
|
.include "../../lang/python/egg.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|