[88303] trunk/dports/python

singingwolfboy at macports.org singingwolfboy at macports.org
Tue Dec 27 18:38:59 PST 2011


Revision: 88303
          http://trac.macports.org/changeset/88303
Author:   singingwolfboy at macports.org
Date:     2011-12-27 18:38:58 -0800 (Tue, 27 Dec 2011)
Log Message:
-----------
py-bpython: unified ports, updated to 0.10.1, added bpython_select port

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

Added Paths:
-----------
    trunk/dports/python/bpython_select/
    trunk/dports/python/bpython_select/Portfile
    trunk/dports/python/bpython_select/files/
    trunk/dports/python/bpython_select/files/base
    trunk/dports/python/bpython_select/files/none
    trunk/dports/python/py-bpython/
    trunk/dports/python/py-bpython/files/
    trunk/dports/python/py-bpython/files/bpython25
    trunk/dports/python/py-bpython/files/bpython26
    trunk/dports/python/py-bpython/files/bpython27
    trunk/dports/python/py-bpython/files/bpython31
    trunk/dports/python/py-bpython/files/bpython32

Removed Paths:
-------------
    trunk/dports/python/py25-bpython/
    trunk/dports/python/py26-bpython/

Added: trunk/dports/python/bpython_select/Portfile
===================================================================
--- trunk/dports/python/bpython_select/Portfile	                        (rev 0)
+++ trunk/dports/python/bpython_select/Portfile	2011-12-28 02:38:58 UTC (rev 88303)
@@ -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                bpython_select
+version             0.1
+revision            0
+categories          python
+license             BSD
+
+maintainers         singingwolfboy openmaintainer
+
+description         common files for selecting default bpython version
+long_description \
+   This port installs files that allow 'port select' to be used to \
+   create links to the preferred default version of bpython
+
+platforms           darwin
+supported_archs     noarch
+
+homepage            http://www.macports.org/
+
+distfiles
+
+use_configure       no
+build               {}
+destroot {
+    select::install bpython ${filespath}/base
+    select::install bpython ${filespath}/none
+}
+
+livecheck.type      none


Property changes on: trunk/dports/python/bpython_select/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id

Added: trunk/dports/python/bpython_select/files/base
===================================================================
--- trunk/dports/python/bpython_select/files/base	                        (rev 0)
+++ trunk/dports/python/bpython_select/files/base	2011-12-28 02:38:58 UTC (rev 88303)
@@ -0,0 +1,5 @@
+bin/bpython
+bin/bpython-gtk
+bin/bpython-urwid
+share/man/man1/bpython.1
+share/man/man5/bpython-config.5

Added: trunk/dports/python/bpython_select/files/none
===================================================================
--- trunk/dports/python/bpython_select/files/none	                        (rev 0)
+++ trunk/dports/python/bpython_select/files/none	2011-12-28 02:38:58 UTC (rev 88303)
@@ -0,0 +1 @@
+-

Modified: trunk/dports/python/py-bpython/Portfile
===================================================================
--- trunk/dports/python/py25-bpython/Portfile	2011-12-27 18:29:59 UTC (rev 88302)
+++ trunk/dports/python/py-bpython/Portfile	2011-12-28 02:38:58 UTC (rev 88303)
@@ -2,10 +2,11 @@
 # $Id$
 
 PortSystem              1.0
-PortGroup               python25 1.0
+PortGroup               python 1.0
+PortGroup               select 1.0
 
-name                    py25-bpython
-version                 0.9.7.1
+name                    py-bpython
+version                 0.10.1
 platforms               darwin
 categories              python 
 maintainers             singingwolfboy openmaintainer
@@ -16,22 +17,52 @@
 homepage                http://www.bpython-interpreter.org/
 master_sites            ${homepage}/releases/
 distname                bpython-${version}
+checksums               rmd160  4a62158fce1e86c906900913e10c342820936050 \
+                        sha256  73546a3162ddd9da400ded365c65393989221397da54690e4d25f1ddef3dbc16
 
-checksums           md5     f32ce6aa8ae6af8d2cf65e13f58859d4 \
-                    sha1    4ab3b8c06e3ab0bd30fc20f52cd97c1687731699 \
-                    rmd160  4e5f3e1603957bdd0984024d0abb0e3e59f33aa8
-depends_lib-append      port:py25-parsing \
-                        port:py25-pygments \
-                        port:py25-distribute
+python.versions         25 26 27 31 32
+select.group            bpython
+select.file             ${filespath}/bpython${python.version} 
 
