Line 0
Link Here
|
|
|
1 |
# $FreeBSD$ |
2 |
|
3 |
PORTNAME= cassandra-driver |
4 |
DISTVERSION= 3.15.1 |
5 |
CATEGORIES= databases python |
6 |
MASTER_SITES= CHEESESHOP |
7 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
8 |
|
9 |
MAINTAINER= sergey@akhmatov.ru |
10 |
COMMENT= Python client library for Apache Cassandra |
11 |
|
12 |
LICENSE= APACHE20 |
13 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
14 |
|
15 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR} \ |
16 |
${PY_FUTURES} |
17 |
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${PY_FLAVOR} \ |
18 |
${PYTHON_PKGNAMEPREFIX}mock>=2.0.0:devel/py-mock@${PY_FLAVOR} \ |
19 |
${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \ |
20 |
${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR} \ |
21 |
${PYTHON_PKGNAMEPREFIX}sure>0:devel/py-sure@${PY_FLAVOR} |
22 |
|
23 |
USES= python |
24 |
USE_PYTHON= autoplist cython distutils |
25 |
|
26 |
OPTIONS_DEFINE= LIBEV MURMUR3 |
27 |
LIBEV_DESC= Use devel/libev for event loop |
28 |
MURMUR3_DESC= Enable murmur3 extension |
29 |
OPTIONS_DEFAULT= LIBEV MURMUR3 |
30 |
|
31 |
LIBEV_LIB_DEPENDS= libev.so:devel/libev |
32 |
LIBEV_VARS= STRIPFILES=${STAGEDIR}${PYTHON_SITELIBDIR}/cassandra/io/libevwrapper.so |
33 |
LIBEV_VARS_OFF= PYDISTUTILS_BUILDARGS+=--no-libev PYDISTUTILS_INSTALLARGS+=--no-libev |
34 |
|
35 |
MURMUR3_VARS_OFF= PYDISTUTILS_BUILDARGS+=--no-murmur3 PYDISTUTILS_INSTALLARGS+=--no-murmur3 |
36 |
|
37 |
post-install: |
38 |
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' | ${XARGS} ${STRIP_CMD} |
39 |
|
40 |
do-test: |
41 |
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test |
42 |
|
43 |
.include <bsd.port.mk> |