Modified: trunk/dports/devel/zeroc-ice33/Portfile (110435 => 110436)
--- trunk/dports/devel/zeroc-ice33/Portfile 2013-08-31 03:56:14 UTC (rev 110435)
+++ trunk/dports/devel/zeroc-ice33/Portfile 2013-08-31 04:11:59 UTC (rev 110436)
@@ -106,12 +106,18 @@
}
# Prevent name conflicts between libICE.* from xorg-libice and
- # libIce.* from this port by renaming libIce.* to libZeroCIce.*.
- reinplace "s/,Ice/,ZeroCIce/" ${build.dir}/src/Ice/Makefile
- reinplace "s/-lIce /-lZeroCIce /" ${build.dir}/config/Make.rules.Darwin
+ # libIce.* from this port by renaming libIce.* to libZerocIce.*.
+ # For consistency, rename Ice's other shared libraries.
foreach f [exec find ${build.dir} -name Makefile] {
- reinplace "s/-lIce /-lZeroCIce /" ${f}
+ # To prevent replacements on slice2freeze's --dict argument,
+ # match exactly on a , or a ) that follows ,Ice\w*, e.g.:
+ # $(SLICE2FREEZE) --ice -I$(slicedir) --dict StringIsbnSeqDict,string,Ice::StringSeq
+ reinplace -E {s/,Ice([[:alnum:]]*[,)])/,ZerocIce\1/} ${f}
+ reinplace -E {s/-lIce([ A-Z]|$)/-lZerocIce\1/g} ${f}
}
+ reinplace -E {s/-lIce([ A-Z]|$)/-lZerocIce\1/g} \
+ ${build.dir}/config/Make.rules \
+ ${build.dir}/config/Make.rules.Darwin
}
use_configure no