[143999] trunk/dports/textproc

Ryan Schmidt ryandesign at macports.org
Sun Jan 3 10:01:24 PST 2016


> On Dec 29, 2015, at 12:49 PM, raimue at macports.org wrote:
> 
> Revision
> 143999
> Author
> raimue at macports.org
> 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?




More information about the macports-dev mailing list