Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Mar 2021 13:46:35 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r568457 - in head/devel: . py-hidraw py-hidraw/files
Message-ID:  <202103151346.12FDkZDl095328@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Mon Mar 15 13:46:35 2021
New Revision: 568457
URL: https://svnweb.freebsd.org/changeset/ports/568457

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

Added:
  head/devel/py-hidraw/
  head/devel/py-hidraw/Makefile   (contents, props changed)
  head/devel/py-hidraw/distinfo   (contents, props changed)
  head/devel/py-hidraw/files/
  head/devel/py-hidraw/files/patch-hidraw_hidrawmodule.c   (contents, props changed)
  head/devel/py-hidraw/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Mon Mar 15 13:32:04 2021	(r568456)
+++ head/devel/Makefile	Mon Mar 15 13:46:35 2021	(r568457)
@@ -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

Added: head/devel/py-hidraw/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-hidraw/Makefile	Mon Mar 15 13:46:35 2021	(r568457)
@@ -0,0 +1,28 @@
+# 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>

Added: head/devel/py-hidraw/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-hidraw/distinfo	Mon Mar 15 13:46:35 2021	(r568457)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1615814129
+SHA256 (daym-hidraw-0.2.1_GH0.tar.gz) = fe37c03243cf97c9e252aa3d90a6b8adc7a336c237298680a9b70fe4af32d6e1
+SIZE (daym-hidraw-0.2.1_GH0.tar.gz) = 2768

Added: head/devel/py-hidraw/files/patch-hidraw_hidrawmodule.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-hidraw/files/patch-hidraw_hidrawmodule.c	Mon Mar 15 13:46:35 2021	(r568457)
@@ -0,0 +1,13 @@
+--- 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 {
+ };

Added: head/devel/py-hidraw/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-hidraw/pkg-descr	Mon Mar 15 13:46:35 2021	(r568457)
@@ -0,0 +1,3 @@
+Python interface to gather hidraw information.
+
+WWW: https://github.com/daym/hidraw/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103151346.12FDkZDl095328>