[55244] trunk/dports/python

macsforever2000 at macports.org macsforever2000 at macports.org
Fri Aug 7 15:08:42 PDT 2009


Revision: 55244
          http://trac.macports.org/changeset/55244
Author:   macsforever2000 at macports.org
Date:     2009-08-07 15:08:40 -0700 (Fri, 07 Aug 2009)
Log Message:
-----------
Added new ports for py25-mayavi. (#19567)

Added Paths:
-----------
    trunk/dports/python/py25-apptools/
    trunk/dports/python/py25-apptools/Portfile
    trunk/dports/python/py25-apptools/files/
    trunk/dports/python/py25-apptools/files/changeset_r24035.diff
    trunk/dports/python/py25-enthoughtbase/
    trunk/dports/python/py25-enthoughtbase/Portfile
    trunk/dports/python/py25-enthoughtbase/files/
    trunk/dports/python/py25-enthoughtbase/files/changeset_r24034.diff
    trunk/dports/python/py25-envisagecore/
    trunk/dports/python/py25-envisagecore/Portfile
    trunk/dports/python/py25-envisageplugins/
    trunk/dports/python/py25-envisageplugins/Portfile
    trunk/dports/python/py25-mayavi/
    trunk/dports/python/py25-mayavi/Portfile
    trunk/dports/python/py25-mayavi/files/
    trunk/dports/python/py25-mayavi/files/changeset_r24036.diff
    trunk/dports/python/py25-traits/
    trunk/dports/python/py25-traits/Portfile
    trunk/dports/python/py25-traitsbackendwx/
    trunk/dports/python/py25-traitsbackendwx/Portfile
    trunk/dports/python/py25-traitsbackendwx/files/
    trunk/dports/python/py25-traitsbackendwx/files/patch-traitsbackendwx_helper.py.diff
    trunk/dports/python/py25-traitsgui/
    trunk/dports/python/py25-traitsgui/Portfile

Added: trunk/dports/python/py25-apptools/Portfile
===================================================================
--- trunk/dports/python/py25-apptools/Portfile	                        (rev 0)
+++ trunk/dports/python/py25-apptools/Portfile	2009-08-07 22:08:40 UTC (rev 55244)
@@ -0,0 +1,30 @@
+# -*- 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
+# JJS 3/24/09
+
+PortSystem	1.0
+PortGroup	python25 1.0
+
+name                py25-apptools
+version             3.2.0
+categories-append   devel
+maintainers         vcn.com:jjstickel openmaintainer 
+description         The Enthought apptools package
+long_description    The Enthought Tool Suite includes a set of packages\
+    that we have found useful in creating a number of applications.\
+    They implement functionality that is commonly needed by many applications.\
+    These packages are distributed together as the AppTools project.
+platforms           darwin
+homepage            http://code.enthought.com/projects/app_tools.php
+master_sites        http://www.enthought.com/repo/ETS/
+distname            AppTools-${version}
+checksums           md5 8aa64f9e04f3cdcdaab91d73a9790928
+
+depends_build-append  port:py25-setuptools
+
+depends_lib-append  port:py25-configobj\
+    port:py25-numpy\
+    port:py25-envisagecore\
+    port:py25-traitsgui
+
+patchfiles          changeset_r24035.diff
+patch.pre_args      -p3


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

Added: trunk/dports/python/py25-apptools/files/changeset_r24035.diff
===================================================================
--- trunk/dports/python/py25-apptools/files/changeset_r24035.diff	                        (rev 0)
+++ trunk/dports/python/py25-apptools/files/changeset_r24035.diff	2009-08-07 22:08:40 UTC (rev 55244)
@@ -0,0 +1,12 @@
+Index: /AppTools/trunk/enthought/preferences/scoped_preferences.py
+===================================================================
+--- /AppTools/trunk/enthought/preferences/scoped_preferences.py (revision 23752)
++++ /AppTools/trunk/enthought/preferences/scoped_preferences.py (revision 24035)
+@@ -321,5 +321,6 @@
+         application_scope = Preferences(
+             name     = 'application',
+-            filename = join(ETSConfig.application_home, 'preferences.ini')
++            filename = join(ETSConfig.get_application_home(create=False), 
++                            'preferences.ini')
+         )
+ 

Added: trunk/dports/python/py25-enthoughtbase/Portfile
===================================================================
--- trunk/dports/python/py25-enthoughtbase/Portfile	                        (rev 0)
+++ trunk/dports/python/py25-enthoughtbase/Portfile	2009-08-07 22:08:40 UTC (rev 55244)
@@ -0,0 +1,23 @@
+# -*- 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
+# JJS 5/1/09
+
+PortSystem	1.0
+PortGroup	python25 1.0
+
+name                py25-enthoughtbase
+version             3.0.2
+categories-append   devel
+maintainers         vcn.com:jjstickel openmaintainer 
+description         The Enthought base package
+long_description    The EnthoughtBase project includes a few core packages\
+    that are used by many other projects in the Enthought Tool Suite
+platforms           darwin
+homepage            http://code.enthought.com/projects/enthought_base.php
+master_sites        http://www.enthought.com/repo/ETS/
+distname            EnthoughtBase-${version}
+checksums           md5 e4463c165534f1d31ad1ab5c2eced1b6
+
+depends_build-append  port:py25-setuptools
+
+patchfiles          changeset_r24034.diff
+patch.pre_args      -p3


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

Added: trunk/dports/python/py25-enthoughtbase/files/changeset_r24034.diff
===================================================================
--- trunk/dports/python/py25-enthoughtbase/files/changeset_r24034.diff	                        (rev 0)
+++ trunk/dports/python/py25-enthoughtbase/files/changeset_r24034.diff	2009-08-07 22:08:40 UTC (rev 55244)
@@ -0,0 +1,176 @@
+Index: /EnthoughtBase/trunk/enthought/etsconfig/etsconfig.py
+===================================================================
+--- /EnthoughtBase/trunk/enthought/etsconfig/etsconfig.py (revision 22408)
++++ /EnthoughtBase/trunk/enthought/etsconfig/etsconfig.py (revision 24034)
+@@ -49,23 +49,33 @@
+     #### properties ###########################################################
+ 
++    def get_application_data(self, create=False):
++        """ Return the application data directory path.
++        
++            **Parameters**
++
++            create: create the corresponding directory or not
++
++            **Notes**
++
++            This is a directory that applications and packages can safely
++            write non-user accessible data to i.e. configuration
++            information, preferences etc.
++
++            Do not put anything in here that the user might want to navigate to
++            e.g. projects, user data files etc.
++
++            The actual location differs between operating systems.
++       """
++        if self._application_data is None:
++            self._application_data = \
++                    self._initialize_application_data(create=create)
++
++        return self._application_data
++        
++
+     def _get_application_data(self):
+-        """
+-        Property getter.
+-
+-        This is a directory that applications and packages can safely write
+-        non-user accessible data to i.e. configuration information, preferences
+-        etc.
+-
+-        Do not put anything in here that the user might want to navigate to
+-        e.g. projects, user data files etc.
+-
+-        The actual location differs between operating systems.
+-
+-        """
+-
+-        if self._application_data is None:
+-            self._application_data = self._initialize_application_data()
+-
+-        return self._application_data
++        """ Property getter, see get_application_data's docstring.
++        """
++        return self.get_application_data(create=True)
+ 
+ 
+@@ -80,41 +90,54 @@
+         return
+ 
+-
++    def get_application_home(self, create=False):
++        """ Return the application home directory path.
++        
++            **Parameters**
++
++            create: create the corresponding directory or not
++
++            **Notes**
++
++            This is a directory named after the current, running
++            application that imported this module that applications and
++            packages can safely write non-user accessible data to i.e.
++            configuration information, preferences etc.  It is a
++            sub-directory of self.application_data, named after the
++            directory that contains the "main" python script that started
++            the process.  For example, if application foo is started with
++            a script named "run.py" in a directory named "foo", then the
++            application home would be: <ETSConfig.application_data>/foo,
++            regardless of if it was launched with "python
++            <path_to_foo>/run.py" or "cd <path_to_foo>; python run.py"
++
++            This is useful for library modules used in apps that need to
++            store state, preferences, etc. for the specific app only, and
++            not for all apps which use that library module.  If the
++            library module uses ETSConfig.application_home, they can
++            store prefs for the app all in one place and do not need to
++            know the details of where each app might reside.
++
++            Do not put anything in here that the user might want to
++            navigate to e.g. projects, user home files etc.
++
++            The actual location differs between operating systems.
++
++       """
++        if self._application_home is None:
++            self._application_home = path.join(
++                                self.get_application_data(create=create),
++                                self._get_application_dirname())
++
++        return self._application_home
++
++
++ 
+     application_data = property(_get_application_data, _set_application_data)
+ 
+ 
+     def _get_application_home(self):
+-        """
+-        Property getter.
+-
+-        This is a directory named after the current, running application that
+-        imported this module that applications and packages can safely write
+-        non-user accessible data to i.e. configuration information, preferences
+-        etc.  It is a sub-directory of self.application_data, named after the
+-        directory that contains the "main" python script that started the
+-        process.  For example, if application foo is started with a script named
+-        "run.py" in a directory named "foo", then the application home would be:
+-        <ETSConfig.application_data>/foo, regardless of if it was launched
+-        with "python <path_to_foo>/run.py" or "cd <path_to_foo>; python run.py"
+-
+-        This is useful for library modules used in apps that need to store
+-        state, preferences, etc. for the specific app only, and not for all apps
+-        which use that library module.  If the library module uses
+-        ETSConfig.application_home, they can store prefs for the app all in
+-        one place and do not need to know the details of where each app might
+-        reside.
+-
+-        Do not put anything in here that the user might want to navigate to
+-        e.g. projects, user home files etc.
+-
+-        The actual location differs between operating systems.
+-
+-        """
+-
+-        if self._application_home is None:
+-            self._application_home = path.join(self.application_data,
+-                                               self._get_application_dirname())
+-
+-        return self._application_home
++        """ Property getter, see get_application_home's docstring.
++        """
++        return self.get_application_home(create=True)
+ 
+ 
+@@ -294,5 +317,5 @@
+ 
+ 
+-    def _initialize_application_data(self):
++    def _initialize_application_data(self, create=True):
+         """
+         Initializes the (default) application data directory.
+@@ -322,13 +345,15 @@
+         application_data = os.path.join(parent_directory, directory_name)
+ 
+-        # If a file already exists with this name then make sure that it is
+-        # a directory!
+-        if os.path.exists(application_data):
+-            if not os.path.isdir(application_data):
+-                raise ValueError('File "%s" already exists' % application_data)
+-
+-        # Otherwise, create the directory.
+-        else:
+-            os.makedirs(application_data)
++        if create:
++            # If a file already exists with this name then make sure that it is
++            # a directory!
++            if os.path.exists(application_data):
++                if not os.path.isdir(application_data):
++                    raise ValueError('File "%s" already exists' 
++                                                    % application_data)
++
++            # Otherwise, create the directory.
++            else:
++                os.makedirs(application_data)
+ 
+         return application_data

Added: trunk/dports/python/py25-envisagecore/Portfile
===================================================================
--- trunk/dports/python/py25-envisagecore/Portfile	                        (rev 0)
+++ trunk/dports/python/py25-envisagecore/Portfile	2009-08-07 22:08:40 UTC (rev 55244)
@@ -0,0 +1,22 @@
+# -*- 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
+# JJS 3/24/09
+
+PortSystem	1.0
+PortGroup	python25 1.0
+
+name                py25-envisagecore
+version             3.1.0
+categories-append   devel
+maintainers         vcn.com:jjstickel openmaintainer 
+description         The Enthought envisage package
+long_description    Envisage is a Python-based framework for building extensible applications
+platforms           darwin
+homepage            http://code.enthought.com/projects/envisage/
+master_sites        http://www.enthought.com/repo/ETS/
+distname            EnvisageCore-${version}
+checksums           md5 6b3e984fbd97c674518c7c9c27df3160
+
+depends_build-append  port:py25-setuptools
+
+depends_lib-append      port:py25-enthoughtbase\
+    port:py25-traits


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

Added: trunk/dports/python/py25-envisageplugins/Portfile
===================================================================
--- trunk/dports/python/py25-envisageplugins/Portfile	                        (rev 0)
+++ trunk/dports/python/py25-envisageplugins/Portfile	2009-08-07 22:08:40 UTC (rev 55244)
@@ -0,0 +1,22 @@
+# -*- 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
+# JJS 3/24/09
+
+PortSystem	1.0
+PortGroup	python25 1.0
+
+name                py25-envisageplugins
+version             3.1.0
+categories-append   devel
+maintainers         vcn.com:jjstickel openmaintainer 
+description         Enthought envisage plugins
+long_description    The EnvisagePlugins project includes a number of plug-ins for the Envisage framework
+platforms           darwin
+homepage            http://code.enthought.com/projects/envisage_plugins.php
+master_sites        http://www.enthought.com/repo/ETS/
+distname            EnvisagePlugins-${version}
+checksums           md5 8a3921e0e2219d828767f3e08ee40103
+
+depends_build-append  port:py25-setuptools
+
+depends_lib-append      port:py25-envisagecore\
+    port:py25-traitsgui


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

Added: trunk/dports/python/py25-mayavi/Portfile
===================================================================
--- trunk/dports/python/py25-mayavi/Portfile	                        (rev 0)
+++ trunk/dports/python/py25-mayavi/Portfile	2009-08-07 22:08:40 UTC (rev 55244)
@@ -0,0 +1,40 @@
+# -*- 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
+# JJS 6/1/09
+
+PortSystem	1.0
+PortGroup	python25 1.0
+
+name                py25-mayavi
+version             3.2.0
+categories-append   devel graphics math
+maintainers         vcn.com:jjstickel openmaintainer 
+description         The Enthought mayavi package
+long_description    3D Scientific Data Visualization and Plotting using VTK\
+    as the rendering backend and (wx)python for the (G)UI.\
+    VTK must be compiled using carbon.
+platforms           darwin
+homepage            http://code.enthought.com/projects/mayavi/
+master_sites        http://www.enthought.com/repo/ETS/
+distname            Mayavi-${version}
+checksums           md5 efd2de257e517de54f7697526de9a04c
+
+depends_build-append  port:py25-setuptools
+
+depends_lib-append    port:vtk5\
+    port:py25-configobj\
+    port:py25-numpy\
+    port:py25-apptools\
+    port:py25-envisageplugins\
+    port:py25-traitsgui
+
+depends_run-append    port:py25-ipython
+
+pre-fetch {
+    if {![file exists ${prefix}/include/vtk-5.2/vtkCarbonRenderWindow.h]} {
+        ui_error "vtk must be installed with the +carbon variant"
+        error "vtk must be installed with the +carbon variant"
+    }
+}
+
+patchfiles          changeset_r24036.diff
+patch.pre_args      -p3


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

Added: trunk/dports/python/py25-mayavi/files/changeset_r24036.diff
===================================================================
--- trunk/dports/python/py25-mayavi/files/changeset_r24036.diff	                        (rev 0)
+++ trunk/dports/python/py25-mayavi/files/changeset_r24036.diff	2009-08-07 22:08:40 UTC (rev 55244)
@@ -0,0 +1,14 @@
+Index: /Mayavi/trunk/enthought/mayavi/preferences/preference_manager.py
+===================================================================
+--- /Mayavi/trunk/enthought/mayavi/preferences/preference_manager.py (revision 22324)
++++ /Mayavi/trunk/enthought/mayavi/preferences/preference_manager.py (revision 24036)
+@@ -99,7 +99,7 @@
+         """Load the default preferences."""
+         # Save current application_home.
+-        app_home = ETSConfig.application_home
++        app_home = ETSConfig.get_application_home()
+         # Set it to where the mayavi preferences are temporarily.
+-        path = join(ETSConfig.application_data, ID)
++        path = join(ETSConfig.get_application_data(), ID)
+         ETSConfig.application_home = path
+         try:

Added: trunk/dports/python/py25-traits/Portfile
===================================================================
--- trunk/dports/python/py25-traits/Portfile	                        (rev 0)
+++ trunk/dports/python/py25-traits/Portfile	2009-08-07 22:08:40 UTC (rev 55244)
@@ -0,0 +1,24 @@
+# -*- 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
+# JJS 3/24/09
+
+PortSystem	1.0
+PortGroup	python25 1.0
+
+name                py25-traits
+version             3.1.0
+categories-append   devel
+maintainers         vcn.com:jjstickel openmaintainer 
+description         The Enthought traits package
+long_description    A trait is a type definition that can be used for normal\
+    Python object attributes, giving the attributes\
+    some additional characteristics.
+platforms           darwin
+homepage            http://code.enthought.com/projects/traits/
+master_sites        http://www.enthought.com/repo/ETS/
+distname            Traits-${version}
+checksums           md5 df2ed50626c302e5b8eb89e9766be5a9
+
+depends_build-append  port:py25-setuptools
+
+depends_lib-append  port:py25-numpy\
+    port:py25-enthoughtbase


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

Added: trunk/dports/python/py25-traitsbackendwx/Portfile
===================================================================
--- trunk/dports/python/py25-traitsbackendwx/Portfile	                        (rev 0)
+++ trunk/dports/python/py25-traitsbackendwx/Portfile	2009-08-07 22:08:40 UTC (rev 55244)
@@ -0,0 +1,25 @@
+# -*- 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
+# JJS 3/24/09
+
+PortSystem	1.0
+PortGroup	python25 1.0
+
+name                py25-traitsbackendwx
+version             3.1.0
+categories-append   devel
+maintainers         vcn.com:jjstickel openmaintainer 
+description         The Enthought traitsgui WX backend
+long_description    WX backend for traits GUI
+platforms           darwin
+homepage            http://code.enthought.com/projects/traits_gui/
+master_sites        http://www.enthought.com/repo/ETS/
+distname            TraitsBackendWX-${version}
+checksums           md5 fc72754400663c2a8b657778ca1dbfc6
+
+depends_build-append  port:py25-setuptools
+
+depends_lib-append  port:py25-enthoughtbase\
+    port:py25-traits\
+    port:py25-wxpython
+
+patchfiles    patch-traitsbackendwx_helper.py.diff


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

Added: trunk/dports/python/py25-traitsbackendwx/files/patch-traitsbackendwx_helper.py.diff
===================================================================
--- trunk/dports/python/py25-traitsbackendwx/files/patch-traitsbackendwx_helper.py.diff	                        (rev 0)
+++ trunk/dports/python/py25-traitsbackendwx/files/patch-traitsbackendwx_helper.py.diff	2009-08-07 22:08:40 UTC (rev 55244)
@@ -0,0 +1,11 @@
+--- enthought/traits/ui/wx/helper.py    (revision 23572)
++++ enthought/traits/ui/wx/helper.py    (working copy)
+@@ -413,5 +413,8 @@
+             This method overrides the original in the base class so that
+             nested subpanels are handled correctly.
+         """
++        if child is None:
++            return
++
+         sppux, sppuy = self.GetScrollPixelsPerUnit()
+         vsx, vsy     = self.GetViewStart()

Added: trunk/dports/python/py25-traitsgui/Portfile
===================================================================
--- trunk/dports/python/py25-traitsgui/Portfile	                        (rev 0)
+++ trunk/dports/python/py25-traitsgui/Portfile	2009-08-07 22:08:40 UTC (rev 55244)
@@ -0,0 +1,24 @@
+# -*- 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
+# JJS 3/24/09
+
+PortSystem	1.0
+PortGroup	python25 1.0
+
+name                py25-traitsgui
+version             3.0.4
+categories-append   devel
+maintainers         vcn.com:jjstickel openmaintainer 
+description         The Enthought traitsgui package
+long_description    The TraitsGUI project contains a\
+    toolkit-independent GUI abstraction layer (known as Pyface),\
+    which is used to support the "visualization" features of the Traits package.
+platforms           darwin
+homepage            http://code.enthought.com/projects/traits_gui/
+master_sites        http://www.enthought.com/repo/ETS/
+distname            TraitsGUI-${version}
+checksums           md5 34793275679bf3ece560b9cf78c1cf08
+
+depends_build-append  port:py25-setuptools
+
+depends_lib-append  port:py25-enthoughtbase\
+    port:py25-traitsbackendwx


Property changes on: trunk/dports/python/py25-traitsgui/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090807/ea14d32d/attachment.html>


More information about the macports-changes mailing list