diff --git a/databases/py-hiredis/Makefile b/databases/py-hiredis/Makefile index dca662751805..7fffd042a732 100644 --- a/databases/py-hiredis/Makefile +++ b/databases/py-hiredis/Makefile @@ -1,22 +1,22 @@ # Created by: Denis Generalov PORTNAME= hiredis -PORTVERSION= 0.2.0 +PORTVERSION= 2.0.0 CATEGORIES= databases python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= gd.workbox@gmail.com COMMENT= Python extension that wraps hiredis LICENSE= BSD3CLAUSE LIB_DEPENDS= libhiredis.so:databases/hiredis USES= python:3.6+ USE_PYTHON= distutils autoplist post-patch: @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/${PYSETUP} .include diff --git a/databases/py-hiredis/distinfo b/databases/py-hiredis/distinfo index 819017feb32e..f8fd6ec61c8c 100644 --- a/databases/py-hiredis/distinfo +++ b/databases/py-hiredis/distinfo @@ -1,2 +1,3 @@ -SHA256 (hiredis-0.2.0.tar.gz) = ca958e13128e49674aa4a96f02746f5de5973f39b57297b84d59fd44d314d5b5 -SIZE (hiredis-0.2.0.tar.gz) = 46113 +TIMESTAMP = 1651161094 +SHA256 (hiredis-2.0.0.tar.gz) = 81d6d8e39695f2c37954d1011c0480ef7cf444d4e3ae24bc5e89ee5de360139a +SIZE (hiredis-2.0.0.tar.gz) = 75807 diff --git a/databases/py-hiredis/files/patch-setup.py b/databases/py-hiredis/files/patch-setup.py index 28a5f8da45e4..248919915e4a 100644 --- a/databases/py-hiredis/files/patch-setup.py +++ b/databases/py-hiredis/files/patch-setup.py @@ -1,21 +1,16 @@ ---- setup.py.orig 2015-04-03 14:08:45 UTC +--- setup.py.orig 2021-03-28 15:11:23 UTC +++ setup.py -@@ -45,7 +45,9 @@ lib = ("hiredis_for_hiredis_py", { +@@ -11,9 +11,10 @@ def version(): + return module.__version__ ext = Extension("hiredis.hiredis", - sources=glob.glob("src/*.c"), +- sources=sorted(glob.glob("src/*.c") + +- ["vendor/hiredis/%s.c" % src for src in ("alloc", "read", "sds")]), - include_dirs=["vendor"]) ++ sources=sorted(glob.glob("src/*.c")), + include_dirs=["%%LOCALBASE%%/include"], + library_dirs=["%%LOCALBASE%%/lib"], -+ libraries=["hiredis"],) ++ libraries=["hiredis"]) setup( name="hiredis", -@@ -57,7 +59,6 @@ setup( - keywords=["Redis"], - license="BSD", - packages=["hiredis"], -- libraries=[lib], - ext_modules=[ext], - - # Override "install_lib" command