[97388] trunk/dports/python/py-pymunk
stromnov at macports.org
stromnov at macports.org
Tue Sep 4 13:11:11 PDT 2012
Revision: 97388
https://trac.macports.org/changeset/97388
Author: stromnov at macports.org
Date: 2012-09-04 13:11:09 -0700 (Tue, 04 Sep 2012)
Log Message:
-----------
py-pymunk: update to version 3.0.0
Modified Paths:
--------------
trunk/dports/python/py-pymunk/Portfile
trunk/dports/python/py-pymunk/files/patch-setup.py.diff
Added Paths:
-----------
trunk/dports/python/py-pymunk/files/patch-pymunkoptions-__init__.py.diff
Removed Paths:
-------------
trunk/dports/python/py-pymunk/files/patch-pymunk-_chipmunk.py.diff
trunk/dports/python/py-pymunk/files/patch-pymunk-libload.py.diff
trunk/dports/python/py-pymunk/files/patch-setup.py-ndebug.diff
Modified: trunk/dports/python/py-pymunk/Portfile
===================================================================
--- trunk/dports/python/py-pymunk/Portfile 2012-09-04 19:48:38 UTC (rev 97387)
+++ trunk/dports/python/py-pymunk/Portfile 2012-09-04 20:11:09 UTC (rev 97388)
@@ -5,7 +5,7 @@
PortGroup python 1.0
name py-pymunk
-version 2.1.0
+version 3.0.0
revision 0
categories-append devel
license MIT
@@ -24,25 +24,27 @@
distname pymunk-${version}
use_zip yes
-checksums rmd160 938e58ac33fe746a81325c7f2d8e4fda0d75c570 \
- sha256 5d19261d023522921f600e48f9b84933bf4edcf8d3c7c8805915e9e5d184766c
+checksums rmd160 60a5f19a42f358042533a1346d3ea88d61b6624f \
+ sha256 effa4d2a9564914180c41c748e5ca91f84723c53696d310d763711c414a4a933
python.default_version 27
-python.versions 26 27
+python.versions 26 27 32
patchfiles patch-setup.py.diff \
- patch-setup.py-ndebug.diff \
- patch-pymunk-_chipmunk.py.diff
+ patch-pymunkoptions-__init__.py.diff
variant debug description {Build with debug messages} {
- patchfiles-delete patch-pymunk-_chipmunk.py.diff \
- patch-setup.py-ndebug.diff
+ patchfiles-delete patch-pymunkoptions-__init__.py.diff
}
if {$subport != $name} {
depends_build port:py${python.version}-distribute
post-build {
- system -W ${worksrcpath} "${python.bin} setup.py build_chipmunk"
+ if {![variant_isset debug]} {
+ system -W ${worksrcpath} "${python.bin} setup.py build_chipmunk --release"
+ } else {
+ system -W ${worksrcpath} "${python.bin} setup.py build_chipmunk"
+ }
}
}
Deleted: trunk/dports/python/py-pymunk/files/patch-pymunk-_chipmunk.py.diff
===================================================================
--- trunk/dports/python/py-pymunk/files/patch-pymunk-_chipmunk.py.diff 2012-09-04 19:48:38 UTC (rev 97387)
+++ trunk/dports/python/py-pymunk/files/patch-pymunk-_chipmunk.py.diff 2012-09-04 20:11:09 UTC (rev 97388)
@@ -1,11 +0,0 @@
---- pymunk/_chipmunk.py.orig 2012-03-26 16:58:17.000000000 +0400
-+++ pymunk/_chipmunk.py 2012-03-26 16:58:26.000000000 +0400
-@@ -5,7 +5,7 @@
- STRING = c_char_p
-
- 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']
-
Deleted: trunk/dports/python/py-pymunk/files/patch-pymunk-libload.py.diff
===================================================================
--- trunk/dports/python/py-pymunk/files/patch-pymunk-libload.py.diff 2012-09-04 19:48:38 UTC (rev 97387)
+++ trunk/dports/python/py-pymunk/files/patch-pymunk-libload.py.diff 2012-09-04 20:11:09 UTC (rev 97388)
@@ -1,22 +0,0 @@
---- 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 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 print_path:
Added: trunk/dports/python/py-pymunk/files/patch-pymunkoptions-__init__.py.diff
===================================================================
--- trunk/dports/python/py-pymunk/files/patch-pymunkoptions-__init__.py.diff (rev 0)
+++ trunk/dports/python/py-pymunk/files/patch-pymunkoptions-__init__.py.diff 2012-09-04 20:11:09 UTC (rev 97388)
@@ -0,0 +1,11 @@
+--- pymunkoptions/__init__.py.orig 2012-09-05 00:00:12.000000000 +0400
++++ pymunkoptions/__init__.py 2012-09-05 00:00:50.000000000 +0400
+@@ -33,7 +33,7 @@
+ __docformat__ = "reStructuredText"
+
+ options = {
+- "debug" : True
++ "debug" : False
+ }
+ """Global dict of pymunk options.
+ To change make sure you import pymunk before any sub-packages and then set the
Deleted: trunk/dports/python/py-pymunk/files/patch-setup.py-ndebug.diff
===================================================================
--- trunk/dports/python/py-pymunk/files/patch-setup.py-ndebug.diff 2012-09-04 19:48:38 UTC (rev 97387)
+++ trunk/dports/python/py-pymunk/files/patch-setup.py-ndebug.diff 2012-09-04 20:11:09 UTC (rev 97388)
@@ -1,11 +0,0 @@
---- setup.py.orig 2012-03-26 17:19:08.000000000 +0400
-+++ setup.py 2012-03-26 17:19:30.000000000 +0400
-@@ -40,7 +40,7 @@
-
- include_folders = [os.path.join('chipmunk_src','include','chipmunk')]
-
-- compiler_preargs = ['-O3', '-std=gnu99', '-ffast-math', '-fPIC', '-DCHIPMUNK_FFI'] #, '-DCP_ALLOW_PRIVATE_ACCESS', '-DNDEBUG']
-+ compiler_preargs = ['-O3', '-std=gnu99', '-ffast-math', '-fPIC', '-DCHIPMUNK_FFI', '-DNDEBUG'] #, '-DCP_ALLOW_PRIVATE_ACCESS', '-DNDEBUG']
-
- # check if we are on a 64bit python
- arch = ctypes.sizeof(ctypes.c_voidp) * 8
Modified: trunk/dports/python/py-pymunk/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py-pymunk/files/patch-setup.py.diff 2012-09-04 19:48:38 UTC (rev 97387)
+++ trunk/dports/python/py-pymunk/files/patch-setup.py.diff 2012-09-04 20:11:09 UTC (rev 97388)
@@ -1,9 +1,9 @@
---- setup.py.orig 2012-03-26 16:51:00.000000000 +0400
-+++ setup.py 2012-03-26 16:51:53.000000000 +0400
-@@ -102,11 +102,7 @@
+--- setup.py.orig 2012-09-02 18:08:22.000000000 +0400
++++ setup.py 2012-09-04 23:43:40.000000000 +0400
+@@ -131,11 +131,7 @@
, description='pymunk is a easy-to-use pythonic 2d physics library built on top of Chipmunk'
, long_description=open('README.txt').read()
- , packages=['pymunk']
+ , packages=['pymunk','pymunkoptions']
- , package_data = {'pymunk': ['chipmunk.dll'
- , 'chipmunk64.dll'
- , 'libchipmunk.so'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120904/58f1db76/attachment.html>
More information about the macports-changes
mailing list