aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorrm <rm@FreeBSD.org>2012-09-30 03:53:11 +0800
committerrm <rm@FreeBSD.org>2012-09-30 03:53:11 +0800
commit066232a5de4f31c91fc3ae3abe7b9405fb965019 (patch)
tree8766a366172234ca03a5f8906cc06defe634939d /databases
parent5b93a5fe073e5207199e7d6db2e7dc497beb27f3 (diff)
downloadfreebsd-ports-gnome-066232a5de4f31c91fc3ae3abe7b9405fb965019.tar.gz
freebsd-ports-gnome-066232a5de4f31c91fc3ae3abe7b9405fb965019.tar.zst
freebsd-ports-gnome-066232a5de4f31c91fc3ae3abe7b9405fb965019.zip
- make it build against system hiredis, instead of bundled one
- bump PORTREVISION because of dependency change while here: - trim Makefile header - tab -> space change in pkg-descr:WWW PR: 172090 Submitted by: Kubilay Kocak <koobs.freebsd at gmail dot com> Approved by: Denis Generalov <gd at rambler-co dot ru> (maintainer)
Diffstat (limited to 'databases')
-rw-r--r--databases/py-hiredis/Makefile10
-rw-r--r--databases/py-hiredis/files/patch-setup.py26
-rw-r--r--databases/py-hiredis/pkg-descr2
3 files changed, 32 insertions, 6 deletions
diff --git a/databases/py-hiredis/Makefile b/databases/py-hiredis/Makefile
index 2fda5dde27cf..dfa636c80e09 100644
--- a/databases/py-hiredis/Makefile
+++ b/databases/py-hiredis/Makefile
@@ -1,12 +1,9 @@
-# New ports collection makefile for: py-hiredis
-# Date created: 2012-06-01
-# Whom: Denis Generalov <gd@rambler-co.ru>
-#
+# Created by: Denis Generalov <gd@rambler-co.ru>
# $FreeBSD$
-#
PORTNAME= hiredis
PORTVERSION= 0.1.1
+PORTREVISION= 1
CATEGORIES= databases python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -30,4 +27,7 @@ PLIST_FILES= %%PYTHON_SITELIBDIR%%/hiredis/__init__.py \
%%PYTHON_SITELIBDIR%%/hiredis/version.pyo
PLIST_DIRS= %%PYTHON_SITELIBDIR%%/hiredis
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/${PYSETUP}
+
.include <bsd.port.mk>
diff --git a/databases/py-hiredis/files/patch-setup.py b/databases/py-hiredis/files/patch-setup.py
new file mode 100644
index 000000000000..14cafd12e189
--- /dev/null
+++ b/databases/py-hiredis/files/patch-setup.py
@@ -0,0 +1,26 @@
+--- ./setup.py.orig 2012-04-18 04:54:11.000000000 +1000
++++ ./setup.py 2012-09-25 21:54:06.000000000 +1000
+@@ -20,13 +20,10 @@
+ if self.distribution.has_ext_modules():
+ self.run_command('build_ext')
+
+-lib = ("hiredis", {
+- "sources": ["vendor/hiredis/%s.c" % src for src in ("hiredis", "net", "sds")],
+- "include_dirs": ["vendor/hiredis"]})
+-
+ ext = Extension("hiredis.hiredis",
+ sources=glob.glob("src/*.c"),
+- include_dirs=["src", "vendor"],
++ include_dirs=["src", "%%LOCALBASE%%/include"],
++ library_dirs=["%%LOCALBASE%%/lib"],
+ libraries=["hiredis"])
+
+ setup(
+@@ -39,7 +36,6 @@
+ keywords=["Redis"],
+ license="BSD",
+ packages=["hiredis"],
+- libraries=[lib],
+ ext_modules=[ext],
+
+ # Override "install_lib" command
diff --git a/databases/py-hiredis/pkg-descr b/databases/py-hiredis/pkg-descr
index fc12abb4e458..58c2a0c11da2 100644
--- a/databases/py-hiredis/pkg-descr
+++ b/databases/py-hiredis/pkg-descr
@@ -1,3 +1,3 @@
Python extension that wraps hiredis.
-WWW: https://github.com/pietern/hiredis-py
+WWW: https://github.com/pietern/hiredis-py