[97277] trunk/dports/python/py-ipython

robitaille at macports.org robitaille at macports.org
Sun Sep 2 03:43:53 PDT 2012


Revision: 97277
          https://trac.macports.org/changeset/97277
Author:   robitaille at macports.org
Date:     2012-09-02 03:43:49 -0700 (Sun, 02 Sep 2012)
Log Message:
-----------
py-ipython: fix issues with manpages and ipython_select. As of IPython 0.13, the man pages were no longer being gzipped, so this caused issues with ipython_select. The easiest solution is simply to gzip the manpages on the fly (since ipython_select contains references to gzipped man pages, and python 2.4 and 2.5 require old versions of ipython which do have gzipped man pages). In addition, ipython does not appear to install man pages with Python 3, so that section of the Portfile was commented out, and the man pages were removed from files/python31 and files/python32.

Modified Paths:
--------------
    trunk/dports/python/py-ipython/Portfile
    trunk/dports/python/py-ipython/files/ipython31
    trunk/dports/python/py-ipython/files/ipython32

Modified: trunk/dports/python/py-ipython/Portfile
===================================================================
--- trunk/dports/python/py-ipython/Portfile	2012-09-02 09:43:40 UTC (rev 97276)
+++ trunk/dports/python/py-ipython/Portfile	2012-09-02 10:43:49 UTC (rev 97277)
@@ -9,7 +9,7 @@
 
 name                py-${realname}
 version             0.13
-revision            0
+revision            1
 categories          python
 license             BSD
 platforms           darwin
@@ -93,13 +93,23 @@
             }
             move ${destroot}${prefix}/share/doc/${realname} ${destroot}${prefix}/share/doc/${name}
         } elseif {$subport == "py26-${realname}" || $subport == "py27-${realname}"} {
+            # Since IPython 0.13, the man pages are no longer gzipped, so to ensure
+            # that ipython_select works correctly, we gzip the man pages.
+            set gzip [findBinary gzip ${portutil::autoconf::gzip_path}]
             foreach f {ipcluster ipcontroller ipengine iplogger ipython irunner pycolor} {
+                system "$gzip -9vf ${destroot}${python.prefix}/share/man/man1/${f}.1"
+                file attributes ${destroot}${python.prefix}/share/man/man1/${f}.1.gz -permissions 00444
                 ln -s ${python.prefix}/share/man/man1/${f}.1.gz ${destroot}${prefix}/share/man/man1/${f}-${python.branch}.1.gz
             }
+            depends_build-append port:gzip
         } elseif {$subport == "py31-${realname}" || $subport == "py32-${realname}"} {
-            foreach f {ipcluster ipcontroller ipengine iplogger ipython irunner pycolor} {
-                ln -s ${python.prefix}/share/man/man1/${f}.1.gz ${destroot}${prefix}/share/man/man1/${f}3-${python.branch}.1.gz
-            }
+            # IPython does not appear to install man pages with Python 3. If this
+            # works again in future, the man pages may have to be gzipped as for
+            # Python 2.6 and 2.7. In addition, the man pages should be added back
+            # to files/python31 and files/python32.
+            # foreach f {ipcluster ipcontroller ipengine iplogger ipython irunner pycolor} {
+            #    ln -s ${python.prefix}/share/man/man1/${f}.1.gz ${destroot}${prefix}/share/man/man1/${f}3-${python.branch}.1.gz
+            # }
         }
     }
 

Modified: trunk/dports/python/py-ipython/files/ipython31
===================================================================
--- trunk/dports/python/py-ipython/files/ipython31	2012-09-02 09:43:40 UTC (rev 97276)
+++ trunk/dports/python/py-ipython/files/ipython31	2012-09-02 10:43:49 UTC (rev 97277)
@@ -8,12 +8,12 @@
 -
 ${frameworks_dir}/Python.framework/Versions/3.1/bin/irunner3
 ${frameworks_dir}/Python.framework/Versions/3.1/bin/pycolor3
-${frameworks_dir}/Python.framework/Versions/3.1/share/man/man1/ipcluster.1.gz
-${frameworks_dir}/Python.framework/Versions/3.1/share/man/man1/ipcontroller.1.gz
-${frameworks_dir}/Python.framework/Versions/3.1/share/man/man1/ipengine.1.gz
-${frameworks_dir}/Python.framework/Versions/3.1/share/man/man1/iplogger.1.gz
-${frameworks_dir}/Python.framework/Versions/3.1/share/man/man1/ipython.1.gz
 -
 -
-${frameworks_dir}/Python.framework/Versions/3.1/share/man/man1/irunner.1.gz
-${frameworks_dir}/Python.framework/Versions/3.1/share/man/man1/pycolor.1.gz
+-
+-
+-
+-
+-
+-
+-

Modified: trunk/dports/python/py-ipython/files/ipython32
===================================================================
--- trunk/dports/python/py-ipython/files/ipython32	2012-09-02 09:43:40 UTC (rev 97276)
+++ trunk/dports/python/py-ipython/files/ipython32	2012-09-02 10:43:49 UTC (rev 97277)
@@ -8,12 +8,12 @@
 -
 ${frameworks_dir}/Python.framework/Versions/3.2/bin/irunner3
 ${frameworks_dir}/Python.framework/Versions/3.2/bin/pycolor3
-${frameworks_dir}/Python.framework/Versions/3.2/share/man/man1/ipcluster.1.gz
-${frameworks_dir}/Python.framework/Versions/3.2/share/man/man1/ipcontroller.1.gz
-${frameworks_dir}/Python.framework/Versions/3.2/share/man/man1/ipengine.1.gz
-${frameworks_dir}/Python.framework/Versions/3.2/share/man/man1/iplogger.1.gz
-${frameworks_dir}/Python.framework/Versions/3.2/share/man/man1/ipython.1.gz
 -
 -
-${frameworks_dir}/Python.framework/Versions/3.2/share/man/man1/irunner.1.gz
-${frameworks_dir}/Python.framework/Versions/3.2/share/man/man1/pycolor.1.gz
+-
+-
+-
+-
+-
+-
+-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120902/38d215bf/attachment.html>


More information about the macports-changes mailing list