-post-destroot {
-    set sharedoc ${destroot}${prefix}/share/bpython2.5
-    xinstall -d ${sharedoc}
-    xinstall ${worksrcpath}/sample-config ${sharedoc}
-    xinstall ${worksrcpath}/sample.theme ${sharedoc}
-    xinstall ${worksrcpath}/light.theme ${sharedoc}
-    
-    set manroot ${destroot}${prefix}/share/man/
-    xinstall -d ${manroot}/man5
-    xinstall -d ${manroot}/man1
-}                        
+subport py25-bpython {
+    python.link_binaries    no
+    python.link_binaries_suffix "-2.5"
+    post-destroot {
+        foreach bin [glob -nocomplain -tails -directory "${destroot}${prefix}/bin" *] {
+            if {[catch {file type "${destroot}${prefix}/bin/${bin}${python.link_binaries_suffix}"}]} {
+                move "${destroot}${prefix}/bin/${bin}" "${destroot}${prefix}/bin/${bin}${python.link_binaries_suffix}"
+            }
+        }
+    }
+}
+
+
+if {$name != $subport} {
+    depends_lib-append      port:py${python.version}-parsing \
+                            port:py${python.version}-pygments \
+                            port:py${python.version}-distribute
+
+    post-destroot {
+        if {${python.branch} == "2.5"} {
+            set pyetc ${destroot}${prefix}/share/${subport}/etc
+            xinstall -d ${pyetc}
+            set themedir ${destroot}${prefix}/share/${subport}/themes
+            xinstall -d ${themedir}
+
+            set mandir ${destroot}${prefix}/share/${subport}/man
+            xinstall -d ${mandir}/man1 ${mandir}/man5
+            xinstall ${worksrcpath}/doc/bpython.1 ${mandir}/man1
+            xinstall ${worksrcpath}/doc/bpython-config.5 ${mandir}/man5
+        } else {
+            set pyetc ${destroot}${python.prefix}/etc
+            xinstall -d ${pyetc}
+            set themedir ${destroot}${python.prefix}/share/themes
+            xinstall -d ${themedir}
+            set mandir ${destroot}${prefix}/share/${subport}/man
+        }
+
+        xinstall -W ${worksrcpath} sample-config ${pyetc}
+        xinstall -W ${worksrcpath} sample.theme light.theme \
+            ${themedir}
+    }                        
+}

Added: trunk/dports/python/py-bpython/files/bpython25
===================================================================
--- trunk/dports/python/py-bpython/files/bpython25	                        (rev 0)
+++ trunk/dports/python/py-bpython/files/bpython25	2011-12-28 02:38:58 UTC (rev 88303)
@@ -0,0 +1,5 @@
+bin/bpython-2.5
+bin/bpython-gtk-2.5
+bin/bpython-urwid-2.5
+${prefix}/share/py25-bpython/man/man1/bpython.1
+${prefix}/share/py25-bpython/man/man5/bpython-config.5

Added: trunk/dports/python/py-bpython/files/bpython26
===================================================================
--- trunk/dports/python/py-bpython/files/bpython26	                        (rev 0)
+++ trunk/dports/python/py-bpython/files/bpython26	2011-12-28 02:38:58 UTC (rev 88303)
@@ -0,0 +1,7 @@
+bin/bpython-2.6
+bin/bpython-gtk-2.6
+bin/bpython-urwid-2.6
+${frameworks_dir}/Python.framework/Versions/2.6/man/man1/bpython.1
+${frameworks_dir}/Python.framework/Versions/2.6/man/man5/bpython-config.5
+${frameworks_dir}/Python.framework/Versions/2.6/share/themes/light.theme
+${frameworks_dir}/Python.framework/Versions/2.6/share/themes/sample.theme

Added: trunk/dports/python/py-bpython/files/bpython27
===================================================================
--- trunk/dports/python/py-bpython/files/bpython27	                        (rev 0)
+++ trunk/dports/python/py-bpython/files/bpython27	2011-12-28 02:38:58 UTC (rev 88303)
@@ -0,0 +1,5 @@
+bin/bpython-2.7
+bin/bpython-gtk-2.7
+bin/bpython-urwid-2.7
+${frameworks_dir}/Python.framework/Versions/2.7/share/man/man1/bpython.1
+${frameworks_dir}/Python.framework/Versions/2.7/share/man/man5/bpython-config.5

Added: trunk/dports/python/py-bpython/files/bpython31
===================================================================
--- trunk/dports/python/py-bpython/files/bpython31	                        (rev 0)
+++ trunk/dports/python/py-bpython/files/bpython31	2011-12-28 02:38:58 UTC (rev 88303)
@@ -0,0 +1,7 @@
+bin/bpython-3.1
+bin/bpython-gtk-3.1
+bin/bpython-urwid-3.1
+${frameworks_dir}/Python.framework/Versions/3,1/man/man1/bpython.1
+${frameworks_dir}/Python.framework/Versions/3.1/man/man5/bpython-config.5
+${frameworks_dir}/Python.framework/Versions/3.1/share/themes/light.theme
+${frameworks_dir}/Python.framework/Versions/3.1/share/themes/sample.theme

Added: trunk/dports/python/py-bpython/files/bpython32
===================================================================
--- trunk/dports/python/py-bpython/files/bpython32	                        (rev 0)
+++ trunk/dports/python/py-bpython/files/bpython32	2011-12-28 02:38:58 UTC (rev 88303)
@@ -0,0 +1,7 @@
+bin/bpython-3.2
+bin/bpython-gtk-3.2
+bin/bpython-urwid-3.2
+${frameworks_dir}/Python.framework/Versions/3.2/man/man1/bpython.1
+${frameworks_dir}/Python.framework/Versions/3.2/man/man5/bpython-config.5
+${frameworks_dir}/Python.framework/Versions/3.2/share/themes/light.theme
+${frameworks_dir}/Python.framework/Versions/3.2/share/themes/sample.theme
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111227/d9495100/attachment.html>


More information about the macports-changes mailing list