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

mojca at macports.org mojca at macports.org
Tue Mar 15 16:23:10 PDT 2016


Revision: 146725
          https://trac.macports.org/changeset/146725
Author:   mojca at macports.org
Date:     2016-03-15 16:23:10 -0700 (Tue, 15 Mar 2016)
Log Message:
-----------
asymptote: upgrade to 2.37, add support for Python 3

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

Modified: trunk/dports/graphics/asymptote/Portfile
===================================================================
--- trunk/dports/graphics/asymptote/Portfile	2016-03-15 22:07:02 UTC (rev 146724)
+++ trunk/dports/graphics/asymptote/Portfile	2016-03-15 23:23:10 UTC (rev 146725)
@@ -5,9 +5,8 @@
 PortGroup           github 1.0
 PortGroup           texlive 1.0
 
-github.setup        vectorgraphics asymptote 93d5b9af8
-version             2.36
-revision            2
+github.setup        vectorgraphics asymptote ee9839887
+version             2.37
 categories          graphics
 maintainers         mojca openmaintainer
 description         a vector graphics language
@@ -20,17 +19,19 @@
 license             LGPL-3+
 platforms           darwin
 
+checksums           rmd160  de2c5a44d337fc328073fb8eb6eb01bb30f8757a \
+                    sha256  00c410140415ef88a398f92b26ddddcad739cfaed646c0450793e4126f0e1a39
+
+use_autoconf        yes
+autoconf.cmd        ./autogen.sh
+
 configure.args      --with-latex=${texlive_texmfports}/tex/latex \
                     --with-context=${texlive_texmfports}/tex/context/third \
                     --mandir=${prefix}/share/man \
                     --disable-offscreen
 
-checksums           rmd160  961de6b02ef6e6e67285fa30da87183ba0b0ab90 \
-                    sha256  269dc4db30edbf4c40b6b675a856dbd6d027e857041cf199987ffd54af808429
+build.target        all
 
-use_autoconf        yes
-autoconf.cmd        ./autogen.sh
-
 # texlive-latex-recommended and texinfo are only used for building the docs
 # other relevant packages are:
 # - texlive-common
@@ -76,8 +77,15 @@
                     port:texlive-latex-recommended
 
 post-destroot {
+    set python.branch ""
     if {[variant_isset python27]} {
         set python.branch   2.7
+    } elseif {[variant_isset python34]} {
+        set python.branch   3.4
+    } elseif {[variant_isset python35]} {
+        set python.branch   3.5
+    }
+    if {${python.branch} != ""} { 
         set python.bin      ${prefix}/bin/python${python.branch}
         eval reinplace {"s|#!/usr/bin/env python|#!${python.bin}|"} \
             [glob -directory ${destroot}${prefix}/share/${name}/GUI *.py]
@@ -96,11 +104,28 @@
 
 # asymptote's GUI needs either pyXY-pil or pyXY-Pillow
 # https://trac.macports.org/ticket/44284
-variant python27 description {Enable xasy GUI using Python 2.7} {
+variant python27 conflicts python34 python35 description {Enable xasy GUI using Python 2.7} {
     set python.version  27
-    set python.branch   2.7
+    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
 }
-default_variants    +python27
+variant python34 conflicts python27 python35 description {Enable xasy GUI using Python 3.4} {
+    set python.version  34
+    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 python35 conflicts python27 python34 description {Enable xasy GUI using Python 3.5} {
+    set python.version  35
+    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 python27] && ![variant_isset python34]} {
+    default_variants +python35
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160315/abda4af9/attachment.html>


More information about the macports-changes mailing list