While we prefer using CHEESESHOP when souces are provided there, in the event it's missing valuable files such as tests, test data, LICENCE, it is preferable and more robust to use an alternative source entirely, than a combination of CHEESESHOP (or anything else) combined with another source for specific files, which can cause issues [1] This change switches to USE_GITHUB and removes unecessary and associated Makefile entries accordingly. [1] ports r516897 See Also: https://github.com/patrys/httmock/pull/59 PR: 242694 Submitted by: Derek Schrock <dereks lifeofadishwasher com> MFH: 2019Q4 (blanket: fetch/build fix) MFH-With: r516897
27 lines
545 B
Makefile
27 lines
545 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= httmock
|
|
PORTVERSION= 1.3.0
|
|
CATEGORIES= www python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= dereks@lifeofadishwasher.com
|
|
COMMENT= Mocking library for requests
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=1.0.0:www/py-requests@${PY_FLAVOR}
|
|
|
|
USES= python
|
|
USE_GITHUB= yes # tests missing from PyPI sdist
|
|
USE_PYTHON= distutils autoplist
|
|
|
|
GH_ACCOUNT= patrys
|
|
|
|
NO_ARCH= yes
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
|
|
|
|
.include <bsd.port.mk>
|