aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsbz <sbz@FreeBSD.org>2014-07-23 17:55:11 +0800
committersbz <sbz@FreeBSD.org>2014-07-23 17:55:11 +0800
commit2f542511565055a99c118a867a2bd8641fb5c2e9 (patch)
treea858ba916f87a9f0eabbc1627c561d3735a55f4d
parent08fee0328047e79c45f02aba14450e772cf23511 (diff)
downloadfreebsd-ports-gnome-2f542511565055a99c118a867a2bd8641fb5c2e9.tar.gz
freebsd-ports-gnome-2f542511565055a99c118a867a2bd8641fb5c2e9.tar.zst
freebsd-ports-gnome-2f542511565055a99c118a867a2bd8641fb5c2e9.zip
- Update to 1.0.0b1 [1]
- Switch to GITHUB PR: ports/188633 [1] Submitted by: Uffe Jakobsen <uffe at uffe.org>
-rw-r--r--devel/py-usb/Makefile27
-rw-r--r--devel/py-usb/distinfo4
-rw-r--r--devel/py-usb/pkg-descr6
3 files changed, 23 insertions, 14 deletions
diff --git a/devel/py-usb/Makefile b/devel/py-usb/Makefile
index 82768e8a0739..e5a7a7047850 100644
--- a/devel/py-usb/Makefile
+++ b/devel/py-usb/Makefile
@@ -1,27 +1,36 @@
# $FreeBSD$
PORTNAME= usb
-PORTVERSION= 0.4.3
+PORTVERSION= 1.0.0b1
CATEGORIES= devel python
-MASTER_SITES= SF
-MASTER_SITE_SUBDIR= py${PORTNAME}/PyUSB%200.x/${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-DISTNAME= py${PORTNAME}-${PORTVERSION}
MAINTAINER= sbz@FreeBSD.org
COMMENT= Python wrapper around libusb
+LICENSE= BSD3CLAUSE
+
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
-EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
-PORTEXAMPLES= *
+USE_GITHUB= yes
+GH_ACCOUNT= walac
+GH_PROJECT= ${PKGNAMEPREFIX:C/...$//}${PORTNAME}
+GH_COMMIT= 0546cad
+GH_TAGNAME= ${GH_COMMIT}
+
+DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX:C/...$//}-${PORTNAME}
+PORTDOCS= *.rst
-OPTIONS_DEFINE= EXAMPLES
+OPTIONS_DEFINE= DOCS
post-install:
- @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/samples/* ${STAGEDIR}${EXAMPLESDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/docs/,} ${STAGEDIR}${DOCSDIR}
+
+regression-test: extract
+ @(cd ${WRKSRC}/tests && ${PYTHON_CMD} testall.py)
.include <bsd.port.mk>
diff --git a/devel/py-usb/distinfo b/devel/py-usb/distinfo
index 1590ae8ed16d..6f667fe5656e 100644
--- a/devel/py-usb/distinfo
+++ b/devel/py-usb/distinfo
@@ -1,2 +1,2 @@
-SHA256 (pyusb-0.4.3.tar.gz) = 3c08b292886b7001ab088345af4d0dfe3e7d37bfc4b2bdcd7edb564ea3ef04d5
-SIZE (pyusb-0.4.3.tar.gz) = 16242
+SHA256 (usb-1.0.0b1.tar.gz) = adea994a57bb6686be4679eff6db1d700e850724ad852343526e5b46ed564d25
+SIZE (usb-1.0.0b1.tar.gz) = 51144
diff --git a/devel/py-usb/pkg-descr b/devel/py-usb/pkg-descr
index 6dc1c5f93b67..b15fa1b8d04b 100644
--- a/devel/py-usb/pkg-descr
+++ b/devel/py-usb/pkg-descr
@@ -1,4 +1,4 @@
-PyUSB is a native Python module written in C (meanwhile, because the next major
-version will use ctypes), that provides USB access for it.
+PyUSB aims to be an easy to use Python module to access USB devices. PyUSB
+relies on a native system library for USB access.
-WWW: http://pyusb.berlios.de/
+WWW: http://walac.github.io/pyusb/