Revision: 98398 http://trac.macports.org//changeset/98398 Author: adfernandes@macports.org Date: 2012-10-04 10:19:58 -0700 (Thu, 04 Oct 2012) Log Message: ----------- py-ipython: add python33 variant with version-specfic patch Modified Paths: -------------- trunk/dports/python/py-ipython/Portfile Added Paths: ----------- trunk/dports/python/py-ipython/files/ipython33 trunk/dports/python/py-ipython/files/ipython33-version.diff Modified: trunk/dports/python/py-ipython/Portfile =================================================================== --- trunk/dports/python/py-ipython/Portfile 2012-10-04 16:59:29 UTC (rev 98397) +++ trunk/dports/python/py-ipython/Portfile 2012-10-04 17:19:58 UTC (rev 98398) @@ -31,7 +31,7 @@ checksums rmd160 3ef3a81fe7aa3aa5512eb56ee9a748ac3749a805 \ sha256 a435cc21921817bdeb5ed91e406fc58f8af1d44f8208dd8a4bc691c9c48d3a19 -python.versions 24 25 26 27 31 32 +python.versions 24 25 26 27 31 32 33 subport py24-${realname} { version 0.9.1 @@ -53,7 +53,7 @@ rmd160 365a4eb9b534df1a9aa8717f173e9a032224ea01 } -if {$subport != "py31-${realname}" && $subport != "py32-${realname}" && $subport != $name} { +if {$subport != "py31-${realname}" && $subport != "py32-${realname}" && $subport != "py33-${realname}" && $subport != $name} { variant scientific description "Use ScientificPython to provide physical quantities support" { depends_lib-append port:py${python.version}-scientific } @@ -102,7 +102,7 @@ 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}"} { + } elseif {$subport == "py31-${realname}" || $subport == "py32-${realname}" || $subport == "py33-${realname}"} { # 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 @@ -129,6 +129,12 @@ " } +if {$subport == "py33-${realname}"} { + # https://github.com/ipython/ipython/issues/2343 + # It has been fixed for ipython > 0.13 + patchfiles-append ipython33-version.diff +} + if {$subport == "py24-${realname}" || $subport == "py25-${realname}"} { livecheck.type none } else { Copied: trunk/dports/python/py-ipython/files/ipython33 (from rev 98395, trunk/dports/python/py-ipython/files/ipython32) =================================================================== --- trunk/dports/python/py-ipython/files/ipython33 (rev 0) +++ trunk/dports/python/py-ipython/files/ipython33 2012-10-04 17:19:58 UTC (rev 98398) @@ -0,0 +1,19 @@ +${frameworks_dir}/Python.framework/Versions/3.3/bin/ipcluster3 +${frameworks_dir}/Python.framework/Versions/3.3/bin/ipcontroller3 +${frameworks_dir}/Python.framework/Versions/3.3/bin/ipengine3 +${frameworks_dir}/Python.framework/Versions/3.3/bin/iplogger3 +${frameworks_dir}/Python.framework/Versions/3.3/bin/iptest3 +${frameworks_dir}/Python.framework/Versions/3.3/bin/ipython3 +- +- +${frameworks_dir}/Python.framework/Versions/3.3/bin/irunner3 +${frameworks_dir}/Python.framework/Versions/3.3/bin/pycolor3 +- +- +- +- +- +- +- +- +- Added: trunk/dports/python/py-ipython/files/ipython33-version.diff =================================================================== --- trunk/dports/python/py-ipython/files/ipython33-version.diff (rev 0) +++ trunk/dports/python/py-ipython/files/ipython33-version.diff 2012-10-04 17:19:58 UTC (rev 98398) @@ -0,0 +1,20 @@ +diff -uNr work/ipython-0.13.orig/IPython/core/magic_arguments.py work/ipython-0.13/IPython/core/magic_arguments.py +--- IPython/core/magic_arguments.py 2012-06-12 01:49:08.000000000 -0400 ++++ IPython/core/magic_arguments.py 2012-10-04 13:09:42.000000000 -0400 +@@ -66,7 +66,6 @@ + usage=None, + description=None, + epilog=None, +- version=None, + parents=None, + formatter_class=MagicHelpFormatter, + prefix_chars='-', +@@ -76,7 +75,7 @@ + if parents is None: + parents = [] + super(MagicArgumentParser, self).__init__(prog=prog, usage=usage, +- description=description, epilog=epilog, version=version, ++ description=description, epilog=epilog, + parents=parents, formatter_class=formatter_class, + prefix_chars=prefix_chars, argument_default=argument_default, + conflict_handler=conflict_handler, add_help=add_help)
participants (1)
-
adfernandes@macports.org