[103348] trunk/dports/python/py-graph-tool/Portfile
Lawrence Velázquez
larryv at macports.org
Fri Feb 22 08:27:02 PST 2013
On Feb 22, 2013, at 9:53 AM, mmoll at macports.org wrote:
> Revision: 103348
> https://trac.macports.org/changeset/103348
> Author: mmoll at macports.org
> Date: 2013-02-22 06:53:26 -0800 (Fri, 22 Feb 2013)
> Log Message:
> -----------
> py-graph-tool: update to 2.2.22
>
> Modified Paths:
> --------------
> trunk/dports/python/py-graph-tool/Portfile
>
> Modified: trunk/dports/python/py-graph-tool/Portfile
> ===================================================================
> --- trunk/dports/python/py-graph-tool/Portfile 2013-02-22 14:43:22 UTC (rev 103347)
> +++ trunk/dports/python/py-graph-tool/Portfile 2013-02-22 14:53:26 UTC (rev 103348)
[snip]
> + # Clang uses the old libstc++ from gcc 4.2 by default. Boost doesn't
> + # include some of the tr1 headers in libstdc++ and defines its own tr1
> + # classes. This causes conflicts with sparsehash which insists on using
> + # the old tr1 headers. Remove this if/when clang switches to libc++ at
> + # some point.
> + if {[string match *clang* ${configure.compiler}]} {
> + configure.args-append --disable-sparsehash
> + }
> + else {
> + depends_lib-append port:sparsehash
> + configure.cppflags-append -I${prefix}/include/sparsehash
> + }
This is an error; if the "else" is not on the same line as the closing brace of the "if" body, then the "if" body must be followed by a line continuation (backslash-newline). As it is, Tcl interprets "else" as a (nonexistent) command, and the portfile does not parse.
I've fixed this in r103350.
vq
More information about the macports-dev
mailing list