Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Aug 2024 20:44:56 GMT
From:      Gleb Popov <arrowd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: ca9ef62f5095 - main - devel/py-libusb-package: an installation vehicle for libusb shared libraries
Message-ID:  <202408172044.47HKiu1G043218@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ca9ef62f50956a13231235801443e3ded8802ad6

commit ca9ef62f50956a13231235801443e3ded8802ad6
Author:     Жунёва Мария Михайловна <zhunyova@mts.ru>
AuthorDate: 2024-08-12 17:26:14 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-08-17 20:44:40 +0000

    devel/py-libusb-package: an installation vehicle for libusb shared libraries
    
    Sponsored by:   Serenity Cybersecurity, LLC
    Co-authored-by: Gleb Popov <arrowd@FreeBSD.org>
---
 devel/Makefile                                     |  1 +
 devel/py-libusb-package/Makefile                   | 29 ++++++++++++++++++++++
 devel/py-libusb-package/distinfo                   |  3 +++
 .../patch-src_libusb__package_____init____.py      | 10 ++++++++
 devel/py-libusb-package/pkg-descr                  |  5 ++++
 5 files changed, 48 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 59d662759203..e1e5e5f6f9f0 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5082,6 +5082,7 @@
     SUBDIR += py-libplist
     SUBDIR += py-libtaxii
     SUBDIR += py-libtmux
+    SUBDIR += py-libusb-package
     SUBDIR += py-libusb1
     SUBDIR += py-libversion
     SUBDIR += py-libvirt
diff --git a/devel/py-libusb-package/Makefile b/devel/py-libusb-package/Makefile
new file mode 100644
index 000000000000..9bba44e0efbd
--- /dev/null
+++ b/devel/py-libusb-package/Makefile
@@ -0,0 +1,29 @@
+PORTNAME=	libusb-package
+DISTVERSIONPREFIX=	v
+PORTVERSION=	1.0.26.2
+CATEGORIES=	devel python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	awoonyaa@gmail.com
+COMMENT=	An installation vehicle for libusb shared libraries
+WWW=		https://github.com/pyocd/libusb-package
+
+LICENSE=	APACHE20
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}tomli>0:textproc/py-tomli@${PY_FLAVOR}
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}importlib-resources>0:devel/py-importlib-resources@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pyusb>0:devel/py-pyusb@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	pyocd
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-libusb-package/distinfo b/devel/py-libusb-package/distinfo
new file mode 100644
index 000000000000..8a3fb28d8976
--- /dev/null
+++ b/devel/py-libusb-package/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1723481741
+SHA256 (pyocd-libusb-package-v1.0.26.2_GH0.tar.gz) = 00060efe95fd9034b3fe1e959269e5c45be0324e459ef1c7171229bde66223c4
+SIZE (pyocd-libusb-package-v1.0.26.2_GH0.tar.gz) = 15486
diff --git a/devel/py-libusb-package/files/patch-src_libusb__package_____init____.py b/devel/py-libusb-package/files/patch-src_libusb__package_____init____.py
new file mode 100644
index 000000000000..de04521a3899
--- /dev/null
+++ b/devel/py-libusb-package/files/patch-src_libusb__package_____init____.py
@@ -0,0 +1,10 @@
+--- src/libusb_package/__init__.py.orig	2023-06-11 19:21:48 UTC
++++ src/libusb_package/__init__.py
+@@ -37,6 +37,7 @@ _LIBRARY_MAP_EXT = {
+ _LIBRARY_MAP_EXT = {
+         'Darwin': '.dylib',
+         'Linux': '.so',
++        'FreeBSD': '.so',
+         'Windows': '.dll',
+     }
+ _LIBRARY_EXT = _LIBRARY_MAP_EXT.get(platform.system(), ".so")
diff --git a/devel/py-libusb-package/pkg-descr b/devel/py-libusb-package/pkg-descr
new file mode 100644
index 000000000000..2feede95f46a
--- /dev/null
+++ b/devel/py-libusb-package/pkg-descr
@@ -0,0 +1,5 @@
+This Python package functions as an installation vehicle for libusb shared
+libraries, to simplify installation of tools that require libusb. The main use
+case is so that users don't have to install libusb manually for projects that
+use pyusb. However, any Python project that uses a libusb wrapper can also
+benefit.



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