pkgsrc/devel/py-cookiecutter/Makefile
adam 0f188960fd py-cookiecutter: fix
- switch to PYPI
- enable testing
- get rid of sphinx (building docs does not work)
- use alternatives
2019-10-21 22:54:23 +00:00

39 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.5 2019/10/21 22:54:23 adam Exp $
DISTNAME= cookiecutter-1.6.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=c/cookiecutter/}
# XXX: remove on next update
DIST_SUBDIR= cookiecutter
MAINTAINER= gde@llew.me
HOMEPAGE= https://github.com/audreyr/cookiecutter
COMMENT= Command-line utility that creates projects from project templates
LICENSE= modified-bsd
DEPENDS+= ${PYPKGPREFIX}-binaryornot>=0.2.0:../../devel/py-binaryornot
DEPENDS+= ${PYPKGPREFIX}-click>=6.3:../../devel/py-click
DEPENDS+= ${PYPKGPREFIX}-future>=0.15.2:../../devel/py-future
DEPENDS+= ${PYPKGPREFIX}-jinja2>=2.7:../../textproc/py-jinja2
DEPENDS+= ${PYPKGPREFIX}-jinja2-time>=0.1.0:../../time/py-jinja2-time
DEPENDS+= ${PYPKGPREFIX}-poyo>=0.1.0:../../textproc/py-poyo
DEPENDS+= ${PYPKGPREFIX}-requests>=2.18.0:../../devel/py-requests
DEPENDS+= ${PYPKGPREFIX}-whichcraft>=0.4.0:../../devel/py-whichcraft
TEST_DEPENDS+= ${PYPKGPREFIX}-freezegun-[0-9]*:../../devel/py-freezegun
TEST_DEPENDS+= ${PYPKGPREFIX}-test>=2.3.0:../../devel/py-test
TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
TEST_DEPENDS+= ${PYPKGPREFIX}-test-mock-[0-9]*:../../devel/py-test-mock
TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
USE_LANGUAGES= # none
PYSETUPTESTTARGET= pytest
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} cookiecutter cookiecutter-${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"