bb579283d0
They now have a tool dependency on py-setuptools instead of a DEPENDS
41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.20 2022/01/04 20:55:38 wiz Exp $
|
|
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
|
|
PKGREVISION= 1
|
|
|
|
COMMENT= Python WSGI Utility Library
|
|
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
|
|
|
|
REPLACE_PYTHON+= examples/manage-*.py
|
|
REPLACE_PYTHON+= examples/upload.py
|
|
REPLACE_PYTHON+= tests/multipart/test_collect.py
|
|
|
|
PYSETUPTESTTARGET= pytest
|
|
|
|
EGDIR= share/examples/${PKGBASE}
|
|
|
|
PLIST_SUBST+= EGDIR=${EGDIR}
|
|
|
|
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
|
|
cd ${WRKSRC}/examples && ${PAX} -rwppm . ${DESTDIR}${PREFIX}/${EGDIR}
|
|
.for i in manage-coolmagic.py manage-couchy.py manage-cupoftee.py \
|
|
manage-i18nurls.py manage-plnt.py manage-shorty.py manage-simplewiki.py \
|
|
manage-webpylike.py
|
|
${CHMOD} ${SHAREMODE} ${DESTDIR}${PREFIX}/${EGDIR}/${i}
|
|
.endfor
|
|
.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"
|