[112479] trunk/dports/textproc/colorer/Portfile
ryandesign at macports.org
ryandesign at macports.org
Thu Oct 24 02:36:43 PDT 2013
Revision: 112479
https://trac.macports.org/changeset/112479
Author: ryandesign at macports.org
Date: 2013-10-24 02:36:43 -0700 (Thu, 24 Oct 2013)
Log Message:
-----------
colorer: ensure we're UsingTheRightCompiler and -arch flags, even when not building universal; blacklist clang for now
Modified Paths:
--------------
trunk/dports/textproc/colorer/Portfile
Modified: trunk/dports/textproc/colorer/Portfile
===================================================================
--- trunk/dports/textproc/colorer/Portfile 2013-10-24 07:06:43 UTC (rev 112478)
+++ trunk/dports/textproc/colorer/Portfile 2013-10-24 09:36:43 UTC (rev 112479)
@@ -33,6 +33,8 @@
${worksrcpath}
}
+variant universal {}
+
patchfiles patch-Makefile.in.diff
post-patch {
@@ -58,28 +60,29 @@
# Install documentation in an unversioned directory
reinplace s:doc/colorer-take5:doc/colorer: ${worksrcpath}/Makefile.in
+
+ reinplace "/^CPPFLAGS/s:\$: [get_canonical_archflags cc]:" \
+ ${worksrcpath}/src/shared/makefile.colorer.gcc
+ reinplace -E "/^(LIB)?FLAGS/s:\$: [get_canonical_archflags ld]:" \
+ ${worksrcpath}/src/colorer/makefile.macos \
+ ${worksrcpath}/src/libcolorer/makefile.gcc
}
+# error: taking the address of a temporary object of type 'DString'
+compiler.blacklist *clang*
+
configure.cmd sh src/libcolorer/linux/configure
configure.args --srcdir=.
build.target colorer
+# Yes, this build system uses "CPP" for the C compiler and "LINK" for the C++ compiler.
+build.args CPP=${configure.cc} \
+ LINK=${configure.cxx}
use_parallel_build yes
destroot.destdir prefix=${destroot}${prefix}
destroot.args -B
-if {[variant_isset universal]} {
- post-patch {
- # Use MacPorts universal flags
- reinplace "/^CPPFLAGS/s:\$: ${configure.universal_cflags}:" \
- ${worksrcpath}/src/shared/makefile.colorer.gcc
- reinplace -E "/^(LIB)?FLAGS/s:\$: ${configure.universal_ldflags}:" \
- ${worksrcpath}/src/colorer/makefile.macos \
- ${worksrcpath}/src/libcolorer/makefile.gcc
- }
-}
-
livecheck.type regex
livecheck.url ${homepage}whatsnew/history.html
livecheck.regex {<h2>([^,]*), Latest}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131024/a37c33aa/attachment.html>
More information about the macports-changes
mailing list