[102260] trunk/dports/graphics/dcmtk/Portfile

Ryan Schmidt ryandesign at macports.org
Tue Jan 29 12:47:34 PST 2013


On Jan 29, 2013, at 11:33, jeremyhu at macports.org wrote:

> Revision: 102260
>          https://trac.macports.org/changeset/102260
> Author:   jeremyhu at macports.org
> Date:     2013-01-29 09:33:51 -0800 (Tue, 29 Jan 2013)
> Log Message:
> -----------
> dcmtk: Use compiler.blacklist
> 
> Modified Paths:
> --------------
>    trunk/dports/graphics/dcmtk/Portfile
> 
> Modified: trunk/dports/graphics/dcmtk/Portfile
> ===================================================================
> --- trunk/dports/graphics/dcmtk/Portfile	2013-01-29 17:06:52 UTC (rev 102259)
> +++ trunk/dports/graphics/dcmtk/Portfile	2013-01-29 17:33:51 UTC (rev 102260)
> @@ -2,6 +2,8 @@
> 
> PortSystem              1.0
> PortGroup               muniversal 1.0
> +PortGroup               compiler_blacklist_versions 1.0
> +
> name                    dcmtk
> version                 3.6.0
> revision                2
> @@ -75,8 +77,21 @@
> 
> use_parallel_build      no
> 
> -if {${configure.compiler} == "clang"} {
> -   configure.compiler      llvm-gcc-4.2
> +# TODO: This project has buggy C++ which clang rejects
> +compiler.blacklist-append clang
> +
> +# TODO: base should do this: http://trac.macports.org/ticket/32542
> +if {[info exists portconfigure::compiler_name_map(${configure.compiler})]} {
> +    depends_build-append port:$portconfigure::compiler_name_map(${configure.compiler})
> +
> +    # base 2.1.x ignores the argument and just use ${configure.compiler}
> +    if {[portconfigure::arch_flag_supported ${configure.compiler}]} {
> +        depends_skip_archcheck-append $portconfigure::compiler_name_map(${configure.compiler})
> +    }
> +
> +    if {[string match macports-gcc* ${configure.compiler}]} {
> +        depends_lib-append port:$portconfigure::compiler_name_map(${configure.compiler})
> +    }
> }

This doesn't appear to actually need the compiler_blacklist_versions portgroup, does it?





More information about the macports-dev mailing list