[53403] trunk/dports/aqua/TeXShop/Portfile

snc at macports.org snc at macports.org
Sat Jul 4 20:17:36 PDT 2009


Revision: 53403
          http://trac.macports.org/changeset/53403
Author:   snc at macports.org
Date:     2009-07-04 20:17:34 -0700 (Sat, 04 Jul 2009)
Log Message:
-----------
changed OS check to use os.major, per cairo example from ryandesign

Modified Paths:
--------------
    trunk/dports/aqua/TeXShop/Portfile

Modified: trunk/dports/aqua/TeXShop/Portfile
===================================================================
--- trunk/dports/aqua/TeXShop/Portfile	2009-07-05 00:52:56 UTC (rev 53402)
+++ trunk/dports/aqua/TeXShop/Portfile	2009-07-05 03:17:34 UTC (rev 53403)
@@ -27,13 +27,12 @@
                     sha1    fbdf076d4856486f6e91971fa81b9ebd8aae27bc \
                     rmd160  906b28a596929d896bea1c547644594942e3dcbb
 
-platform darwin 7 {
 pre-fetch {
-return -code error "\n
-    TeXShop 2.x will not install on less than OS X 10.4 and there isn't a
-    TeXShop 1.x port contributed as yet to accommodate 10.3.\n"
+    if {${os.major} < 8} {
+        ui_error "TeXShop is only available on Mac OS X 10.4 or greater"
+        return -code error "incompatiable Mac OS X version"
+    }
 }
-}
 
 post-extract    {
     reinplace "s/defaultConfigurationName = Debug/defaultConfigurationName = Release/" ${worksrcpath}/${name}.xcodeproj/project.pbxproj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090704/8dcd32ba/attachment.html>


More information about the macports-changes mailing list