[62004] trunk/dports/devel/osgswig-devel

nox at macports.org nox at macports.org
Sun Dec 27 09:00:12 PST 2009


Revision: 62004
          http://trac.macports.org/changeset/62004
Author:   nox at macports.org
Date:     2009-12-27 09:00:10 -0800 (Sun, 27 Dec 2009)
Log Message:
-----------
Add missing import statements to osgswig-devel Python wrappers

Also, the wrappers are now installed directly into site-packages.

Modified Paths:
--------------
    trunk/dports/devel/osgswig-devel/Portfile

Added Paths:
-----------
    trunk/dports/devel/osgswig-devel/files/patch-import-modules.diff

Modified: trunk/dports/devel/osgswig-devel/Portfile
===================================================================
--- trunk/dports/devel/osgswig-devel/Portfile	2009-12-27 15:44:00 UTC (rev 62003)
+++ trunk/dports/devel/osgswig-devel/Portfile	2009-12-27 17:00:10 UTC (rev 62004)
@@ -5,6 +5,7 @@
 
 name            osgswig-devel
 version         222
+revision        1
 platforms       darwin
 categories      graphics
 license         OpenSceneGraphv0.0/wxWindowsv3/LGPLv2.1
@@ -24,6 +25,7 @@
 worksrcdir      trunk
 
 patchfiles \
+    patch-import-modules.diff \
     patch-src-osg.i.diff \
     patch-src-osgAnimation.i.diff \
     patch-src-python-CMakeLists.txt.diff
@@ -44,6 +46,7 @@
         ${frameworks_dir}/Python.framework/Versions/2.6/lib/python2.6/site-packages
     xinstall -d ${destroot}${site_packages}
     copy ${worksrcpath}/lib/python/osgswig-0.9.1 \
-        ${destroot}${site_packages}/OpenSceneGraph
-    touch ${destroot}${site_packages}/OpenSceneGraph/__init__.py
+        ${destroot}${site_packages}/
+    move ${destroot}${site_packages}/osgswig-0.9.1/osg.pth \
+        ${destroot}${site_packages}
 }
\ No newline at end of file

Added: trunk/dports/devel/osgswig-devel/files/patch-import-modules.diff
===================================================================
--- trunk/dports/devel/osgswig-devel/files/patch-import-modules.diff	                        (rev 0)
+++ trunk/dports/devel/osgswig-devel/files/patch-import-modules.diff	2009-12-27 17:00:10 UTC (rev 62004)
@@ -0,0 +1,102 @@
+diff -ur src/osgAnimation.i.orig src/osgAnimation.i
+--- src/osgAnimation.i.orig	2009-12-26 02:04:30.000000000 +0100
++++ src/osgAnimation.i	2009-12-27 16:46:38.000000000 +0100
+@@ -18,6 +18,7 @@
+ 
+ /* import stuff from OpenSceneGraph */
+ %import osg.i
++%pythoncode {import osg}
+ 
+ %{
+ #include <osgAnimation/Animation>
+diff -ur src/osgDB.i.orig src/osgDB.i
+--- src/osgDB.i.orig	2009-12-26 02:04:30.000000000 +0100
++++ src/osgDB.i	2009-12-27 16:47:14.000000000 +0100
+@@ -20,6 +20,7 @@
+ 
+ %include osg_header.i
+ %import osg.i
++%pythoncode {import osg}
+ 
+ /* instantiate the required template specializations */
+ %template() std::vector<std::string>;    
+diff -ur src/osgFX.i.orig src/osgFX.i
+--- src/osgFX.i.orig	2009-12-26 02:04:30.000000000 +0100
++++ src/osgFX.i	2009-12-27 16:47:40.000000000 +0100
+@@ -18,6 +18,7 @@
+ 
+ /* import stuff from OpenSceneGraph */
+ %import osg.i
++%pythoncode {import osg}
+ 
+ 
+ %{
+diff -ur src/osgGA.i.orig src/osgGA.i
+--- src/osgGA.i.orig	2009-12-26 02:04:30.000000000 +0100
++++ src/osgGA.i	2009-12-27 16:48:41.000000000 +0100
+@@ -22,6 +22,7 @@
+ 
+ /* import stuff from OpenSceneGraph */
+ %import osg.i
++%pythoncode {import osg}
+ 
+ %include osgGA_header.i
+ 
+diff -ur src/osgManipulator.i.orig src/osgManipulator.i
+--- src/osgManipulator.i.orig	2009-12-26 02:04:30.000000000 +0100
++++ src/osgManipulator.i	2009-12-27 16:49:08.000000000 +0100
+@@ -17,6 +17,7 @@
+ 
+ /* import stuff from OpenSceneGraph */
+ %import osg.i
++%pythoncode {import osg}
+ 
+ 
+ %{
+diff -ur src/osgSim.i.orig src/osgSim.i
+--- src/osgSim.i.orig	2009-12-26 02:04:30.000000000 +0100
++++ src/osgSim.i	2009-12-27 16:49:20.000000000 +0100
+@@ -17,6 +17,7 @@
+ 
+ /* import stuff from OpenSceneGraph */
+ %import osg.i
++%pythoncode {import osg}
+ 
+ 
+ 
+diff -ur src/osgText.i.orig src/osgText.i
+--- src/osgText.i.orig	2009-12-26 02:04:30.000000000 +0100
++++ src/osgText.i	2009-12-27 16:50:32.000000000 +0100
+@@ -20,6 +20,7 @@
+ 
+ /* import stuff from OpenSceneGraph */
+ %import osg.i
++%pythoncode {import osg}
+ 
+ 
+ %{
+diff -ur src/osgUtil.i.orig src/osgUtil.i
+--- src/osgUtil.i.orig	2009-12-26 02:04:30.000000000 +0100
++++ src/osgUtil.i	2009-12-27 16:50:46.000000000 +0100
+@@ -28,6 +28,7 @@
+ 
+ /* import stuff from OpenSceneGraph */
+ %import osg.i
++%pythoncode {import osg}
+ 
+ 
+ %{
+diff -ur src/osgViewer.i.orig src/osgViewer.i
+--- src/osgViewer.i.orig	2009-12-26 02:04:30.000000000 +0100
++++ src/osgViewer.i	2009-12-27 17:05:09.000000000 +0100
+@@ -19,6 +19,10 @@
+ /* import stuff from OpenSceneGraph */
+ %import osg.i
+ %import osgGA.i
++%pythoncode {
++    import osg
++    import osgGA
++}
+ 
+ 
+ %include osgViewer_header.i
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091227/c579342c/attachment.html>


More information about the macports-changes mailing list