git: ff3006d5085c - main - devel/gitinspector: Convert REINPLACE_CMD to patch file

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 09 Mar 2024 14:10:02 UTC
The branch main has been updated by sunpoet:

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

commit ff3006d5085c6a22f04cd971080dc402aba1e3ac
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-03-09 13:44:50 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-03-09 14:05:19 +0000

    devel/gitinspector: Convert REINPLACE_CMD to patch file
---
 devel/gitinspector/Makefile             |  3 ---
 devel/gitinspector/files/patch-setup.py | 10 ++++++++++
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/devel/gitinspector/Makefile b/devel/gitinspector/Makefile
index d49fdb3ca217..5063fb92703b 100644
--- a/devel/gitinspector/Makefile
+++ b/devel/gitinspector/Makefile
@@ -22,7 +22,4 @@ NO_ARCH=	yes
 GH_ACCOUNT=	ejwa
 USE_GITHUB=	yes
 
-post-patch:
-	@${REINPLACE_CMD} -e '/data_files/d' ${WRKSRC}/setup.py
-
 .include <bsd.port.mk>
diff --git a/devel/gitinspector/files/patch-setup.py b/devel/gitinspector/files/patch-setup.py
new file mode 100644
index 000000000000..71492ee02c6e
--- /dev/null
+++ b/devel/gitinspector/files/patch-setup.py
@@ -0,0 +1,10 @@
+--- setup.py.orig	2016-02-03 13:25:05 UTC
++++ setup.py
+@@ -46,7 +46,6 @@ setup(
+ 	],
+ 	packages = find_packages(exclude = ['tests']),
+ 	package_data = {"": ["html/*", "translations/*"]},
+-	data_files = [("share/doc/gitinspector", glob("*.txt"))],
+ 	entry_points = {"console_scripts": ["gitinspector = gitinspector.gitinspector:main"]},
+ 	zip_safe = False
+ )