From 233a6cef9171980aa692c30cca2deae035b6100a Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sat, 14 Apr 2018 00:57:58 +0000 Subject: [PATCH] devel/py-libusb115: drop due to lack of consumers --- MOVED | 1 + devel/Makefile | 1 - devel/py-libusb115/Makefile | 14 -------------- devel/py-libusb115/distinfo | 3 --- devel/py-libusb115/files/patch-usb1.py | 26 -------------------------- 5 files changed, 1 insertion(+), 44 deletions(-) delete mode 100644 devel/py-libusb115/Makefile delete mode 100644 devel/py-libusb115/distinfo delete mode 100644 devel/py-libusb115/files/patch-usb1.py diff --git a/MOVED b/MOVED index 1612ed86c0c4..97b8bd6594df 100644 --- a/MOVED +++ b/MOVED @@ -10144,3 +10144,4 @@ textproc/elasticsearch-river-rabbitmq||2018-04-09|ElasticSearch 1.x End of Life devel/libkgapi|devel/libkgapi-kde4|2018-04-11|Make room for KDE updates finance/libalkimia|finance/alkimia-qt4|2018-04-13|Project renamed security/py-zxcvbn-python|security/py-zxcvbn|2018-04-13|Renamed upstream +devel/py-libusb115|devel/py-libusb1|2018-04-14|Unused and unmaintained upstream diff --git a/devel/Makefile b/devel/Makefile index 03ab3131b8a1..9e93324f6a7f 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4612,7 +4612,6 @@ SUBDIR += py-libtaxii SUBDIR += py-libtmux SUBDIR += py-libusb1 - SUBDIR += py-libusb115 SUBDIR += py-libversion SUBDIR += py-libvirt SUBDIR += py-libzfs diff --git a/devel/py-libusb115/Makefile b/devel/py-libusb115/Makefile deleted file mode 100644 index 0a2973342682..000000000000 --- a/devel/py-libusb115/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $FreeBSD$ - -PORTVERSION= 1.5.3 -PKGNAMESUFFIX= 15 - -MASTERDIR= ${.CURDIR}/../py-libusb1 -DISTINFO_FILE= ${.CURDIR}/distinfo -PATCHDIR= ${.CURDIR}/files - -CONFLICTS_INSTALL= ${PKGNAMEPREFIX}${PORTNAME} - -PORTSCOUT= limit:^1\.5\. - -.include "${MASTERDIR}/Makefile" diff --git a/devel/py-libusb115/distinfo b/devel/py-libusb115/distinfo deleted file mode 100644 index 2faaafcdc2a9..000000000000 --- a/devel/py-libusb115/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -TIMESTAMP = 1474053011 -SHA256 (libusb1-1.5.3.tar.gz) = 85f6bbf9fcfe9421f99864f20a37eacb00f30b8a7c29adc6b2a163bde29649ea -SIZE (libusb1-1.5.3.tar.gz) = 53409 diff --git a/devel/py-libusb115/files/patch-usb1.py b/devel/py-libusb115/files/patch-usb1.py deleted file mode 100644 index a47c742bd960..000000000000 --- a/devel/py-libusb115/files/patch-usb1.py +++ /dev/null @@ -1,26 +0,0 @@ -https://lists.freebsd.org/pipermail/freebsd-usb/2015-January/013586.html - ---- usb1.py.orig 2015-08-15 17:59:35 UTC -+++ usb1.py -@@ -1729,15 +1729,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]) -