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 |
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 |
12 |
|
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 |
DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME} |
37 |
|
38 |
PLIST_FILES= share/man/man1/${PORTNAME}.1.gz |
39 |
PORTDOCS= * |
40 |
|
41 |
OPTIONS_DEFINE= DOCS |
42 |
|
20 |
post-patch: |
43 |
post-patch: |
21 |
@${REINPLACE_CMD} -e 's|usb-1.0|usb|g' ${WRKSRC}/setup.py |
44 |
@${REINPLACE_CMD} -e 's|usb-1.0|usb|g' ${WRKSRC}/setup.py |
22 |
|
45 |
|
|
|
46 |
post-build: |
47 |
(cd ${WRKSRC}/docs && \ |
48 |
${SETENV} sphinx-build-${PYTHON_VER} -b man . _build/man) |
49 |
|
50 |
post-build-DOCS-on: |
51 |
(cd ${WRKSRC}/docs && \ |
52 |
${SETENV} sphinx-build-${PYTHON_VER} -b html . _build/html) |
53 |
|
23 |
post-install: |
54 |
post-install: |
|
|
55 |
${INSTALL_MAN} ${WRKSRC}/docs/_build/man/${PORTNAME}.1 \ |
56 |
${STAGEDIR}${PREFIX}/share/man/man1/ |
24 |
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/hid*.so |
57 |
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/hid*.so |
25 |
|
58 |
|
|
|
59 |
post-install-DOCS-on: |
60 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
61 |
(cd ${WRKSRC}/docs/_build/html && \ |
62 |
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/ "-not -name .buildinfo -not -regex ^./.doctrees.* -not -regex ^./_sources.*") |
63 |
|
26 |
.include <bsd.port.mk> |
64 |
.include <bsd.port.mk> |