mirror of
https://git.freebsd.org/ports.git
synced 2025-06-29 16:40:31 -04:00
net/py-oauth2: Clean up, modernize & add QA bits
- Take maintainership under python@'s wings - httplib2 is a RUN not BUILD dependency - Add TEST_DEPENDS and regression-test target - Limit to Python 2.x - Sort USE_PYTHON values - Add breadcrumb/notes to setup.py patch - Make pkg-descr a bit prettier
This commit is contained in:
parent
724c5bbc94
commit
e75dda1754
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=378838
3 changed files with 24 additions and 12 deletions
|
@ -3,20 +3,29 @@
|
||||||
|
|
||||||
PORTNAME= oauth2
|
PORTNAME= oauth2
|
||||||
PORTVERSION= 1.5.211
|
PORTVERSION= 1.5.211
|
||||||
PORTREVISION= 2
|
PORTREVISION= 3
|
||||||
CATEGORIES= net python
|
CATEGORIES= net python
|
||||||
MASTER_SITES= CHEESESHOP
|
MASTER_SITES= CHEESESHOP
|
||||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
|
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= python@FreeBSD.org
|
||||||
COMMENT= Python library for OAuth version 1.0
|
COMMENT= Python library for OAuth version 1.0
|
||||||
|
|
||||||
LICENSE= MIT
|
LICENSE= MIT
|
||||||
|
|
||||||
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httplib2>0:${PORTSDIR}/www/py-httplib2
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httplib2>0:${PORTSDIR}/www/py-httplib2
|
||||||
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
TEST_DEPENDS:= ${RUN_DEPENDS} \
|
||||||
|
${PYTHON_PKGNAMEPREFIX}coverage>0:${PORTSDIR}/devel/py-coverage \
|
||||||
|
${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock
|
||||||
|
|
||||||
USES= python
|
OPTIONS_DEFINE= TESTS
|
||||||
USE_PYTHON= distutils autoplist
|
TESTS_DESC= Install test suite requirements
|
||||||
|
TESTS_BUILD_DEPENDS= ${TEST_DEPENDS}
|
||||||
|
|
||||||
|
USES= python:-2.7
|
||||||
|
USE_PYTHON= autoplist distutils
|
||||||
|
|
||||||
|
regression-test: build
|
||||||
|
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
# This package installs its 'test' module in site-packages/. Patch it out
|
||||||
|
# so tests/ is excluded from installation
|
||||||
|
|
||||||
--- ./setup.py.orig 2014-03-15 23:48:44.604925965 +1100
|
--- ./setup.py.orig 2014-03-15 23:48:44.604925965 +1100
|
||||||
+++ ./setup.py 2014-03-15 23:49:01.462781884 +1100
|
+++ ./setup.py 2014-03-15 23:49:01.462781884 +1100
|
||||||
@@ -31,7 +31,7 @@
|
@@ -31,7 +31,7 @@
|
||||||
|
|
Loading…
Add table
Reference in a new issue