summaryrefslogtreecommitdiff
path: root/devel/py-geventhttpclient
diff options
context:
space:
mode:
Diffstat (limited to 'devel/py-geventhttpclient')
-rw-r--r--devel/py-geventhttpclient/Makefile12
-rw-r--r--devel/py-geventhttpclient/distinfo8
-rw-r--r--devel/py-geventhttpclient/files/patch-pyproject.toml16
-rw-r--r--devel/py-geventhttpclient/files/patch-src-geventhttpclient-__init__.py10
4 files changed, 40 insertions, 6 deletions
diff --git a/devel/py-geventhttpclient/Makefile b/devel/py-geventhttpclient/Makefile
index 862acf24ae54..95f088184744 100644
--- a/devel/py-geventhttpclient/Makefile
+++ b/devel/py-geventhttpclient/Makefile
@@ -1,7 +1,7 @@
PORTNAME= geventhttpclient
-PORTVERSION= 2.3.3
+PORTVERSION= 2.3.5
CATEGORIES= devel python
-MASTER_SITES= PYPI
+#MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
@@ -15,12 +15,18 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLA
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}brotli>=0:archivers/py-brotli@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}certifi>=0:security/py-certifi@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}gevent>=0.13:devel/py-gevent@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}gevent>=0:devel/py-gevent@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}urllib3>=0,1:net/py-urllib3@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist concurrent pep517
+USE_GITHUB= yes
+GH_TUPLE= nodejs:llhttp:release/v6.0.11:nodejs_llhttp/llhttp
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${WRKSRC}/pyproject.toml ${WRKSRC}/src/geventhttpclient/__init__.py
+
post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
diff --git a/devel/py-geventhttpclient/distinfo b/devel/py-geventhttpclient/distinfo
index 1c6252f51718..d6747e80952d 100644
--- a/devel/py-geventhttpclient/distinfo
+++ b/devel/py-geventhttpclient/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1734888192
-SHA256 (geventhttpclient-2.3.3.tar.gz) = 3e74c1570d01dd09cabdfe2667fbf072520ec9bb3a31a0fd1eae3d0f43847f9b
-SIZE (geventhttpclient-2.3.3.tar.gz) = 83625
+TIMESTAMP = 1757120656
+SHA256 (geventhttpclient-geventhttpclient-2.3.5_GH0.tar.gz) = 388f58f672f810ce345a5149f0cdec6cdcbc2c25c3fc51795403e1791d5544ac
+SIZE (geventhttpclient-geventhttpclient-2.3.5_GH0.tar.gz) = 53393
+SHA256 (nodejs-llhttp-release-v6.0.11_GH0.tar.gz) = 3731820429e1ebfa8f3e70f9a8f4da5d72d69b1cadcf5cfb1ac149e2c19e34f2
+SIZE (nodejs-llhttp-release-v6.0.11_GH0.tar.gz) = 41467
diff --git a/devel/py-geventhttpclient/files/patch-pyproject.toml b/devel/py-geventhttpclient/files/patch-pyproject.toml
new file mode 100644
index 000000000000..ae6351e881f9
--- /dev/null
+++ b/devel/py-geventhttpclient/files/patch-pyproject.toml
@@ -0,0 +1,16 @@
+--- pyproject.toml.orig 2025-08-24 09:56:07 UTC
++++ pyproject.toml
+@@ -5,11 +5,11 @@ name = "geventhttpclient"
+
+ [project]
+ name = "geventhttpclient"
+-version = "2.3.4" # don't forget to update version __init__.py as well
++version = "%%PORTVERSION%%" # don't forget to update version __init__.py as well
+ description = "HTTP client library for gevent"
+ readme = "README.md"
+ requires-python = ">=3.9"
+-license = "MIT"
++license = {file = "LICENSE-MIT"}
+ keywords = ["http", "gevent", "client"]
+ authors = [{name = "Antonin Amand", email = "antonin.amand@gmail.com"}]
+ classifiers = [
diff --git a/devel/py-geventhttpclient/files/patch-src-geventhttpclient-__init__.py b/devel/py-geventhttpclient/files/patch-src-geventhttpclient-__init__.py
new file mode 100644
index 000000000000..05102cc6ba02
--- /dev/null
+++ b/devel/py-geventhttpclient/files/patch-src-geventhttpclient-__init__.py
@@ -0,0 +1,10 @@
+--- src/geventhttpclient/__init__.py.orig 2025-08-24 09:56:07 UTC
++++ src/geventhttpclient/__init__.py
+@@ -1,6 +1,6 @@
+ # package
+
+-__version__ = "2.3.4" # don't forget to update version in pyproject.toml as well
++__version__ = "%%PORTVERSION%%" # don't forget to update version in pyproject.toml as well
+
+ from geventhttpclient.api import delete, get, head, options, patch, post, put, request
+ from geventhttpclient.client import HTTPClient