Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jul 2014 09:55:12 +0000 (UTC)
From:      Sofian Brabez <sbz@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r362646 - head/devel/py-usb
Message-ID:  <201407230955.s6N9tCBE059834@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sbz
Date: Wed Jul 23 09:55:11 2014
New Revision: 362646
URL: http://svnweb.freebsd.org/changeset/ports/362646
QAT: https://qat.redports.org/buildarchive/r362646/

Log:
  - Update to 1.0.0b1 [1]
  - Switch to GITHUB
  
  PR:		ports/188633 [1]
  Submitted by:	Uffe Jakobsen <uffe at uffe.org>

Modified:
  head/devel/py-usb/Makefile
  head/devel/py-usb/distinfo
  head/devel/py-usb/pkg-descr

Modified: head/devel/py-usb/Makefile
==============================================================================
--- head/devel/py-usb/Makefile	Wed Jul 23 09:54:02 2014	(r362645)
+++ head/devel/py-usb/Makefile	Wed Jul 23 09:55:11 2014	(r362646)
@@ -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>

Modified: head/devel/py-usb/distinfo
==============================================================================
--- head/devel/py-usb/distinfo	Wed Jul 23 09:54:02 2014	(r362645)
+++ head/devel/py-usb/distinfo	Wed Jul 23 09:55:11 2014	(r362646)
@@ -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

Modified: head/devel/py-usb/pkg-descr
==============================================================================
--- head/devel/py-usb/pkg-descr	Wed Jul 23 09:54:02 2014	(r362645)
+++ head/devel/py-usb/pkg-descr	Wed Jul 23 09:55:11 2014	(r362646)
@@ -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/



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