Commit 213ff15c authored by ehaupt's avatar ehaupt
Browse files

Add py-hidraw 0.2.1, python interface to gather hidraw information.

parent 5335e151
......@@ -4489,6 +4489,7 @@
SUBDIR += py-hg-evolve
SUBDIR += py-hglib
SUBDIR += py-hgtools
SUBDIR += py-hidraw
SUBDIR += py-holidays
SUBDIR += py-http-prompt
SUBDIR += py-humanize
......
# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
# $FreeBSD$
PORTNAME= hidraw
PORTVERSION= 0.2.1
CATEGORIES= devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Python interface to gather hidraw information
LICENSE= BSD2CLAUSE
USES= python
USE_GITHUB= yes
GH_ACCOUNT= daym
USE_PYTHON= autoplist distutils
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 1300000
IGNORE= requires FreeBSD 13 or later with hidraw support
.endif
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/hidraw/_hidraw.so
.include <bsd.port.post.mk>
TIMESTAMP = 1615814129
SHA256 (daym-hidraw-0.2.1_GH0.tar.gz) = fe37c03243cf97c9e252aa3d90a6b8adc7a336c237298680a9b70fe4af32d6e1
SIZE (daym-hidraw-0.2.1_GH0.tar.gz) = 2768
--- hidraw/hidrawmodule.c.orig 2021-03-15 09:48:56 UTC
+++ hidraw/hidrawmodule.c
@@ -1,6 +1,10 @@
#include <Python.h>
#include <sys/ioctl.h>
+#ifdef __FreeBSD__
+#include <dev/hid/hidraw.h>
+#else
#include <linux/hidraw.h>
+#endif
struct module_state {
};
Python interface to gather hidraw information.
WWW: https://github.com/daym/hidraw/
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment