[121918] trunk/dports/graphics/asymptote/Portfile

mojca at macports.org mojca at macports.org
Fri Jul 11 11:31:01 PDT 2014


Revision: 121918
          https://trac.macports.org/changeset/121918
Author:   mojca at macports.org
Date:     2014-07-11 11:31:01 -0700 (Fri, 11 Jul 2014)
Log Message:
-----------
asymptote: can also depend on py*-Pillow (#44284)

Modified Paths:
--------------
    trunk/dports/graphics/asymptote/Portfile

Modified: trunk/dports/graphics/asymptote/Portfile
===================================================================
--- trunk/dports/graphics/asymptote/Portfile	2014-07-11 14:54:44 UTC (rev 121917)
+++ trunk/dports/graphics/asymptote/Portfile	2014-07-11 18:31:01 UTC (rev 121918)
@@ -90,11 +90,21 @@
   system "mktexlsr"
 }
 
+# asymptote's GUI needs either pyXY-pil or pyXY-Pillow
+# https://trac.macports.org/ticket/44284
 variant python26 conflicts python27 description {Enable xasy GUI using Python 2.6} {
-    depends_lib-append port:py26-tkinter port:py26-pil
+    set python.version  26
+    set python.branch   "[string range ${python.version} 0 end-1].[string index ${python.version} end]"
+
+    depends_lib-append  port:py${python.version}-tkinter \
+                        path:${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages/PIL:py${python.version}-Pillow
 }
 variant python27 conflicts python26 description {Enable xasy GUI using Python 2.7} {
-    depends_lib-append port:py27-tkinter port:py27-pil
+    set python.version  27
+    set python.branch   "[string range ${python.version} 0 end-1].[string index ${python.version} end]"
+
+    depends_lib-append  port:py${python.version}-tkinter \
+                        path:${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages/PIL:py${python.version}-Pillow
 }
 if {![variant_isset python26]} {
     default_variants +python27
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140711/b0c62205/attachment.html>


More information about the macports-changes mailing list