Lines 1-26
Link Here
|
1 |
PORTNAME= hidapi |
1 |
PORTNAME= hidapi |
2 |
DISTVERSION= 0.11.0.post2 |
2 |
DISTVERSION= 0.14.0 |
3 |
CATEGORIES= comms python |
3 |
CATEGORIES= comms python |
4 |
MASTER_SITES= PYPI |
|
|
5 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
4 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
|
|
5 |
DISTNAME= ${GH_ACCOUNT}-${PORTVERSION}${EXTRACT_SUFX} |
6 |
|
6 |
|
7 |
MAINTAINER= ports@FreeBSD.org |
7 |
MAINTAINER= ports@FreeBSD.org |
8 |
COMMENT= Cython interface to comms/hidapi |
8 |
COMMENT= Cython interface to comms/hidapi |
9 |
WWW= https://pypi.org/project/hidapi/ |
9 |
WWW= https://pypi.org/project/hidapi/ |
10 |
|
10 |
|
11 |
LICENSE= GPLv3 |
11 |
LICENSE= BSD3CLAUSE GPLv3 PD |
12 |
|
12 |
LICENSE_COMB= multi |
|
|
13 |
LICENSE_FILE_BSD3CLAUSE= ${WRKSRC}/LICENSE-bsd.txt |
14 |
LICENSE_FILE_GPLv3= ${WRKSRC}/LICENSE-gpl3.txt |
15 |
LICENSE_FILE_PD= ${WRKSRC}/LICENSE-orig.txt |
16 |
LICENSE_FILE= ${WRKSRC}/LICENSE.txt |
17 |
|
18 |
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cython>0:lang/cython@${PY_FLAVOR} \ |
19 |
${PYTHON_PKGNAMEPREFIX}recommonmark>0:textproc/py-recommonmark@${PY_FLAVOR} \ |
20 |
${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \ |
21 |
${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR} \ |
22 |
${PYTHON_PKGNAMEPREFIX}sphinx_rtd_theme>0:textproc/py-sphinx_rtd_theme@${PY_FLAVOR} \ |
23 |
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} |
13 |
LIB_DEPENDS= libhidapi.so:comms/hidapi |
24 |
LIB_DEPENDS= libhidapi.so:comms/hidapi |
|
|
25 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} |
26 |
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tox>0:devel/py-tox@${PY_FLAVOR} |
14 |
|
27 |
|
15 |
USES= python |
28 |
USES= pytest python |
16 |
USE_PYTHON= autoplist cython distutils |
29 |
USE_GITHUB= yes |
|
|
30 |
GH_ACCOUNT= trezor |
31 |
GH_PROJECT= cython-hidapi |
32 |
USE_PYTHON= autoplist cython pep517 |
17 |
|
33 |
|
18 |
MAKE_ENV+= DISTUTILS_DEBUG=1 |
34 |
MAKE_ENV+= DISTUTILS_DEBUG=1 |
19 |
|
35 |
|
|
|
36 |
PLIST_FILES= share/man/man1/${PORTNAME}.1.gz |
37 |
PORTDOCS= * |
38 |
|
39 |
OPTIONS_DEFINE= DOCS |
40 |
|
20 |
post-patch: |
41 |
post-patch: |
21 |
@${REINPLACE_CMD} -e 's|usb-1.0|usb|g' ${WRKSRC}/setup.py |
42 |
@${REINPLACE_CMD} -e 's|usb-1.0|usb|g' ${WRKSRC}/setup.py |
22 |
|
43 |
|
|
|
44 |
post-build: |
45 |
(cd ${WRKSRC}/docs && \ |
46 |
${SETENV} sphinx-build-${PYTHON_VER} -b man . _build/man) |
47 |
|
48 |
post-build-DOCS-on: |
49 |
(cd ${WRKSRC}/docs && \ |
50 |
${SETENV} sphinx-build-${PYTHON_VER} -b html . _build/html) |
51 |
|
23 |
post-install: |
52 |
post-install: |
|
|
53 |
${INSTALL_MAN} ${WRKSRC}/docs/_build/man/${PORTNAME}.1 \ |
54 |
${STAGEDIR}${PREFIX}/share/man/man1/ |
24 |
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/hid*.so |
55 |
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/hid*.so |
25 |
|
56 |
|
|
|
57 |
post-install-DOCS-on: |
58 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
59 |
(cd ${WRKSRC}/docs/_build/html && \ |
60 |
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/ "-not -name .buildinfo -not -regex ^./.doctrees.* -not -regex ^./_sources.*") |
61 |
|
26 |
.include <bsd.port.mk> |
62 |
.include <bsd.port.mk> |