aa67e11089
either because they themselves are not ready or because a dependency isn't. This is annotated by PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of x.y.z or PYTHON_VERSIONS_INCOMPATIBLE= 33 # py-foo, py-bar respectively, please use the same style for other packages, and check during updates. Use versioned_dependencies.mk where applicable. Use REPLACE_PYTHON instead of handcoded alternatives, where applicable. Reorder Makefile sections into standard order, where applicable. Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default with the next commit. Whitespace cleanups and other nits corrected, where necessary.
50 lines
1.4 KiB
Makefile
50 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.7 2014/01/25 10:30:30 wiz Exp $
|
|
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
|
|
|
|
COMMENT= Python WSGI Utility Library
|
|
|
|
USE_LANGUAGES= # empty
|
|
USE_TOOLS+= pax
|
|
|
|
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
|
|
|
|
.include "../../www/py-werkzeug/Makefile.common"
|
|
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|