[112536] trunk/dports/print/ghostscript-fonts-hiragino/Portfile

takanori at macports.org takanori at macports.org
Fri Oct 25 06:44:37 PDT 2013


Revision: 112536
          https://trac.macports.org/changeset/112536
Author:   takanori at macports.org
Date:     2013-10-25 06:44:36 -0700 (Fri, 25 Oct 2013)
Log Message:
-----------
ghostscript-fonts-hiragino: 
 - "return -code error" should be placed into a pre-fetch block
   https://lists.macosforge.org/pipermail/macports-dev/2013-October/024762.html

Modified Paths:
--------------
    trunk/dports/print/ghostscript-fonts-hiragino/Portfile

Modified: trunk/dports/print/ghostscript-fonts-hiragino/Portfile
===================================================================
--- trunk/dports/print/ghostscript-fonts-hiragino/Portfile	2013-10-25 13:38:31 UTC (rev 112535)
+++ trunk/dports/print/ghostscript-fonts-hiragino/Portfile	2013-10-25 13:44:36 UTC (rev 112536)
@@ -19,6 +19,16 @@
 
 depends_lib     port:ghostscript
 
+pre-fetch {
+    if {[variant_isset yu]} {
+        if {${os.platform} == "darwin" && ${os.major} >= 13} {
+            # nop
+        } else {
+            return -code error "variant +yu is supported on Mavericks or later only"
+        }
+    }
+}
+
 use_configure   no
 
 build {}
@@ -297,11 +307,6 @@
 }
 
 variant yu description {Add support for Yu fonts (experimental; unstable)} {
-    if {${os.platform} == "darwin" && ${os.major} >= 13} {
-        # nop
-    } else {
-        return -code error "variant +yu is supported on Mavericks or later only"
-    }
     notes "WARNING: Handling Yu fonts on ghostscript may cause unstable behavior"
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131025/a795c62f/attachment.html>


More information about the macports-changes mailing list