summaryrefslogtreecommitdiff
path: root/devel/py-cachecontrol/Makefile
blob: 8384affb4868b7dce844396c5e293fb7326d1d81 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>

PORTNAME=	cachecontrol
PORTVERSION=	0.12.10
CATEGORIES=	devel python
MASTER_SITES=	CHEESESHOP
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	CacheControl-${PORTVERSION}

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	httplib2 caching for requests

LICENSE=	APACHE20

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}msgpack>=0.5.2:devel/py-msgpack@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR}

USES=		python:3.6+
USE_PYTHON=	autoplist concurrent distutils

CONFLICTS_INSTALL=	py*-CacheControl

NO_ARCH=	yes

OPTIONS_DEFINE=	FILECACHE REDIS
OPTIONS_DEFAULT=FILECACHE
FILECACHE_DESC=	FileCache support
REDIS_DESC=	Redis support

FILECACHE_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}lockfile>=0.9:devel/py-lockfile@${PY_FLAVOR}
REDIS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}redis>=2.10.5:databases/py-redis@${PY_FLAVOR}

.include <bsd.port.mk>