> On Dec 29, 2015, at 12:49 PM, [email protected] wrote:
> 
> Revision
> 143999
> Author
> [email protected]
> Date
> 2015-12-29 10:49:23 -0800 (Tue, 29 Dec 2015)
> Log Message
> 
> textproc/pdfgrep, textproc/pdfgrep-legacy:
> Add new pdfgrep-legacy port for old versions of OS X, closes #50076
> 
> Modified Paths
> 
>       • trunk/dports/textproc/pdfgrep/Portfile
> Added Paths
> 
>       • trunk/dports/textproc/pdfgrep-legacy/
>       • trunk/dports/textproc/pdfgrep-legacy/Portfile
> Diff
> 
> Modified: trunk/dports/textproc/pdfgrep/Portfile (143998 => 143999)

> +pre-fetch {
> +    if {${name} == ${subport} && ${os.platform} eq "darwin" && ${os.major} < 
> 13} {
> +        ui_error "${name} only runs on Mac OS X 10.9 or greater as it 
> requires features of C++11. Please install pdfgrep-legacy instead."
> +        return -code error "incompatible Mac OS X version"
> +    }
> +}
> +

Can this check ${configure.cxx_stdlib} instead of ${os.major}? Or better yet, 
can it just include the cxx11 1.0 portgroup and let it handle the details?


_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to