d95c946543
standardise and canonicalise Makefile header format and contents. Approved by: eadler (mentor)
41 lines
898 B
Makefile
41 lines
898 B
Makefile
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= rauth
|
|
PORTVERSION= 0.4.17
|
|
CATEGORIES= devel www python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= koobs@FreeBSD.org
|
|
COMMENT= A Python library for OAuth 1.0/a, 2.0, and Ofly consumers
|
|
|
|
LICENSE= MIT
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>0.12.0:${PORTSDIR}/www/py-requests
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= litl
|
|
GH_COMMIT= 219d35f
|
|
|
|
OPTIONS_DEFINE= TESTS
|
|
TESTS_DESC= Install tools for unit testing
|
|
OPTIONSFILE?= ${PORT_DBDIR}/py-${PORTNAME}/options
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MTESTS}
|
|
BUILD_DEPENDS:= ${TEST_DEPENDS}
|
|
.endif
|
|
|
|
# Python3 ready
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= easy_install
|
|
|
|
TEST_DEPENDS:= ${RUN_DEPENDS} \
|
|
nosetests:${PORTSDIR}/devel/py-nose \
|
|
${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock
|
|
|
|
regression-test: build
|
|
@cd ${WRKSRC} && nosetests
|
|
|
|
.include <bsd.port.mk>
|