git: 82adddc9f242 - main - net/p5-Net-Dict: Convert REINPLACE_CMD to patch file
Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun Jun 20 11:43:02 UTC 2021
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=82adddc9f24252c1f11ad0e37717d526735400f4
commit 82adddc9f24252c1f11ad0e37717d526735400f4
Author: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
AuthorDate: 2021-06-20 11:32:21 +0000
Commit: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
CommitDate: 2021-06-20 11:32:21 +0000
net/p5-Net-Dict: Convert REINPLACE_CMD to patch file
---
net/p5-Net-Dict/Makefile | 3 +--
net/p5-Net-Dict/files/patch-Makefile.PL | 10 ++++++++++
net/p5-Net-Dict/files/test_host.cfg | 2 ++
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/net/p5-Net-Dict/Makefile b/net/p5-Net-Dict/Makefile
index c42794b8889a..59e767f539d3 100644
--- a/net/p5-Net-Dict/Makefile
+++ b/net/p5-Net-Dict/Makefile
@@ -21,7 +21,6 @@ USE_PERL5= configure
NO_ARCH= yes
post-patch:
- @${REINPLACE_CMD} -e '/EXE_FILES/d' ${WRKSRC}/Makefile.PL
- @${ECHO_CMD} '$$HOST = "test.dict.org"; $$PORT = 2628;' > ${WRKSRC}/t/test_host.cfg
+ @${CP} ${FILESDIR}/test_host.cfg ${WRKSRC}/t/test_host.cfg
.include <bsd.port.mk>
diff --git a/net/p5-Net-Dict/files/patch-Makefile.PL b/net/p5-Net-Dict/files/patch-Makefile.PL
new file mode 100644
index 000000000000..a8840eb539b1
--- /dev/null
+++ b/net/p5-Net-Dict/files/patch-Makefile.PL
@@ -0,0 +1,10 @@
+--- Makefile.PL.orig 2016-03-01 12:44:17 UTC
++++ Makefile.PL
+@@ -21,7 +21,6 @@ if ($mm_ver =~ /_/) { # dev version
+ 'Carp' => 0,
+ 'AppConfig::Std' => 0,
+ },
+- EXE_FILES => [qw(dict tkdict)],
+ AUTHOR => 'Neil Bowers <neil at bowers.com>',
+ ABSTRACT_FROM => 'lib/Net/Dict.pod',
+ META_MERGE => {
diff --git a/net/p5-Net-Dict/files/test_host.cfg b/net/p5-Net-Dict/files/test_host.cfg
new file mode 100644
index 000000000000..544a1734f8e9
--- /dev/null
+++ b/net/p5-Net-Dict/files/test_host.cfg
@@ -0,0 +1,2 @@
+$HOST = "test.dict.org";
+$PORT = 2628;
More information about the dev-commits-ports-all
mailing list