diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2017-10-12 06:34:31 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2017-10-12 06:34:31 +0800 |
commit | ea71cd73dbda55ebdf056b5d869f9e6ca572c170 (patch) | |
tree | ae8d02db1f917b2d838cef25cf73abc58e6b9033 /comms/py-hidapi | |
parent | b8c7ff199d176cc177ead5fbdc337b22f515701f (diff) | |
download | freebsd-ports-gnome-ea71cd73dbda55ebdf056b5d869f9e6ca572c170.tar.gz freebsd-ports-gnome-ea71cd73dbda55ebdf056b5d869f9e6ca572c170.tar.zst freebsd-ports-gnome-ea71cd73dbda55ebdf056b5d869f9e6ca572c170.zip |
Add py-hidapi 0.7.99, cython interface to comms/hidapi.
Diffstat (limited to 'comms/py-hidapi')
-rw-r--r-- | comms/py-hidapi/Makefile | 28 | ||||
-rw-r--r-- | comms/py-hidapi/distinfo | 3 | ||||
-rw-r--r-- | comms/py-hidapi/pkg-descr | 3 |
3 files changed, 34 insertions, 0 deletions
diff --git a/comms/py-hidapi/Makefile b/comms/py-hidapi/Makefile new file mode 100644 index 000000000000..23944b75b6c2 --- /dev/null +++ b/comms/py-hidapi/Makefile @@ -0,0 +1,28 @@ +# Created by: Emanuel Haupt <ehaupt@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= hidapi +PORTVERSION= 0.7.99 +DISTVERSIONSUFFIX= .post21 +CATEGORIES= comms python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= ehaupt@FreeBSD.org +COMMENT= Cython interface to comms/hidapi + +LICENSE= GPLv3 + +BUILD_DEPENDS= cython:lang/cython +LIB_DEPENDS= libhidapi.so:comms/hidapi + +USES= python +USE_PYTHON= autoplist distutils + +post-patch: + @${REINPLACE_CMD} -e 's|usb-1.0|usb|g' ${WRKSRC}/setup.py + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/hid.so + +.include <bsd.port.mk> diff --git a/comms/py-hidapi/distinfo b/comms/py-hidapi/distinfo new file mode 100644 index 000000000000..149f1a699e6e --- /dev/null +++ b/comms/py-hidapi/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1507756423 +SHA256 (hidapi-0.7.99.post21.tar.gz) = e0be1aa6566979266a8fc845ab0e18613f4918cf2c977fe67050f5dc7e2a9a97 +SIZE (hidapi-0.7.99.post21.tar.gz) = 51377 diff --git a/comms/py-hidapi/pkg-descr b/comms/py-hidapi/pkg-descr new file mode 100644 index 000000000000..dfe8a35bd2c5 --- /dev/null +++ b/comms/py-hidapi/pkg-descr @@ -0,0 +1,3 @@ +Cython interface to comms/hidapi. + +WWW: https://pypi.python.org/pypi/hidapi |