mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
71b7c43c33
- Switch to GITHUB PR: ports/188633 [1] Submitted by: Uffe Jakobsen <uffe at uffe.org>
37 lines
787 B
Makefile
37 lines
787 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= usb
|
|
PORTVERSION= 1.0.0b1
|
|
CATEGORIES= devel python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= sbz@FreeBSD.org
|
|
COMMENT= Python wrapper around libusb
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
PYDISTUTILS_AUTOPLIST= yes
|
|
|
|
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= DOCS
|
|
|
|
post-install:
|
|
@${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>
|