diff options
Diffstat (limited to 'lang/py-mypy/Makefile')
-rw-r--r-- | lang/py-mypy/Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/lang/py-mypy/Makefile b/lang/py-mypy/Makefile new file mode 100644 index 00000000000..d414f3b0eaa --- /dev/null +++ b/lang/py-mypy/Makefile @@ -0,0 +1,35 @@ +# $NetBSD: Makefile,v 1.1 2018/11/28 08:15:31 adam Exp $ + +DISTNAME= mypy-0.641 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +CATEGORIES= lang python +MASTER_SITES= ${MASTER_SITE_PYPI:=m/mypy/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.mypy-lang.org/ +COMMENT= Optional static typing for Python +LICENSE= mit + +DEPENDS+= ${PYPKGPREFIX}-typed-ast>=1.1.0:../../devel/py-typed-ast +DEPENDS+= ${PYPKGPREFIX}-mypy_extensions>=0.4.0:../../lang/py-mypy_extensions + +.include "../../lang/python/pyversion.mk" +.if ${_PYTHON_VERSION} == 34 +DEPENDS+= ${PYPKGPREFIX}-typing>=3.5.3:../../devel/py-typing +.endif + +USE_LANGUAGES= # none + +PYTHON_VERSIONS_INCOMPATIBLE= 27 + +REPLACE_PYTHON= mypy/typeshed/tests/*.py + +post-install: + cd ${DESTDIR}${PREFIX}/bin && \ + ${MV} dmypy dmypy-${PYVERSSUFFIX} && \ + ${MV} mypy mypy-${PYVERSSUFFIX} && \ + ${MV} stubgen stubgen-${PYVERSSUFFIX} || ${TRUE} + +.include "../../lang/python/application.mk" +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" |