summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-04-19 01:57:17 +0800
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-04-19 02:00:48 +0800
commitc4b4f3932a0edabaeb37a4d8194db3255ce42b7b (patch)
tree0136e9e11ac25cbd728319d661ff1a2779ba91f2 /databases
parentdevel/p5-Venus: Update to 2.40 (diff)
Rename build.py to build_cython.py. Otherwise, it masks PEP517_BUILD_CMD (python -m build ...).
Diffstat (limited to 'databases')
-rw-r--r--databases/py-asyncmy/Makefile3
-rw-r--r--databases/py-asyncmy/files/patch-pyproject.toml19
-rw-r--r--databases/py-asyncmy/files/patch-setup.py11
3 files changed, 33 insertions, 0 deletions
diff --git a/databases/py-asyncmy/Makefile b/databases/py-asyncmy/Makefile
index 67906409b9a7..6087b60114d1 100644
--- a/databases/py-asyncmy/Makefile
+++ b/databases/py-asyncmy/Makefile
@@ -18,6 +18,9 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=0:devel/py-poetry-core@${PY_F
USES= python:3.7+
USE_PYTHON= autoplist concurrent cython pep517
+post-patch:
+ @${MV} ${WRKSRC}/build.py ${WRKSRC}/build_cython.py
+
post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
diff --git a/databases/py-asyncmy/files/patch-pyproject.toml b/databases/py-asyncmy/files/patch-pyproject.toml
new file mode 100644
index 000000000000..db77b5d46fd6
--- /dev/null
+++ b/databases/py-asyncmy/files/patch-pyproject.toml
@@ -0,0 +1,19 @@
+--- pyproject.toml.orig 2023-02-15 05:35:05 UTC
++++ pyproject.toml
+@@ -3,7 +3,6 @@ authors = ["long2ice <long2ice@gmail.com>"]
+ description = "A fast asyncio MySQL driver"
+ documentation = "https://github.com/long2ice/asyncmy"
+ homepage = "https://github.com/long2ice/asyncmy"
+-include = ["CHANGELOG.md", "LICENSE", "README.md"]
+ keywords = ["driver", "asyncio", "mysql"]
+ license = "Apache-2.0"
+ name = "asyncmy"
+@@ -40,7 +39,7 @@ uvloop = { version = "*", markers = "sys_platform != '
+
+ [tool.poetry.build]
+ generate-setup-file = true
+-script = "build.py"
++script = "build_cython.py"
+
+ [build-system]
+ build-backend = "poetry.core.masonry.api"
diff --git a/databases/py-asyncmy/files/patch-setup.py b/databases/py-asyncmy/files/patch-setup.py
new file mode 100644
index 000000000000..b1b6ed798b00
--- /dev/null
+++ b/databases/py-asyncmy/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 1970-01-01 00:00:00 UTC
++++ setup.py
+@@ -21,7 +21,7 @@ setup_kwargs = {
+ 'package_data': package_data,
+ 'python_requires': '>=3.7,<4.0',
+ }
+-from build import *
++from build_cython import *
+ build(setup_kwargs)
+
+ setup(**setup_kwargs)