[73049] trunk/dports/sysutils/Pallet/Portfile
Ryan Schmidt
ryandesign at macports.org
Mon Nov 1 22:11:01 PDT 2010
On Nov 1, 2010, at 21:29, juanger at macports.org wrote:
> Revision: 73049
> http://trac.macports.org/changeset/73049
> Author: juanger at macports.org
> Date: 2010-11-01 19:29:42 -0700 (Mon, 01 Nov 2010)
> Log Message:
> -----------
> Better compatibility check. As suggested by Ryan Schmidt.
>
> Modified Paths:
> --------------
> trunk/dports/sysutils/Pallet/Portfile
>
> Modified: trunk/dports/sysutils/Pallet/Portfile
> ===================================================================
> --- trunk/dports/sysutils/Pallet/Portfile 2010-11-02 02:29:08 UTC (rev 73048)
> +++ trunk/dports/sysutils/Pallet/Portfile 2010-11-02 02:29:42 UTC (rev 73049)
> @@ -26,13 +26,10 @@
> xcode.target Pallet
> xcode.configuration Release
>
> -if {"darwin" == ${os.platform}} {
> - if {9 <= ${os.major}} {
> - xcode.configuration Release
> - } else {
> - ui_error "You need at least Mac OS X Leopard to build this port."
> - return -code error "incompatible Mac OS X version"
> - }
> +platform darwin 8 {
> + pre-fetch {
> + ui_error "${name} requires Mac OS X 10.5 or greater."
> + }
> }
You also do need the "return -code error" line so it actually stops at that point.
More information about the macports-dev
mailing list