[76805] trunk/dports/gis/qgis/Portfile
Joshua Root
jmr at macports.org
Wed Mar 9 22:33:10 PST 2011
> Revision: 76805
> http://trac.macports.org/changeset/76805
> Author: vince at macports.org
> Date: 2011-03-09 00:14:29 -0800 (Wed, 09 Mar 2011)
[...]
> Modified: trunk/dports/gis/qgis/Portfile
> ===================================================================
> --- trunk/dports/gis/qgis/Portfile 2011-03-09 06:41:43 UTC (rev 76804)
> +++ trunk/dports/gis/qgis/Portfile 2011-03-09 08:14:29 UTC (rev 76805)
[...]
> @@ -47,20 +43,79 @@
[...]
> +pre-extract {
> + # At least one python package must be specified
> + if {[lsearch [split ${portvariants} "+"] "python*"] == -1} {
> + ui_error "Qgis requires python. Please select a variant."
> + exit 0
> + }
> +}
[...]
> + if {[variant_isset universal] && ${Pyversion} < 26} {
> + ui_error "Universal build requires Python > 2.5"
> + exit 0
> }
Please don't use exit in a portfile. Throw an error instead.
- Josh
More information about the macports-dev
mailing list