[78587] trunk/dports/python

jmr at macports.org jmr at macports.org
Thu May 12 23:27:51 PDT 2011


Revision: 78587
          http://trac.macports.org/changeset/78587
Author:   jmr at macports.org
Date:     2011-05-12 23:27:50 -0700 (Thu, 12 May 2011)
Log Message:
-----------
py*-ipython: add select support (#18150)

Modified Paths:
--------------
    trunk/dports/python/py-ipython/Portfile
    trunk/dports/python/py25-ipython/Portfile
    trunk/dports/python/py26-ipython/Portfile
    trunk/dports/python/py27-ipython/Portfile

Added Paths:
-----------
    trunk/dports/python/ipython_select/
    trunk/dports/python/ipython_select/Portfile
    trunk/dports/python/ipython_select/files/
    trunk/dports/python/ipython_select/files/base
    trunk/dports/python/ipython_select/files/none
    trunk/dports/python/py-ipython/files/ipython24
    trunk/dports/python/py25-ipython/files/
    trunk/dports/python/py25-ipython/files/ipython25
    trunk/dports/python/py26-ipython/files/ipython26
    trunk/dports/python/py27-ipython/files/
    trunk/dports/python/py27-ipython/files/ipython27

Added: trunk/dports/python/ipython_select/Portfile
===================================================================
--- trunk/dports/python/ipython_select/Portfile	                        (rev 0)
+++ trunk/dports/python/ipython_select/Portfile	2011-05-13 06:27:50 UTC (rev 78587)
@@ -0,0 +1,30 @@
+# $Id$
+
+PortSystem          1.0
+PortGroup           select 1.0
+
+name                ipython_select
+version             0.1
+categories          python
+license             BSD
+maintainers         nomaintainer
+description         common files for selecting default ipython version
+long_description \
+   This port installs files that allow 'port select' to be used to \
+   create links to the preferred default version of ipython.
+
+platforms           darwin
+supported_archs     noarch
+
+homepage            http://www.macports.org/
+
+distfiles
+
+use_configure       no
+build               {}
+destroot {
+    select::install ipython ${filespath}/base
+    select::install ipython ${filespath}/none
+}
+
+livecheck.type      none


Property changes on: trunk/dports/python/ipython_select/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/python/ipython_select/files/base
===================================================================
--- trunk/dports/python/ipython_select/files/base	                        (rev 0)
+++ trunk/dports/python/ipython_select/files/base	2011-05-13 06:27:50 UTC (rev 78587)
@@ -0,0 +1,17 @@
+bin/ipcluster
+bin/ipcontroller
+bin/ipengine
+bin/iptest
+bin/ipython
+bin/ipython-wx
+bin/ipythonx
+bin/irunner
+bin/pycolor
+share/man/man1/ipcluster.1.gz
+share/man/man1/ipcontroller.1.gz
+share/man/man1/ipengine.1.gz
+share/man/man1/ipython.1.gz
+share/man/man1/ipython-wx.1.gz
+share/man/man1/ipythonx.1.gz
+share/man/man1/irunner.1.gz
+share/man/man1/pycolor.1.gz

Added: trunk/dports/python/ipython_select/files/none
===================================================================
--- trunk/dports/python/ipython_select/files/none	                        (rev 0)
+++ trunk/dports/python/ipython_select/files/none	2011-05-13 06:27:50 UTC (rev 78587)
@@ -0,0 +1,17 @@
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-

Modified: trunk/dports/python/py-ipython/Portfile
===================================================================
--- trunk/dports/python/py-ipython/Portfile	2011-05-13 04:29:38 UTC (rev 78586)
+++ trunk/dports/python/py-ipython/Portfile	2011-05-13 06:27:50 UTC (rev 78587)
@@ -3,11 +3,12 @@
 
 PortSystem              1.0
 PortGroup               python24 1.0
+PortGroup               select 1.0
 
 name                    py-ipython
 set my_name             ipython
 version                 0.9.1
-revision                1
+revision                2
 categories              python
 platforms               darwin
 maintainers             nomaintainer
@@ -30,19 +31,30 @@
 use_parallel_build      yes
 
 depends_lib-append      port:py-readline
+depends_run             port:ipython_select
 
 test.run                yes
 
 post-destroot {
-    foreach f {ipython irunner pycolor} {
-        move ${destroot}${prefix}/bin/${f} ${destroot}${prefix}/bin/${f}2.4
+    foreach f {ipcluster ipcontroller ipengine iptest ipython ipython-wx ipythonx irunner pycolor} {
+        move ${destroot}${prefix}/bin/${f} ${destroot}${prefix}/bin/${f}${python.branch}
     }
     foreach f {ipython pycolor} {
         move ${destroot}${prefix}/share/man/man1/${f}.1.gz \
-            ${destroot}${prefix}/share/man/man1/${f}2.4.1.gz
+            ${destroot}${prefix}/share/man/man1/${f}${python.branch}.1.gz
     }
+    move ${destroot}${prefix}/share/doc/${my_name} ${destroot}${prefix}/share/doc/${name}
 }
 
+select.group            $my_name
+select.file             ${filespath}/${my_name}[string map {. ""} ${python.branch}]
+
+notes \
+"To make the Python ${python.branch} version of IPython the one that is run
+when you execute the commands without a version suffix, e.g. 'ipython',
+run:
+    port select --set ${select.group} [file tail ${select.file}]"
+
 variant scientific description "Use ScientificPython to provide physical quantities support" {
     depends_lib-append      port:py-scientific
 }

Added: trunk/dports/python/py-ipython/files/ipython24
===================================================================
--- trunk/dports/python/py-ipython/files/ipython24	                        (rev 0)
+++ trunk/dports/python/py-ipython/files/ipython24	2011-05-13 06:27:50 UTC (rev 78587)
@@ -0,0 +1,17 @@
+bin/ipcluster2.4
+bin/ipcontroller2.4
+bin/ipengine2.4
+bin/iptest2.4
+bin/ipython2.4
+bin/ipython-wx2.4
+bin/ipythonx2.4
+bin/irunner2.4
+bin/pycolor2.4
+-
+-
+-
+share/man/man1/ipython2.4.1.gz
+-
+-
+-
+share/man/man1/pycolor2.4.1.gz

Modified: trunk/dports/python/py25-ipython/Portfile
===================================================================
--- trunk/dports/python/py25-ipython/Portfile	2011-05-13 04:29:38 UTC (rev 78586)
+++ trunk/dports/python/py25-ipython/Portfile	2011-05-13 06:27:50 UTC (rev 78587)
@@ -3,11 +3,12 @@
 
 PortSystem              1.0
 PortGroup               python25 1.0
+PortGroup               select 1.0
 
 name                    py25-ipython
 set my_name             ipython
 version                 0.10
-revision                1
+revision                2
 categories              python
 platforms               darwin
 maintainers             nomaintainer
@@ -29,18 +30,30 @@
 
 use_parallel_build      yes
 
+depends_run             port:ipython_select
+
 test.run                no
 
 post-destroot {
-    foreach f {ipython irunner pycolor} {
-        move ${destroot}${prefix}/bin/${f} ${destroot}${prefix}/bin/${f}2.5
+    foreach f {ipcluster ipcontroller ipengine iptest ipython ipython-wx ipythonx irunner pycolor} {
+        move ${destroot}${prefix}/bin/${f} ${destroot}${prefix}/bin/${f}${python.branch}
     }
-    foreach f {ipython pycolor} {
+    foreach f {ipcluster ipcontroller ipengine ipython ipython-wx ipythonx irunner pycolor} {
         move ${destroot}${prefix}/share/man/man1/${f}.1.gz \
-            ${destroot}${prefix}/share/man/man1/${f}2.5.1.gz
+            ${destroot}${prefix}/share/man/man1/${f}${python.branch}.1.gz
     }
+    move ${destroot}${prefix}/share/doc/${my_name} ${destroot}${prefix}/share/doc/${name}
 }
 
+select.group            $my_name
+select.file             ${filespath}/${my_name}[string map {. ""} ${python.branch}]
+
+notes \
+"To make the Python ${python.branch} version of IPython the one that is run
+when you execute the commands without a version suffix, e.g. 'ipython',
+run:
+    port select --set ${select.group} [file tail ${select.file}]"
+
 variant scientific description "Use ScientificPython to provide physical quantities support" {
     depends_lib-append      port:py25-scientific
 }

Added: trunk/dports/python/py25-ipython/files/ipython25
===================================================================
--- trunk/dports/python/py25-ipython/files/ipython25	                        (rev 0)
+++ trunk/dports/python/py25-ipython/files/ipython25	2011-05-13 06:27:50 UTC (rev 78587)
@@ -0,0 +1,17 @@
+bin/ipcluster2.5
+bin/ipcontroller2.5
+bin/ipengine2.5
+bin/iptest2.5
+bin/ipython2.5
+bin/ipython-wx2.5
+bin/ipythonx2.5
+bin/irunner2.5
+bin/pycolor2.5
+share/man/man1/ipcluster2.5.1.gz
+share/man/man1/ipcontroller2.5.1.gz
+share/man/man1/ipengine2.5.1.gz
+share/man/man1/ipython2.5.1.gz
+share/man/man1/ipython-wx2.5.1.gz
+share/man/man1/ipythonx2.5.1.gz
+share/man/man1/irunner2.5.1.gz
+share/man/man1/pycolor2.5.1.gz

Modified: trunk/dports/python/py26-ipython/Portfile
===================================================================
--- trunk/dports/python/py26-ipython/Portfile	2011-05-13 04:29:38 UTC (rev 78586)
+++ trunk/dports/python/py26-ipython/Portfile	2011-05-13 06:27:50 UTC (rev 78587)
@@ -3,11 +3,12 @@
 
 PortSystem              1.0
 PortGroup               python26 1.0
+PortGroup               select 1.0
 
 name                    py26-ipython
 set my_name             ipython
 version                 0.10.1
-revision                2
+revision                3
 categories              python
 platforms               darwin
 maintainers             akitada openmaintainer
@@ -29,17 +30,28 @@
 
 use_parallel_build      yes
 
+depends_run             port:ipython_select
+
 test.run                no
 
 patchfiles              genutils_curses.patch
 patch.dir               ${worksrcpath}/IPython
 
 post-destroot {
-    foreach f {ipython pycolor} {
+    foreach f {ipcluster ipcontroller ipengine ipython ipython-wx ipythonx irunner pycolor} {
         ln -s ${python.prefix}/share/man/man1/${f}.1.gz ${destroot}${prefix}/share/man/man1/${f}${python.branch}.1.gz
     }
 }
 
+select.group            $my_name
+select.file             ${filespath}/${my_name}[string map {. ""} ${python.branch}]
+
+notes \
+"To make the Python ${python.branch} version of IPython the one that is run
+when you execute the commands without a version suffix, e.g. 'ipython',
+run:
+    port select --set ${select.group} [file tail ${select.file}]"
+
 variant scientific description "Use ScientificPython to provide physical quantities support" {
     depends_lib-append      port:py26-scientific
 }

Added: trunk/dports/python/py26-ipython/files/ipython26
===================================================================
--- trunk/dports/python/py26-ipython/files/ipython26	                        (rev 0)
+++ trunk/dports/python/py26-ipython/files/ipython26	2011-05-13 06:27:50 UTC (rev 78587)
@@ -0,0 +1,17 @@
+${frameworks_dir}/Python.framework/Versions/2.6/bin/ipcluster
+${frameworks_dir}/Python.framework/Versions/2.6/bin/ipcontroller
+${frameworks_dir}/Python.framework/Versions/2.6/bin/ipengine
+${frameworks_dir}/Python.framework/Versions/2.6/bin/iptest
+${frameworks_dir}/Python.framework/Versions/2.6/bin/ipython
+${frameworks_dir}/Python.framework/Versions/2.6/bin/ipython-wx
+${frameworks_dir}/Python.framework/Versions/2.6/bin/ipythonx
+${frameworks_dir}/Python.framework/Versions/2.6/bin/irunner
+${frameworks_dir}/Python.framework/Versions/2.6/bin/pycolor
+${frameworks_dir}/Python.framework/Versions/2.6/share/man/man1/ipcluster.1.gz
+${frameworks_dir}/Python.framework/Versions/2.6/share/man/man1/ipcontroller.1.gz
+${frameworks_dir}/Python.framework/Versions/2.6/share/man/man1/ipengine.1.gz
+${frameworks_dir}/Python.framework/Versions/2.6/share/man/man1/ipython.1.gz
+${frameworks_dir}/Python.framework/Versions/2.6/share/man/man1/ipython-wx.1.gz
+${frameworks_dir}/Python.framework/Versions/2.6/share/man/man1/ipythonx.1.gz
+${frameworks_dir}/Python.framework/Versions/2.6/share/man/man1/irunner.1.gz
+${frameworks_dir}/Python.framework/Versions/2.6/share/man/man1/pycolor.1.gz

Modified: trunk/dports/python/py27-ipython/Portfile
===================================================================
--- trunk/dports/python/py27-ipython/Portfile	2011-05-13 04:29:38 UTC (rev 78586)
+++ trunk/dports/python/py27-ipython/Portfile	2011-05-13 06:27:50 UTC (rev 78587)
@@ -3,11 +3,12 @@
 
 PortSystem              1.0
 PortGroup               python27 1.0
+PortGroup               select 1.0
 
 name                    py27-ipython
 set my_name             ipython
 version                 0.10.1
-revision                1
+revision                2
 categories              python
 platforms               darwin
 maintainers             akitada openmaintainer
@@ -29,14 +30,25 @@
 
 use_parallel_build      yes
 
+depends_run             port:ipython_select
+
 test.run                no
 
 post-destroot {
-    foreach f {ipython pycolor} {
+    foreach f {ipcluster ipcontroller ipengine ipython ipython-wx ipythonx irunner pycolor} {
         ln -s ${python.prefix}/share/man/man1/${f}.1.gz ${destroot}${prefix}/share/man/man1/${f}${python.branch}.1.gz
     }
 }
 
+select.group            $my_name
+select.file             ${filespath}/${my_name}[string map {. ""} ${python.branch}]
+
+notes \
+"To make the Python ${python.branch} version of IPython the one that is run
+when you execute the commands without a version suffix, e.g. 'ipython',
+run:
+    port select --set ${select.group} [file tail ${select.file}]"
+
 variant scientific description "Use ScientificPython to provide physical quantities support" {
     depends_lib-append      port:py27-scientific
 }

Added: trunk/dports/python/py27-ipython/files/ipython27
===================================================================
--- trunk/dports/python/py27-ipython/files/ipython27	                        (rev 0)
+++ trunk/dports/python/py27-ipython/files/ipython27	2011-05-13 06:27:50 UTC (rev 78587)
@@ -0,0 +1,17 @@
+${frameworks_dir}/Python.framework/Versions/2.7/bin/ipcluster
+${frameworks_dir}/Python.framework/Versions/2.7/bin/ipcontroller
+${frameworks_dir}/Python.framework/Versions/2.7/bin/ipengine
+${frameworks_dir}/Python.framework/Versions/2.7/bin/iptest
+${frameworks_dir}/Python.framework/Versions/2.7/bin/ipython
+${frameworks_dir}/Python.framework/Versions/2.7/bin/ipython-wx
+${frameworks_dir}/Python.framework/Versions/2.7/bin/ipythonx
+${frameworks_dir}/Python.framework/Versions/2.7/bin/irunner
+${frameworks_dir}/Python.framework/Versions/2.7/bin/pycolor
+${frameworks_dir}/Python.framework/Versions/2.7/share/man/man1/ipcluster.1.gz
+${frameworks_dir}/Python.framework/Versions/2.7/share/man/man1/ipcontroller.1.gz
+${frameworks_dir}/Python.framework/Versions/2.7/share/man/man1/ipengine.1.gz
+${frameworks_dir}/Python.framework/Versions/2.7/share/man/man1/ipython.1.gz
+${frameworks_dir}/Python.framework/Versions/2.7/share/man/man1/ipython-wx.1.gz
+${frameworks_dir}/Python.framework/Versions/2.7/share/man/man1/ipythonx.1.gz
+${frameworks_dir}/Python.framework/Versions/2.7/share/man/man1/irunner.1.gz
+${frameworks_dir}/Python.framework/Versions/2.7/share/man/man1/pycolor.1.gz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110512/80831896/attachment-0001.html>


More information about the macports-changes mailing list