aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--databases/py-leveldb/Makefile11
-rw-r--r--databases/py-leveldb/distinfo5
-rw-r--r--databases/py-leveldb/files/patch-setup.py16
-rw-r--r--databases/py-leveldb/pkg-descr2
4 files changed, 23 insertions, 11 deletions
diff --git a/databases/py-leveldb/Makefile b/databases/py-leveldb/Makefile
index ce58aef1f669..433de11e6d8f 100644
--- a/databases/py-leveldb/Makefile
+++ b/databases/py-leveldb/Makefile
@@ -2,23 +2,18 @@
# $FreeBSD$
PORTNAME= leveldb
-PORTVERSION= 0.1.20130428
-PORTREVISION= 3
+PORTVERSION= 0.20
CATEGORIES= databases python
-MASTER_SITES= LOCAL/sunpoet
+MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-DISTNAME= py-${PORTNAME}-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Thread-safe Python binding for LevelDB
LICENSE= BSD3CLAUSE
-LICENSE_FILE= ${WRKSRC}/LICENSE
-
-LIB_DEPENDS= libleveldb.so:databases/leveldb
USE_PYTHON= autoplist concurrent distutils
-USES= localbase python tar:xz
+USES= python
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/leveldb.so
diff --git a/databases/py-leveldb/distinfo b/databases/py-leveldb/distinfo
index 631e3feb91d4..7fe0fd6b4dc4 100644
--- a/databases/py-leveldb/distinfo
+++ b/databases/py-leveldb/distinfo
@@ -1,2 +1,3 @@
-SHA256 (py-leveldb-0.1.20130428.tar.xz) = bf7509b59497e54aa367e3b63d54516be881c86382da1866781499a7a5b75a3b
-SIZE (py-leveldb-0.1.20130428.tar.xz) = 13744
+TIMESTAMP = 1483295328
+SHA256 (leveldb-0.20.tar.gz) = 9ffc9b68c8c0e0a996e2409e4a95ef1fbb4dcf0f6040b21b9153cbd57c90e079
+SIZE (leveldb-0.20.tar.gz) = 235491
diff --git a/databases/py-leveldb/files/patch-setup.py b/databases/py-leveldb/files/patch-setup.py
new file mode 100644
index 000000000000..621de1f10853
--- /dev/null
+++ b/databases/py-leveldb/files/patch-setup.py
@@ -0,0 +1,16 @@
+--- setup.py.orig 2016-12-27 23:05:34 UTC
++++ setup.py
+@@ -31,11 +31,11 @@ if system == 'Darwin':
+ '-DLEVELDB_PLATFORM_POSIX',
+ '-Wno-error=unused-command-line-argument-hard-error-in-future',
+ ]
+-elif system == 'Linux':
++elif system == 'FreeBSD':
+ extra_compile_args = common_flags + [
+ '-pthread',
+ '-Wall',
+- '-DOS_LINUX',
++ '-DOS_FREEBSD',
+ '-DLEVELDB_PLATFORM_POSIX',
+ ]
+ else:
diff --git a/databases/py-leveldb/pkg-descr b/databases/py-leveldb/pkg-descr
index 4df144dd63b7..967d97bfe224 100644
--- a/databases/py-leveldb/pkg-descr
+++ b/databases/py-leveldb/pkg-descr
@@ -4,4 +4,4 @@ from the LevelDB API, except for:
- Snapshots
- All iteration except for single-step forward
-WWW: http://code.google.com/p/py-leveldb/
+WWW: https://pypi.python.org/pypi/leveldb