summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Steinmetz <zi@FreeBSD.org>2025-02-04 11:04:41 -0500
committerRyan Steinmetz <zi@FreeBSD.org>2025-02-04 11:05:31 -0500
commitad07ec0635d74621800d9e69ca4e9b388906a9d0 (patch)
tree699e558b8ebd3d75033e82b6196d16dedad47a66
parentsysutils/desktop-installer: Update to 1.1.0 (diff)
irc/eggdrop: Replace SED use with REINPLACE_CMD+patch
PR: 283584 Reported by: danfe@
-rw-r--r--irc/eggdrop/Makefile3
-rw-r--r--irc/eggdrop/files/patch-src_mod_python.mod_pycmds.c10
2 files changed, 11 insertions, 2 deletions
diff --git a/irc/eggdrop/Makefile b/irc/eggdrop/Makefile
index baa011307ef5..2569c3eaecda 100644
--- a/irc/eggdrop/Makefile
+++ b/irc/eggdrop/Makefile
@@ -24,8 +24,7 @@ SUB_FILES= pkg-message
OPTIONS_DEFINE= DOCS
post-patch:
- @${SED} -i '' -e '25d' ${WRKSRC}/src/mod/python.mod/pycmds.c
- @${SED} -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKSRC}/eggdrop.conf \
+ @${REINPLACE_CMD} -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKSRC}/eggdrop.conf \
> ${WRKSRC}/eggdrop.conf.sample
post-configure:
diff --git a/irc/eggdrop/files/patch-src_mod_python.mod_pycmds.c b/irc/eggdrop/files/patch-src_mod_python.mod_pycmds.c
new file mode 100644
index 000000000000..c0534cbd452e
--- /dev/null
+++ b/irc/eggdrop/files/patch-src_mod_python.mod_pycmds.c
@@ -0,0 +1,10 @@
+--- src/mod/python.mod/pycmds.c.orig 2025-02-04 15:24:41 UTC
++++ src/mod/python.mod/pycmds.c
+@@ -22,7 +22,6 @@
+ #define PY_SSIZE_T_CLEAN
+ #include <Python.h>
+ #include <datetime.h>
+-#include <tcl.h>
+ #include "src/mod/module.h"
+
+ typedef struct {