[Midnightbsd-cvs] mports [24767] trunk/databases: add cassandra driver
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Jan 6 14:39:43 EST 2019
Revision: 24767
http://svnweb.midnightbsd.org/mports/?rev=24767
Author: laffer1
Date: 2019-01-06 14:39:42 -0500 (Sun, 06 Jan 2019)
Log Message:
-----------
add cassandra driver
Modified Paths:
--------------
trunk/databases/Makefile
Added Paths:
-----------
trunk/databases/py-cassandra-driver/
trunk/databases/py-cassandra-driver/Makefile
trunk/databases/py-cassandra-driver/distinfo
trunk/databases/py-cassandra-driver/files/
trunk/databases/py-cassandra-driver/files/patch-setup.py
trunk/databases/py-cassandra-driver/pkg-descr
Modified: trunk/databases/Makefile
===================================================================
--- trunk/databases/Makefile 2019-01-06 18:13:39 UTC (rev 24766)
+++ trunk/databases/Makefile 2019-01-06 19:39:42 UTC (rev 24767)
@@ -149,6 +149,7 @@
SUBDIR += py-MySQLdb
SUBDIR += py-bsddb
SUBDIR += py-bsddb3
+SUBDIR += py-cassandra-driver
SUBDIR += py-gdbm
SUBDIR += py-mysql2pgsql
SUBDIR += py-postgresql
Added: trunk/databases/py-cassandra-driver/Makefile
===================================================================
--- trunk/databases/py-cassandra-driver/Makefile (rev 0)
+++ trunk/databases/py-cassandra-driver/Makefile 2019-01-06 19:39:42 UTC (rev 24767)
@@ -0,0 +1,46 @@
+# $MidnightBSD$
+# $FreeBSD: head/databases/py-cassandra-driver/Makefile 485533 2018-11-21 19:38:13Z swills $
+
+PORTNAME= cassandra-driver
+DISTVERSION= 3.16.0
+PORTREVISION= 0
+CATEGORIES= databases python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Python client library for Apache Cassandra
+
+LICENSE= apache2
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose \
+ ${PYTHON_PKGNAMEPREFIX}mock>=2.0.0:devel/py-mock \
+ ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml \
+ ${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz \
+ ${PYTHON_PKGNAMEPREFIX}sure>0:devel/py-sure
+
+USES= python:3
+USE_PYTHON= autoplist cython distutils
+
+OPTIONS_DEFINE= LIBEV MURMUR3
+LIBEV_DESC= Use devel/libev for event loop
+MURMUR3_DESC= Enable murmur3 extension
+OPTIONS_DEFAULT= LIBEV MURMUR3
+
+LIBEV_LIB_DEPENDS= libev.so:devel/libev
+LIBEV_VARS= STRIPFILES=${STAGEDIR}${PYTHON_SITELIBDIR}/cassandra/io/libevwrapper.so
+LIBEV_VARS_OFF= PYDISTUTILS_BUILDARGS+=--no-libev PYDISTUTILS_INSTALLARGS+=--no-libev
+
+MURMUR3_VARS_OFF= PYDISTUTILS_BUILDARGS+=--no-murmur3 PYDISTUTILS_INSTALLARGS+=--no-murmur3
+
+.include <bsd.mport.options.mk>
+
+post-install:
+ ${FIND} ${FAKE_DESTDIR}${PYTHON_SITELIBDIR} -name '*.so' | ${XARGS} ${STRIP_CMD}
+
+do-test:
+ @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+
+.include <bsd.port.mk>
Property changes on: trunk/databases/py-cassandra-driver/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/databases/py-cassandra-driver/distinfo
===================================================================
--- trunk/databases/py-cassandra-driver/distinfo (rev 0)
+++ trunk/databases/py-cassandra-driver/distinfo 2019-01-06 19:39:42 UTC (rev 24767)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1542618758
+SHA256 (cassandra-driver-3.16.0.tar.gz) = 42bcb167a90da6604081872ef609a327a63273842da81120fc462de031155abe
+SIZE (cassandra-driver-3.16.0.tar.gz) = 229652
Property changes on: trunk/databases/py-cassandra-driver/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/databases/py-cassandra-driver/files/patch-setup.py
===================================================================
--- trunk/databases/py-cassandra-driver/files/patch-setup.py (rev 0)
+++ trunk/databases/py-cassandra-driver/files/patch-setup.py 2019-01-06 19:39:42 UTC (rev 24767)
@@ -0,0 +1,11 @@
+--- setup.py.orig 2018-10-31 06:47:06 UTC
++++ setup.py
+@@ -395,7 +395,7 @@ def run_setup(extensions):
+ # 1.) build_ext eats errors at compile time, letting the install complete while producing useful feedback
+ # 2.) there could be a case where the python environment has cython installed but the system doesn't have build tools
+ if pre_build_check():
+- cython_dep = 'Cython>=0.20,!=0.25,<0.29'
++ cython_dep = 'Cython>=0.20,!=0.25,<0.30'
+ user_specified_cython_version = os.environ.get('CASS_DRIVER_ALLOWED_CYTHON_VERSION')
+ if user_specified_cython_version is not None:
+ cython_dep = 'Cython==%s' % (user_specified_cython_version,)
Property changes on: trunk/databases/py-cassandra-driver/files/patch-setup.py
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/databases/py-cassandra-driver/pkg-descr
===================================================================
--- trunk/databases/py-cassandra-driver/pkg-descr (rev 0)
+++ trunk/databases/py-cassandra-driver/pkg-descr 2019-01-06 19:39:42 UTC (rev 24767)
@@ -0,0 +1,5 @@
+A modern, feature-rich and highly-tunable Python client library for
+Apache Cassandra (2.1+) using exclusively Cassandra's binary protocol
+and Cassandra Query Language v3.
+
+WWW: https://github.com/datastax/python-driver
Property changes on: trunk/databases/py-cassandra-driver/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list