summaryrefslogtreecommitdiff
path: root/databases/py-hiredis
diff options
context:
space:
mode:
Diffstat (limited to 'databases/py-hiredis')
-rw-r--r--databases/py-hiredis/Makefile3
-rw-r--r--databases/py-hiredis/distinfo6
-rw-r--r--databases/py-hiredis/files/patch-setup.py32
3 files changed, 25 insertions, 16 deletions
diff --git a/databases/py-hiredis/Makefile b/databases/py-hiredis/Makefile
index 91b010f7c7bd..6044993ccbb1 100644
--- a/databases/py-hiredis/Makefile
+++ b/databases/py-hiredis/Makefile
@@ -1,5 +1,6 @@
PORTNAME= hiredis
-PORTVERSION= 2.0.0
+PORTVERSION= 3.0.0
+PORTREVISION= 1
CATEGORIES= databases python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/databases/py-hiredis/distinfo b/databases/py-hiredis/distinfo
index f8fd6ec61c8c..951b860bea36 100644
--- a/databases/py-hiredis/distinfo
+++ b/databases/py-hiredis/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1651161094
-SHA256 (hiredis-2.0.0.tar.gz) = 81d6d8e39695f2c37954d1011c0480ef7cf444d4e3ae24bc5e89ee5de360139a
-SIZE (hiredis-2.0.0.tar.gz) = 75807
+TIMESTAMP = 1723278447
+SHA256 (hiredis-3.0.0.tar.gz) = fed8581ae26345dea1f1e0d1a96e05041a727a45e7d8d459164583e23c6ac441
+SIZE (hiredis-3.0.0.tar.gz) = 87581
diff --git a/databases/py-hiredis/files/patch-setup.py b/databases/py-hiredis/files/patch-setup.py
index 248919915e4a..5ae9a3fc2bb4 100644
--- a/databases/py-hiredis/files/patch-setup.py
+++ b/databases/py-hiredis/files/patch-setup.py
@@ -1,16 +1,24 @@
---- setup.py.orig 2021-03-28 15:11:23 UTC
+--- setup.py.orig 2024-07-19 12:05:48 UTC
+++ setup.py
-@@ -11,9 +11,10 @@ def version():
- return module.__version__
+@@ -18,8 +18,7 @@ def get_sources():
- ext = Extension("hiredis.hiredis",
-- 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"])
+
+ def get_sources():
+- hiredis_sources = ("alloc", "async", "hiredis", "net", "read", "sds", "sockcompat")
+- return sorted(glob.glob("src/*.c") + ["vendor/hiredis/%s.c" % src for src in hiredis_sources])
++ return sorted(glob.glob("src/*.c"))
+
+
+ def get_linker_args():
+@@ -47,8 +46,9 @@ ext = Extension("hiredis.hiredis",
+ sources=get_sources(),
+ extra_compile_args=get_compiler_args(),
+ extra_link_args=get_linker_args(),
+- libraries=get_libraries(),
+- include_dirs=["vendor"])
++ include_dirs=["/usr/local/include"],
++ library_dirs=["/usr/local/lib"],
++ libraries=["hiredis"])
setup(
- name="hiredis",
+ name="hiredis",