blob: 5b5d0ed4dd607754bcf104358e23183c49380ba1 (
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
|
PORTNAME= jsonnet
DISTVERSIONPREFIX= v
DISTVERSION= 0.18.0
CATEGORIES= devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= timp87@gmail.com
COMMENT= Python bindings for Jsonnet - The data templating language
WWW= https://github.com/google/jsonnet
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libjsonnet.so:devel/jsonnet
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR}
USES= compiler:c++11-lang python:3.6+ localbase
USE_GITHUB= yes
GH_ACCOUNT= google
USE_PYTHON= distutils autoplist
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_jsonnet${PYTHON_EXT_SUFFIX}.so
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs
.include <bsd.port.mk>
|