aboutsummaryrefslogtreecommitdiffstats
path: root/irc
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-07-01 00:36:01 +0800
committermarcus <marcus@FreeBSD.org>2003-07-01 00:36:01 +0800
commit5b426b017f0424904c33389c4ca4711c2e70bd5d (patch)
tree10ed4c2a287634ea7e81aab36a252c169dff1fc5 /irc
parentbfb074a487059a18cc755abbed22bc7962f4c577 (diff)
downloadfreebsd-ports-gnome-5b426b017f0424904c33389c4ca4711c2e70bd5d.tar.gz
freebsd-ports-gnome-5b426b017f0424904c33389c4ca4711c2e70bd5d.tar.zst
freebsd-ports-gnome-5b426b017f0424904c33389c4ca4711c2e70bd5d.zip
Fix patching on -CURRENT by using REINPLACE to do the do.
Reported by: many
Diffstat (limited to 'irc')
-rw-r--r--irc/xchat-gnome/Makefile4
-rw-r--r--irc/xchat-gnome/files/patch-configure18
-rw-r--r--irc/xchat2/Makefile4
-rw-r--r--irc/xchat2/files/patch-configure18
4 files changed, 8 insertions, 36 deletions
diff --git a/irc/xchat-gnome/Makefile b/irc/xchat-gnome/Makefile
index 59c3e34104aa..31f42c6640a1 100644
--- a/irc/xchat-gnome/Makefile
+++ b/irc/xchat-gnome/Makefile
@@ -79,4 +79,8 @@ pre-everything::
@${ECHO_MSG} "WITH_TCL=yes for tcl support"
.endif
+post-patch:
+ @${REINPLACE_CMD} -E -e 's|PY_LIBS=.*|PY_LIBS="-L\$$PY_EXEC_PREFIX/lib/python\$$PY_VERSION/config -lpython\$$PY_VERSION ${PTHREAD_LIBS} -lutil"|' \
+ ${WRKSRC}/configure
+
.include <bsd.port.post.mk>
diff --git a/irc/xchat-gnome/files/patch-configure b/irc/xchat-gnome/files/patch-configure
index 674516a44029..0547a1b05bb9 100644
--- a/irc/xchat-gnome/files/patch-configure
+++ b/irc/xchat-gnome/files/patch-configure
@@ -15,21 +15,3 @@
;
return 0;
}
-@@ -12799,7 +12799,7 @@
- echo "$as_me:$LINENO: checking Python version" >&5
- echo $ECHO_N "checking Python version... $ECHO_C" >&6
- PY_VERSION=`$pythonpath -c 'import sys; print sys.version[:3]'`
-- PY_PATH=`$pythonpath -c 'import sys ; print sys.path[1][5:]'`
-+ PY_PATH=`$pythonpath -c 'import sys ; print sys.path[1][10:]'`
- $pythonpath -c "import sys; map(int,sys.version[:3].split('.')) >= [2,2] or sys.exit(1)"
- echo "$as_me:$LINENO: result: $PY_VERSION" >&5
- echo "${ECHO_T}$PY_VERSION" >&6
-@@ -12809,7 +12809,7 @@
- PY_PREFIX=`$pythonpath -c 'import sys; print sys.prefix'`
- PY_EXEC_PREFIX=`$pythonpath -c 'import sys; print sys.exec_prefix'`
- if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h; then
-- PY_LIBS="-L$PY_EXEC_PREFIX/$PY_PATH/config -lpython$PY_VERSION -pthread -lutil"
-+ PY_LIBS="-L$PY_EXEC_PREFIX/lib/python$PY_VERSION/config -lpython$PY_VERSION -pthread -lutil"
- PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION"
- echo "$as_me:$LINENO: result: ok" >&5
- echo "${ECHO_T}ok" >&6
diff --git a/irc/xchat2/Makefile b/irc/xchat2/Makefile
index 59c3e34104aa..31f42c6640a1 100644
--- a/irc/xchat2/Makefile
+++ b/irc/xchat2/Makefile
@@ -79,4 +79,8 @@ pre-everything::
@${ECHO_MSG} "WITH_TCL=yes for tcl support"
.endif
+post-patch:
+ @${REINPLACE_CMD} -E -e 's|PY_LIBS=.*|PY_LIBS="-L\$$PY_EXEC_PREFIX/lib/python\$$PY_VERSION/config -lpython\$$PY_VERSION ${PTHREAD_LIBS} -lutil"|' \
+ ${WRKSRC}/configure
+
.include <bsd.port.post.mk>
diff --git a/irc/xchat2/files/patch-configure b/irc/xchat2/files/patch-configure
index 674516a44029..0547a1b05bb9 100644
--- a/irc/xchat2/files/patch-configure
+++ b/irc/xchat2/files/patch-configure
@@ -15,21 +15,3 @@
;
return 0;
}
-@@ -12799,7 +12799,7 @@
- echo "$as_me:$LINENO: checking Python version" >&5
- echo $ECHO_N "checking Python version... $ECHO_C" >&6
- PY_VERSION=`$pythonpath -c 'import sys; print sys.version[:3]'`
-- PY_PATH=`$pythonpath -c 'import sys ; print sys.path[1][5:]'`
-+ PY_PATH=`$pythonpath -c 'import sys ; print sys.path[1][10:]'`
- $pythonpath -c "import sys; map(int,sys.version[:3].split('.')) >= [2,2] or sys.exit(1)"
- echo "$as_me:$LINENO: result: $PY_VERSION" >&5
- echo "${ECHO_T}$PY_VERSION" >&6
-@@ -12809,7 +12809,7 @@
- PY_PREFIX=`$pythonpath -c 'import sys; print sys.prefix'`
- PY_EXEC_PREFIX=`$pythonpath -c 'import sys; print sys.exec_prefix'`
- if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h; then
-- PY_LIBS="-L$PY_EXEC_PREFIX/$PY_PATH/config -lpython$PY_VERSION -pthread -lutil"
-+ PY_LIBS="-L$PY_EXEC_PREFIX/lib/python$PY_VERSION/config -lpython$PY_VERSION -pthread -lutil"
- PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION"
- echo "$as_me:$LINENO: result: ok" >&5
- echo "${ECHO_T}ok" >&6