1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

- 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)
This commit is contained in:
Ruslan Makhmatkhanov 2012-09-29 19:53:11 +00:00
parent 30cf8b7706
commit ef303ed857
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=305050
3 changed files with 32 additions and 6 deletions

View File

@ -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>

View File

@ -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

View File

@ -1,3 +1,3 @@
Python extension that wraps hiredis.
WWW: https://github.com/pietern/hiredis-py
WWW: https://github.com/pietern/hiredis-py