blob: 96cf74462fd8e87bf96da221aa1287ba2ea6ed8c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
PORTNAME= pytype
PORTVERSION= 2023.2.17
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMESUFFIX= ${PYTHON_PKGNAMESUFFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Python type inferencer
WWW= https://google.github.io/pytype/
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pybind11>=0:devel/py-pybind11@${PY_FLAVOR}
RUN_DEPENDS= ninja>=1.10.2:devel/ninja \
${PYTHON_PKGNAMEPREFIX}attrs>=21.4.0:devel/py-attrs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}importlab>=0.8:devel/py-importlab@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}Jinja2>=3.1.2:devel/py-Jinja2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}libcst>=0.4.9:devel/py-libcst@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}networkx>=2.8.5:math/py-networkx@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pydot>=1.4.2:graphics/py-pydot@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tabulate>=0.8.9:devel/py-tabulate@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}toml>=0.10.2:textproc/py-toml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.3.0:devel/py-typing-extensions@${PY_FLAVOR}
USES= compiler:c++11-lang python:3.7+
USE_PYTHON= autoplist concurrent distutils
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 30800
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typed-ast>=1.5.0:devel/py-typed-ast@${PY_FLAVOR}
.endif
post-patch:
@${RM} ${WRKSRC}/pytype/tools/merge_pyi/test_data/packed_tuple.py
@${RM} ${WRKSRC}/pytype/tools/merge_pyi/test_data/packed_tuple.comment.py
@${RM} ${WRKSRC}/pytype/tools/merge_pyi/test_data/packed_tuple.pep484.py
@${RM} ${WRKSRC}/pytype/tools/merge_pyi/test_data/parse_error.py
@${RM} ${WRKSRC}/pytype/tools/merge_pyi/test_data/pyi_variations.comment.py
@${RM} ${WRKSRC}/pytype/tools/merge_pyi/test_data/simple_defaults.py
post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
.include <bsd.port.post.mk>
|