git: 56b54b1b788a - main - devel/py-mypy-protobuf: Convert REINPLACE_CMD to patch file
Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sat Jul 24 20:31:57 UTC 2021
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=56b54b1b788a4cbd610a8381add85965ff6e824e
commit 56b54b1b788a4cbd610a8381add85965ff6e824e
Author: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
AuthorDate: 2021-07-24 20:21:39 +0000
Commit: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
CommitDate: 2021-07-24 20:21:39 +0000
devel/py-mypy-protobuf: Convert REINPLACE_CMD to patch file
---
devel/py-mypy-protobuf/Makefile | 3 ---
devel/py-mypy-protobuf/files/patch-setup.py | 9 +++++++++
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/devel/py-mypy-protobuf/Makefile b/devel/py-mypy-protobuf/Makefile
index bd13629a1c5d..e5ebcd0344a9 100644
--- a/devel/py-mypy-protobuf/Makefile
+++ b/devel/py-mypy-protobuf/Makefile
@@ -19,7 +19,4 @@ USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
-post-patch:
- @${REINPLACE_CMD} -e '/protoc_gen_mypy.bat/d' ${WRKSRC}/setup.py
-
.include <bsd.port.mk>
diff --git a/devel/py-mypy-protobuf/files/patch-setup.py b/devel/py-mypy-protobuf/files/patch-setup.py
new file mode 100644
index 000000000000..2658f586b8f4
--- /dev/null
+++ b/devel/py-mypy-protobuf/files/patch-setup.py
@@ -0,0 +1,9 @@
+--- setup.py.orig 2021-07-15 00:12:15 UTC
++++ setup.py
+@@ -34,6 +34,5 @@ setup(
+ "protoc-gen-mypy_grpc = mypy_protobuf.main:grpc",
+ ],
+ },
+- scripts=["mypy_protobuf/protoc_gen_mypy.bat"],
+ python_requires=">=3.6",
+ )
More information about the dev-commits-ports-all
mailing list