[64572] trunk/dports/python/py26-pymunk

stromnov at macports.org stromnov at macports.org
Tue Mar 9 08:24:21 PST 2010


Revision: 64572
          http://trac.macports.org/changeset/64572
Author:   stromnov at macports.org
Date:     2010-03-09 08:24:21 -0800 (Tue, 09 Mar 2010)
Log Message:
-----------
py26-pymunk: Update to version 1.0.0

Modified Paths:
--------------
    trunk/dports/python/py26-pymunk/Portfile
    trunk/dports/python/py26-pymunk/files/patch-pymunk-_chipmunk.py.diff
    trunk/dports/python/py26-pymunk/files/patch-pymunk-libload.py.diff
    trunk/dports/python/py26-pymunk/files/patch-setup.py.diff

Modified: trunk/dports/python/py26-pymunk/Portfile
===================================================================
--- trunk/dports/python/py26-pymunk/Portfile	2010-03-09 16:20:16 UTC (rev 64571)
+++ trunk/dports/python/py26-pymunk/Portfile	2010-03-09 16:24:21 UTC (rev 64572)
@@ -5,7 +5,7 @@
 PortGroup           python26 1.0
 
 name                py26-pymunk
-version             0.8.4
+version             1.0.0
 maintainers         stromnov openmaintainer
 
 description         Python wrapper around the 2d physics library Chipmunk
@@ -19,9 +19,9 @@
 distname            pymunk-${version}
 use_zip             yes
 
-checksums           md5     f373e7e7cf416512984c633113acfd2f \
-                    sha1    5e936e8d902a507cbfa8859bc692c03b90d99539 \
-                    rmd160  3263d78de9ad299ad54979832f6a8dfd88cf6fd9
+checksums           md5     e303c3eb2f65b745e5ccef5faa08ecdd \
+                    sha1    846e7a54b686c63972a9cbd6aa1c04c15dc0bc83 \
+                    rmd160  50e0e7baf91ab6ec2b369ee95f4fe7a9b1445777
 
 patchfiles          patch-setup.py.diff \
                     patch-pymunk-libload.py.diff \

Modified: trunk/dports/python/py26-pymunk/files/patch-pymunk-_chipmunk.py.diff
===================================================================
--- trunk/dports/python/py26-pymunk/files/patch-pymunk-_chipmunk.py.diff	2010-03-09 16:20:16 UTC (rev 64571)
+++ trunk/dports/python/py26-pymunk/files/patch-pymunk-_chipmunk.py.diff	2010-03-09 16:24:21 UTC (rev 64572)
@@ -1,11 +1,11 @@
---- pymunk/_chipmunk.py.orig	2009-11-29 18:24:38.000000000 +0300
-+++ pymunk/_chipmunk.py	2009-11-29 18:24:53.000000000 +0300
+--- pymunk/_chipmunk.py.orig	2010-03-07 20:20:16.000000000 +0300
++++ pymunk/_chipmunk.py	2010-03-09 19:09:37.000000000 +0300
 @@ -4,7 +4,7 @@
- cpVect = Vec2d
- 
- from .libload import load_library
--_lib_debug = True #Set to True to print the Chipmunk path.
-+_lib_debug = False #Set to True to print the Chipmunk path.
- chipmunk_lib = load_library("chipmunk", print_path=_lib_debug)
- 
- STRING = c_char_p
+ cpVect = Vec2d
+ 
+ from .libload import load_library, platform_specific_functions
+-_lib_debug = True #Set to True to print the Chipmunk path.
++_lib_debug = False #Set to True to print the Chipmunk path.
+ chipmunk_lib = load_library("chipmunk", print_path=_lib_debug)
+ function_pointer = platform_specific_functions()['function_pointer']
+ 

Modified: trunk/dports/python/py26-pymunk/files/patch-pymunk-libload.py.diff
===================================================================
--- trunk/dports/python/py26-pymunk/files/patch-pymunk-libload.py.diff	2010-03-09 16:20:16 UTC (rev 64571)
+++ trunk/dports/python/py26-pymunk/files/patch-pymunk-libload.py.diff	2010-03-09 16:24:21 UTC (rev 64572)
@@ -1,22 +1,22 @@
---- pymunk/libload.py.orig	2009-11-29 18:32:52.000000000 +0300
-+++ pymunk/libload.py	2009-11-29 18:41:21.000000000 +0300
-@@ -2,6 +2,7 @@
+--- pymunk/libload.py.orig	2010-02-07 22:58:20.000000000 +0300
++++ pymunk/libload.py	2010-03-09 19:14:24.000000000 +0300
+@@ -5,6 +5,7 @@
  import platform
  import sys, imp, os
  import ctypes
 +import ctypes.util
   
- def load_library(libname, print_path=True):
-     # lib gets loaded from:
-@@ -33,6 +34,11 @@
-         libfn = "lib%s.dylib" % libname
+ def platform_specific_functions():
+     # use stddecl on windows, cdecl on all other platforms
+@@ -60,6 +61,11 @@
+         libfn = "lib%s.so" % libname
          
      libfn = os.path.join(path, libfn)
 +
 +    if not os.path.exists(libfn):
 +        _libfn = ctypes.util.find_library(libname)
-+        if _libfn:
-+            libfn = _libfn
++    if _libfn:
++        libfn = _libfn
+     
      
      if print_path:
-         print ("Loading chipmunk for %s (%s) [%s]" % (s, arch, libfn))

Modified: trunk/dports/python/py26-pymunk/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py26-pymunk/files/patch-setup.py.diff	2010-03-09 16:20:16 UTC (rev 64571)
+++ trunk/dports/python/py26-pymunk/files/patch-setup.py.diff	2010-03-09 16:24:21 UTC (rev 64572)
@@ -1,20 +1,23 @@
---- setup.py.orig	2009-07-29 23:28:10.000000000 +0400
-+++ setup.py	2009-11-29 18:19:38.000000000 +0300
-@@ -73,15 +73,8 @@
-     , description='A wrapper for the 2d physics library Chipmunk'
+--- setup.py.orig	2010-03-09 19:06:21.000000000 +0300
++++ setup.py	2010-03-09 19:07:12.000000000 +0300
+@@ -99,20 +99,9 @@
+     , description='A python wrapper for the 2d physics library Chipmunk'
      , long_description=long_description
      , packages=['pymunk'] #find_packages(exclude=['*.tests']),
 -    , package_data = {'pymunk': ['chipmunk.dll'
+-                                , 'chipmunk64.dll'
 -                                , 'libchipmunk.so'
+-                                , 'libchipmunk64.so'
 -                                , 'libchipmunk.dylib']}
 -    , eager_resources = [os.path.join('pymunk','chipmunk.dll')
+-                            , os.path.join('pymunk','chipmunk64.dll')
 -                            , os.path.join('pymunk','libchipmunk.so')
+-                            , os.path.join('pymunk','libchipmunk64.so')
 -                            , os.path.join('pymunk','libchipmunk.dylib')]
      #, platforms=['win32']
      , license='MIT License'
      , classifiers=classifiers
 -    , include_package_data = True
      , cmdclass={'build_chipmunk':build_chipmunk}
--    )
-\ No newline at end of file
-+    )
+     , test_suite = "tests"
+     )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100309/5752acc6/attachment.html>


More information about the macports-changes mailing list