mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
devel/py-libusb1: update to 1.6.4
devel/py-adb stays on the old version due to google/python-adb#36 Changes: https://pypi.python.org/pypi/libusb1#id60
This commit is contained in:
parent
7ecb7e6e18
commit
d3020eab78
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=433284
8 changed files with 50 additions and 5 deletions
|
@ -4355,6 +4355,7 @@
|
|||
SUBDIR += py-libpeas
|
||||
SUBDIR += py-libplist
|
||||
SUBDIR += py-libusb1
|
||||
SUBDIR += py-libusb115
|
||||
SUBDIR += py-libvirt
|
||||
SUBDIR += py-libzfs
|
||||
SUBDIR += py-linecache2
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
PORTNAME= adb
|
||||
DISTVERSION= 1.1.1-37
|
||||
DISTVERSIONSUFFIX= -gfb09de9
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel comms python
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
|
@ -11,7 +12,7 @@ COMMENT= Pure-python implementation of ADB and Fastboot protocols
|
|||
|
||||
LICENSE= APACHE20
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}libusb1>=1.0.16:devel/py-libusb1 \
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}libusb115>=1.0.16:devel/py-libusb115 \
|
||||
${PYTHON_PKGNAMEPREFIX}m2crypto>=0.21.1:security/py-m2crypto
|
||||
|
||||
USE_GITHUB= yes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= libusb1
|
||||
PORTVERSION= 1.5.3
|
||||
PORTVERSION?= 1.6.4
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
@ -11,6 +11,8 @@ COMMENT= Pure-python wrapper for libusb-1.0
|
|||
|
||||
LICENSE= LGPL21+
|
||||
|
||||
CONFLICTS_INSTALL?= ${PKGNAMEPREFIX}${PORTNAME}15
|
||||
|
||||
NO_ARCH= yes
|
||||
USES= python
|
||||
USE_PYTHON= autoplist distutils
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
TIMESTAMP = 1474053011
|
||||
SHA256 (libusb1-1.5.3.tar.gz) = 85f6bbf9fcfe9421f99864f20a37eacb00f30b8a7c29adc6b2a163bde29649ea
|
||||
SIZE (libusb1-1.5.3.tar.gz) = 53409
|
||||
TIMESTAMP = 1486131645
|
||||
SHA256 (libusb1-1.6.4.tar.gz) = 8c930d9c1d037d9c83924c82608aa6a1adcaa01ca0e4a23ee0e8e18d7eee670d
|
||||
SIZE (libusb1-1.6.4.tar.gz) = 55491
|
||||
|
|
26
devel/py-libusb1/files/patch-usb1_____init____.py
Normal file
26
devel/py-libusb1/files/patch-usb1_____init____.py
Normal file
|
@ -0,0 +1,26 @@
|
|||
https://lists.freebsd.org/pipermail/freebsd-usb/2015-January/013586.html
|
||||
|
||||
--- usb1/__init__.py.orig 2016-11-23 13:07:52 UTC
|
||||
+++ usb1/__init__.py
|
||||
@@ -1830,15 +1830,20 @@ class USBDevice(object):
|
||||
"""
|
||||
Get device's port number.
|
||||
"""
|
||||
- return libusb1.libusb_get_port_number(self.device_p)
|
||||
+ try:
|
||||
+ return libusb1.libusb_get_port_number(self.device_p)
|
||||
+ except AttributeError:
|
||||
+ return 0
|
||||
|
||||
def getPortNumberList(self):
|
||||
"""
|
||||
Get the port number of each hub toward device.
|
||||
"""
|
||||
port_list = (c_uint8 * PATH_MAX_DEPTH)()
|
||||
+ temp_handle = self.open()
|
||||
result = libusb1.libusb_get_port_numbers(
|
||||
self.device_p, port_list, len(port_list))
|
||||
+ temp_handle.close()
|
||||
mayRaiseUSBError(result)
|
||||
return list(port_list[:result])
|
||||
|
12
devel/py-libusb115/Makefile
Normal file
12
devel/py-libusb115/Makefile
Normal file
|
@ -0,0 +1,12 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTVERSION= 1.5.3
|
||||
PKGNAMESUFFIX= 15
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../py-libusb1
|
||||
DISTINFO_FILE= ${.CURDIR}/distinfo
|
||||
PATCHDIR= ${.CURDIR}/files
|
||||
|
||||
CONFLICTS_INSTALL= ${PKGNAMEPREFIX}${PORTNAME}
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
3
devel/py-libusb115/distinfo
Normal file
3
devel/py-libusb115/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1474053011
|
||||
SHA256 (libusb1-1.5.3.tar.gz) = 85f6bbf9fcfe9421f99864f20a37eacb00f30b8a7c29adc6b2a163bde29649ea
|
||||
SIZE (libusb1-1.5.3.tar.gz) = 53409
|
Loading…
Add table
Reference in a new issue