- Update PORTVERSION and distinfo checksum (3.4.0) - Add LICENSE_FILE - Update RUN_DEPENDS - Update TEST_DEPENDS and test target. - Enable "concurrent" Python version installation - Patch setup.py to relax dependency versions Changes: https://praw.readthedocs.org/en/stable/pages/changelog.html
36 lines
961 B
Makefile
36 lines
961 B
Makefile
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= praw
|
|
PORTVERSION= 3.4.0
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= www python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= koobs@FreeBSD.org
|
|
COMMENT= Python Reddit API Wrapper
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}decorator>=4.0.9:${PORTSDIR}/devel/py-decorator \
|
|
${PYTHON_PKGNAMEPREFIX}requests>=2.3.0:${PORTSDIR}/www/py-requests \
|
|
${PYTHON_PKGNAMEPREFIX}six>=1.10:${PORTSDIR}/devel/py-six \
|
|
${PYTHON_PKGNAMEPREFIX}update_checker>=0.11:${PORTSDIR}/devel/py-update_checker
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>=1.0.1:${PORTSDIR}/devel/py-mock
|
|
|
|
# TEST_DEPENDS to be ported
|
|
# betamax >=0.5.1
|
|
# betamax-matchers >=0.2.0
|
|
# betamax-serializers >=0.1.1
|
|
|
|
USES= python
|
|
USE_GITHUB= yes
|
|
USE_PYTHON= autoplist concurrent distutils
|
|
|
|
GH_ACCOUNT= praw-dev
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
|
|
|
|
.include <bsd.port.mk>
|