From nobody Sat Aug 17 20:44:56 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WmW7s2qlJz5TgK0; Sat, 17 Aug 2024 20:44:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WmW7s0744z4MDx; Sat, 17 Aug 2024 20:44:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723927497; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PqRW10T0muHYTtGTx5mYKEpJyJrDXQN+0k2FdNgtn+o=; b=AJtGiooC9x7+MQURN8XUcN5XSJmpr+S4dfAeg/aRFeUnvseFMTMC6pBDsu+/sEm9Zo2BzZ DBHiR+l/9KfWonihSmwfNqvfu5MQG+EnREO8a5qcSzA9LfXVvu7+D6avsruEOr9ntlwsR4 UY0eJVYDSAZpInLVQMlMcST8YrcthOM/mCwZX3KYDKU+GEUPMzeDoNtaGw5eS6PKfAtSXb 1wpgO6Fa/UtMjtt1FCJyBX5IlfjkThp7CGHONWfw+ElHvgwBQi9G+PYkb75RBjteUm3fFv nSKpX6s4pUeia3Q0ZfUBg7cmbffHbHewKFKGH51hTOX3uLcir8+47dpxM8LnbQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723927497; a=rsa-sha256; cv=none; b=J4vGx2EyxtVOr2U68w54nBPEgvsMxnSEct4dO63rhqBlR4aYPdbfFDrZHH0WHfQuME92Lb FaQTy6jLgddHlfaor0Cz8BwoBZomH81uEwhp9OLNmgx19EXgLdpaEbKi4mmUFDXoG1Ta2u yREZpqkHn7vA9TuvCjTp9GmlfRo7Xk8DREgTcpv1OgtAIagiVSul+v2aTgfmApJD2iviAM ncZKVTvP8UM53Hie0L1371bNb04+jK5hvvBPPYME9krQQRlLeGrEmB/rKXg9xOQhwuK2Tp 1/itlwFngPpEumB8sLt+JlULNDvRGcXMUkNERglyHl+78TZpb4PRdUhbDVPdsw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723927497; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PqRW10T0muHYTtGTx5mYKEpJyJrDXQN+0k2FdNgtn+o=; b=l98u+1WYp72/8bz8YphTwFmyTdNUyHD1XF/7NBVxfAjFWLCo7/0YO6xZ7QW0OovawkrKWm RT/u9Wvxft8wAQaPs9vkfeZPo+VueEZAQXgwjD5cXN+MCjIe3ZlhMPOhQRe6FO2KNnIPJC XAE1TSWjcIBFUCoRzqtpPCrt6PM6yKlaW9rWYNr0xhVwXjkueu1toQmQKwlCoFPeYAlVsz y4Qmk0KpfsZI7onrUZWFwm6khMCHcwtWdhAIIITeGfM4P7FJJIFiomoFrGVXd3QwreaPn3 D7aBUojcpFqvjMB0ElrTm11BokwyQ7QHtZM5blnLt6ZCy2AHFBQnQUHlP+InSw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WmW7r6pnxz14QV; Sat, 17 Aug 2024 20:44:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47HKiuCD043221; Sat, 17 Aug 2024 20:44:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47HKiu1G043218; Sat, 17 Aug 2024 20:44:56 GMT (envelope-from git) Date: Sat, 17 Aug 2024 20:44:56 GMT Message-Id: <202408172044.47HKiu1G043218@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Gleb Popov Subject: git: ca9ef62f5095 - main - devel/py-libusb-package: an installation vehicle for libusb shared libraries List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: arrowd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ca9ef62f50956a13231235801443e3ded8802ad6 Auto-Submitted: auto-generated The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=ca9ef62f50956a13231235801443e3ded8802ad6 commit ca9ef62f50956a13231235801443e3ded8802ad6 Author: Жунёва Мария Михайловна AuthorDate: 2024-08-12 17:26:14 +0000 Commit: Gleb Popov 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 --- 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 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.