git: eeaf03e841b6 - main - databases/py-hiredis: update to version 2.0.0

From: Jimmy Olgeni <olgeni_at_FreeBSD.org>
Date: Fri, 29 Apr 2022 19:36:29 UTC
The branch main has been updated by olgeni:

URL: https://cgit.FreeBSD.org/ports/commit/?id=eeaf03e841b61dbea0cbea92b7b6126824d25dd5

commit eeaf03e841b61dbea0cbea92b7b6126824d25dd5
Author:     Jimmy Olgeni <olgeni@FreeBSD.org>
AuthorDate: 2022-04-29 13:59:19 +0000
Commit:     Jimmy Olgeni <olgeni@FreeBSD.org>
CommitDate: 2022-04-29 19:35:59 +0000

    databases/py-hiredis: update to version 2.0.0
    
    PR:             263649
    Reported by:    Sascha Biberhofer
---
 databases/py-hiredis/Makefile             |  2 +-
 databases/py-hiredis/distinfo             |  5 +++--
 databases/py-hiredis/files/patch-setup.py | 19 +++++++------------
 3 files changed, 11 insertions(+), 15 deletions(-)

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,7 +1,7 @@
 # Created by: Denis Generalov <gd@rambler-co.ru>
 
 PORTNAME=	hiredis
-PORTVERSION=	0.2.0
+PORTVERSION=	2.0.0
 CATEGORIES=	databases python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
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