[82098] trunk/dports/python

stromnov at macports.org stromnov at macports.org
Mon Aug 8 00:33:15 PDT 2011


Revision: 82098
          http://trac.macports.org/changeset/82098
Author:   stromnov at macports.org
Date:     2011-08-08 00:33:15 -0700 (Mon, 08 Aug 2011)
Log Message:
-----------
unify py*-sympy

Modified Paths:
--------------
    trunk/dports/python/py-sympy/Portfile

Added Paths:
-----------
    trunk/dports/python/py-sympy/files/
    trunk/dports/python/py-sympy/files/py24-sympy
    trunk/dports/python/py-sympy/files/py25-sympy
    trunk/dports/python/py-sympy/files/py26-sympy
    trunk/dports/python/py-sympy/files/py27-sympy
    trunk/dports/python/py-sympy_select/
    trunk/dports/python/py-sympy_select/Portfile
    trunk/dports/python/py-sympy_select/files/
    trunk/dports/python/py-sympy_select/files/base
    trunk/dports/python/py-sympy_select/files/none

Removed Paths:
-------------
    trunk/dports/python/py25-sympy/
    trunk/dports/python/py26-sympy/
    trunk/dports/python/py27-sympy/

Modified: trunk/dports/python/py-sympy/Portfile
===================================================================
--- trunk/dports/python/py-sympy/Portfile	2011-08-08 06:23:42 UTC (rev 82097)
+++ trunk/dports/python/py-sympy/Portfile	2011-08-08 07:33:15 UTC (rev 82098)
@@ -2,13 +2,19 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python24 1.0
+PortGroup           python 1.0
+PortGroup           select 1.0
 
 name                py-sympy
-version             0.6.6
-categories          python math
-maintainers         nomaintainer
+version             0.7.1
+revision            0
+categories-append   science math
+license             BSD
+platforms           darwin
+supported_archs     noarch
 
+maintainers         stromnov openmaintainer
+
 description         Python module for symbolic mathematics.
 long_description \
     SymPy is a Python library for symbolic mathematics. It aims to \
@@ -17,21 +23,57 @@
     and easily extensible. SymPy is written entirely in Python and does \
     not require any external libraries.
 
-platforms           darwin
-distname            sympy-${version}
 homepage            http://code.google.com/p/sympy/
 master_sites        googlecode:sympy
 
-checksums           md5     aa7be690a1df7e7415fe968f5e076733 \
-                    sha1    aad5f919552a4e3710baee83ef0b2573d1950881 \
-                    rmd160  663671a544d47ff25df407a6168affe7b7b89767
+checksums           md5     3847b5ed5c1531bf3c1b849dc2337253 \
+                    sha1    b8609cc7e08d2883f96526ee8a4afdc90d77b911 \
+                    rmd160  ba6f95435d72708a12e4c4285d82d5e51d38bce4
 
