pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-hidapi: Import as wip/py-hidapi



Module Name:	pkgsrc-wip
Committed By:	Mateusz Poszwa <old4%o2.pl@localhost>
Pushed By:	f8l
Date:		Thu Sep 15 19:31:08 2016 +0200
Changeset:	69c0a9c619157c95612ed5ee466f85cdd20bb43b

Modified Files:
	Makefile
Added Files:
	py-hidapi/DESCR
	py-hidapi/Makefile
	py-hidapi/PLIST
	py-hidapi/TODO
	py-hidapi/distinfo
	py-hidapi/patches/patch-setup.py

Log Message:
py-hidapi: Import as wip/py-hidapi

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=69c0a9c619157c95612ed5ee466f85cdd20bb43b

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                         |  1 +
 py-hidapi/DESCR                  |  0
 py-hidapi/Makefile               | 21 +++++++++++++++++++++
 py-hidapi/PLIST                  |  7 +++++++
 py-hidapi/TODO                   |  4 ++++
 py-hidapi/distinfo               |  3 +++
 py-hidapi/patches/patch-setup.py | 13 +++++++++++++
 7 files changed, 49 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index bd9f37e..f7abbd7 100644
--- a/Makefile
+++ b/Makefile
@@ -2996,6 +2996,7 @@ SUBDIR+=	py-hepcrawl
 SUBDIR+=	py-hessianfree
 SUBDIR+=	py-hfk
 SUBDIR+=	py-hgapi
+SUBDIR+=	py-hidapi
 SUBDIR+=	py-hieroglyph
 SUBDIR+=	py-hmf
 SUBDIR+=	py-holoviews
diff --git a/py-hidapi/DESCR b/py-hidapi/DESCR
new file mode 100644
index 0000000..e69de29
diff --git a/py-hidapi/Makefile b/py-hidapi/Makefile
new file mode 100644
index 0000000..420a5f4
--- /dev/null
+++ b/py-hidapi/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD$
+
+PKGNAME=	${PYPKGPREFIX}-hidapi-0
+CATEGORIES=	wip
+
+GIT_REPOSITORIES=	cython-hidapi
+GIT_REPO.cython-hidapi=	https://github.com/trezor/cython-hidapi.git
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/trezor/cython-hidapi/
+COMMENT=	Python wrapper for the hidapi
+LICENSE=	gnu-gpl-v3 OR modified-bsd
+
+WRKSRC=		${WRKDIR}/cython-hidapi
+
+.include "../../devel/libusb1/buildlink3.mk"
+.include "../../devel/py-cython/buildlink3.mk"
+.include "../../lang/python/distutils.mk"
+
+.include "../../wip/mk/git-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-hidapi/PLIST b/py-hidapi/PLIST
new file mode 100644
index 0000000..05678a3
--- /dev/null
+++ b/py-hidapi/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD$
+${PYSITELIB}/hid.so
+${PYSITELIB}/hidapi-${PKGVERSION}.7.99.post17${EGG_FILE}/PKG-INFO
+${PYSITELIB}/hidapi-${PKGVERSION}.7.99.post17${EGG_FILE}/SOURCES.txt
+${PYSITELIB}/hidapi-${PKGVERSION}.7.99.post17${EGG_FILE}/dependency_links.txt
+${PYSITELIB}/hidapi-${PKGVERSION}.7.99.post17${EGG_FILE}/requires.txt
+${PYSITELIB}/hidapi-${PKGVERSION}.7.99.post17${EGG_FILE}/top_level.txt
diff --git a/py-hidapi/TODO b/py-hidapi/TODO
new file mode 100644
index 0000000..1d51e11
--- /dev/null
+++ b/py-hidapi/TODO
@@ -0,0 +1,4 @@
+Add libusb option.
+Is cython only a build dependency?
+Add LICENSE-orig.txt to licenses?
+Use SUBST instead of patching setup.py.
diff --git a/py-hidapi/distinfo b/py-hidapi/distinfo
new file mode 100644
index 0000000..e8bb1d8
--- /dev/null
+++ b/py-hidapi/distinfo
@@ -0,0 +1,3 @@
+$NetBSD$
+
+SHA1 (patch-setup.py) = 001f7c9d96fd4bd41693c49604ad031e858fdb81
diff --git a/py-hidapi/patches/patch-setup.py b/py-hidapi/patches/patch-setup.py
new file mode 100644
index 0000000..d59b5ec
--- /dev/null
+++ b/py-hidapi/patches/patch-setup.py
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- setup.py.orig	2016-03-31 15:02:25.000000000 +0000
++++ setup.py
+@@ -64,7 +64,7 @@ if 'bsd' in sys.platform:
+     modules = [
+         Extension('hid',
+             sources = ['hid.pyx', 'chid.pxd', hidapi_src('libusb')],
+-            include_dirs = [hidapi_include, '/usr/include/libusb-1.0'],
++            include_dirs = [hidapi_include, '/usr/include/libusb-1.0', '/usr/pkg/include/libusb-1.0'],
+             libraries = ['usb-1.0'],
+         )
+     ]


Home | Main Index | Thread Index | Old Index