[kde-freebsd] ports/165213: devel/cmake: Reinplacement of paths in Modules is bad
Titus von Boxberg
titus at v9g.de
Sat May 5 13:00:24 UTC 2012
The following reply was made to PR ports/165213; it has been noted by GNATS.
From: Titus von Boxberg <titus at v9g.de>
To: bug-followup at freebsd.org
Cc:
Subject: Re: ports/165213: devel/cmake: Reinplacement of paths in Modules is bad
Date: Sat, 5 May 2012 14:56:24 +0200
--Boundary-00=_4NSpP/CCdZnieEX
Content-Type: Text/Plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sorry, here the diff again uncompressed.
--Boundary-00=_4NSpP/CCdZnieEX
Content-Type: text/x-patch;
charset="UTF-8";
name="cmake-port-Makefile.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="cmake-port-Makefile.diff"
--- Makefile.orig 2012-05-03 04:14:57.000000000 +0200
+++ Makefile 2012-05-05 13:56:22.000000000 +0200
@@ -38,17 +38,19 @@
ctest.1
post-patch:
@(${FIND} ${WRKSRC}/Modules -name "*.cmake" -print0; \
${FIND} ${WRKSRC}/Tests -name "CMakeLists.txt" -print0 ) | \
- ${XARGS} -0 -n 100 ${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g; \
- s,/usr/X11R6,${LOCALBASE},g'
+ ${XARGS} -0 -n 100 ${REINPLACE_CMD} -Ee 's,/usr/local,${LOCALBASE},g; \
+ s,(/usr/X11R6)([/A-Za-z0-9_-]*)([^/A-Za-z0-9_$$-]),\1\2\3${LOCALBASE}\2\3,g; \
+ s,(/usr/X11R6)([/A-Za-z0-9_-]*)($$),\1\2 ${LOCALBASE}\2,g;'
@${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' \
${WRKSRC}/Source/cmLocalGenerator.cxx \
${WRKSRC}/Source/CPack/cmCPackGenerator.cxx \
${WRKSRC}/bootstrap
- @${REINPLACE_CMD} -e 's,/opt/kde4,${LOCALBASE}/kde4,g' \
+ ${REINPLACE_CMD} -Ee 's,(/opt/kde4)([/A-Za-z0-9_-]*)([^/A-Za-z0-9_$$-]),\1\2\3${LOCALBASE}/kde4\2\3,g; \
+ s,(/opt/kde4)([/A-Za-z0-9_-]*)($$),\1\2 ${LOCALBASE}/kde4\2,g;' \
${WRKSRC}/Modules/FindKDE4.cmake
@${REINPLACE_CMD} -e 's,/usr/include,${LOCALBASE}/include,' \
${WRKSRC}/Modules/FindDCMTK.cmake
@${FIND} ${WRKSRC} -name "*.bak" -delete -o -name "*.orig" -delete
--Boundary-00=_4NSpP/CCdZnieEX--
More information about the kde-freebsd
mailing list