-post-destroot {
-    file delete ${destroot}${prefix}/bin/test ${destroot}${prefix}/bin/doctest
-    move ${destroot}${prefix}/bin/isympy \
-         ${destroot}${prefix}/bin/isympy${python.branch}
-    move ${destroot}${prefix}/share/man/man1/isympy.1 \
-         ${destroot}${prefix}/share/man/man1/isympy${python.branch}.1
+python.versions     24 25 26 27
+
+subport py24-sympy {
+    version         0.7.0
+    revision        0
+    checksums       md5     c4d00a7fe8c4cee4b3308e06bc475cf5 \
+                    sha1    b95030d8901486d51692d1dd4fe689fb569c7ff7 \
+                    rmd160  21df1e843865c52a51210542f93840e256366c3d
 }
 
+distname            sympy-${version}
+
+if {$subport != $name} {
+
+    post-destroot {
+        set gzip [findBinary gzip ${portutil::autoconf::gzip_path}]
+        if {$subport == "py24-sympy" || $subport == "py25-sympy"} {
+            move ${destroot}${prefix}/bin/isympy \
+                 ${destroot}${prefix}/bin/isympy-${python.branch}
+            move ${destroot}${prefix}/share/man/man1/isympy.1 \
+                 ${destroot}${prefix}/share/man/man1/isympy-${python.branch}.1
+            system "$gzip -9vf ${destroot}${prefix}/share/man/man1/isympy-${python.branch}.1"
+            file attributes ${destroot}${prefix}/share/man/man1/isympy-${python.branch}.1.gz \
+                -permissions 00444
+        } else {
+            system "$gzip -9vf ${destroot}${python.prefix}/share/man/man1/isympy.1"
+            file attributes ${destroot}${python.prefix}/share/man/man1/isympy.1.gz -permissions 00444
+            ln -s ${python.prefix}/share/man/man1/isympy.1.gz \
+                ${destroot}${prefix}/share/man/man1/isympy-${python.branch}.1.gz
+        }
+    }
+
+    depends_build       port:gzip
+    depends_run         port:py-sympy_select
+
+    select.group        py-sympy
+    select.file         ${filespath}/py${python.version}-sympy
+
+    notes \
+"To make the Python ${python.branch} version of py-sympy the one that is run
+when you execute the commands without a version suffix, e.g. 'isympy',
+run:
+port select --set ${select.group} [file tail ${select.file}]"
+
+}
+
 livecheck.regex     "sympy-(\\d+(?:\\.\\d+)*)${extract.suffix}"

Added: trunk/dports/python/py-sympy/files/py24-sympy
===================================================================
--- trunk/dports/python/py-sympy/files/py24-sympy	                        (rev 0)
+++ trunk/dports/python/py-sympy/files/py24-sympy	2011-08-08 07:33:15 UTC (rev 82098)
@@ -0,0 +1,2 @@
+bin/isympy-2.4
+share/man/man1/isympy-2.4.1.gz

Added: trunk/dports/python/py-sympy/files/py25-sympy
===================================================================
--- trunk/dports/python/py-sympy/files/py25-sympy	                        (rev 0)
+++ trunk/dports/python/py-sympy/files/py25-sympy	2011-08-08 07:33:15 UTC (rev 82098)
@@ -0,0 +1,2 @@
+bin/isympy-2.5
+share/man/man1/isympy-2.5.1.gz

Added: trunk/dports/python/py-sympy/files/py26-sympy
===================================================================
--- trunk/dports/python/py-sympy/files/py26-sympy	                        (rev 0)
+++ trunk/dports/python/py-sympy/files/py26-sympy	2011-08-08 07:33:15 UTC (rev 82098)
@@ -0,0 +1,2 @@
+${frameworks_dir}/Python.framework/Versions/2.6/bin/isympy
+${frameworks_dir}/Python.framework/Versions/2.6/share/man/man1/isympy.1.gz

Added: trunk/dports/python/py-sympy/files/py27-sympy
===================================================================
--- trunk/dports/python/py-sympy/files/py27-sympy	                        (rev 0)
+++ trunk/dports/python/py-sympy/files/py27-sympy	2011-08-08 07:33:15 UTC (rev 82098)
@@ -0,0 +1,2 @@
+${frameworks_dir}/Python.framework/Versions/2.7/bin/isympy
+${frameworks_dir}/Python.framework/Versions/2.7/share/man/man1/isympy.1.gz

Added: trunk/dports/python/py-sympy_select/Portfile
===================================================================
--- trunk/dports/python/py-sympy_select/Portfile	                        (rev 0)
+++ trunk/dports/python/py-sympy_select/Portfile	2011-08-08 07:33:15 UTC (rev 82098)
@@ -0,0 +1,34 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           select 1.0
+
+name                py-sympy_select
+version             0.1
+revision            0
+categories          python
+license             BSD
+
+maintainers         stromnov openmaintainer
+
+description         common files for selecting default isympy version
+long_description \
+   This port installs files that allow 'port select' to be used to \
+   create links to the preferred default version of isympy.
+
+platforms           darwin
+supported_archs     noarch
+
+homepage            http://www.macports.org/
+
+distfiles
+
+use_configure       no
+build               {}
+destroot {
+    select::install py-sympy ${filespath}/base
+    select::install py-sympy ${filespath}/none
+}
+
+livecheck.type      none

Added: trunk/dports/python/py-sympy_select/files/base
===================================================================
--- trunk/dports/python/py-sympy_select/files/base	                        (rev 0)
+++ trunk/dports/python/py-sympy_select/files/base	2011-08-08 07:33:15 UTC (rev 82098)
@@ -0,0 +1,2 @@
+bin/isympy
+share/man/man1/isympy.1.gz

Added: trunk/dports/python/py-sympy_select/files/none
===================================================================
--- trunk/dports/python/py-sympy_select/files/none	                        (rev 0)
+++ trunk/dports/python/py-sympy_select/files/none	2011-08-08 07:33:15 UTC (rev 82098)
@@ -0,0 +1,2 @@
+-
+-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110808/a35301e2/attachment.html>


More information about the macports-changes mailing list