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

ryandesign at macports.org ryandesign at macports.org
Mon Aug 27 14:11:21 PDT 2012


Revision: 97116
          https://trac.macports.org/changeset/97116
Author:   ryandesign at macports.org
Date:     2012-08-27 14:11:19 -0700 (Mon, 27 Aug 2012)
Log Message:
-----------
TeXShop: use notes for OS version message

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

Modified: trunk/dports/aqua/TeXShop/Portfile
===================================================================
--- trunk/dports/aqua/TeXShop/Portfile	2012-08-27 20:37:10 UTC (rev 97115)
+++ trunk/dports/aqua/TeXShop/Portfile	2012-08-27 21:11:19 UTC (rev 97116)
@@ -27,16 +27,9 @@
 checksums       rmd160  cd02b93bafa72de885338d32e98c61de39e11aa6 \
                 sha256  cd8f9fd827d9b080423da0f1d9664bdbfdfebb4525bbb7542ee54c44e2f9ce19
 
-pre-fetch {
-    platform darwin {
-        if {${os.major} >= 11} {
-            ui_msg "${name} ${version} is designed for OS X 10.6 Snow Leopard and older; for OS X 10.7 Lion and newer you may prefer to use the TeXShop3 port."
-        }
-    }
-}
-
 # force 32-bit, ticket #20291
 supported_archs i386 ppc
+
 post-extract    {
     set sparkle "Sparkle.framework/Versions/A/Sparkle"
     set ogrekit "OgreKit.framework/Versions/A/OgreKit"
@@ -75,12 +68,19 @@
     reinplace s|@@PREFIX@@|${prefix}|g ${destroot}${applications_dir}/${name}.app/Contents/Resources/${name}/Engines/Lilypond.engine
 }
 
-if {${os.major} >= 11} {
-	universal_variant	no
-    supported_archs	i386
+notes "If you intend to use the Lilypond engine, please copy ${applications_dir}/${name}.app/Contents/Resources/${name}/Engines/Lilypond.engine to ~/Library/${name}/Engines/Lilypond.engine"
+
+platform darwin {
+    if {${os.major} >= 11} {
+        universal_variant   no
+        supported_archs     i386
+        set os_note "${name} ${version} is designed for OS X 10.6 Snow Leopard and older; for OS X 10.7 Lion and newer you may prefer to use the TeXShop3 port."
+        notes-append "\n\n${os_note}"
+        pre-fetch {
+            ui_msg ${os_note}
+        }
+    }
 }
 
-notes "If you intend to use the Lilypond engine, please copy ${applications_dir}/${name}.app/Contents/Resources/${name}/Engines/Lilypond.engine to ~/Library/${name}/Engines/Lilypond.engine"
-
 livecheck.type      regex
 livecheck.regex     TeXShop \\(v (${major}\.\[0-9.\]+)\\)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120827/dfbc410b/attachment.html>


More information about the macports-changes mailing list