Added: trunk/dports/python/py26-pybox2d/Portfile (0 => 61027)
--- trunk/dports/python/py26-pybox2d/Portfile (rev 0)
+++ trunk/dports/python/py26-pybox2d/Portfile 2009-11-30 07:37:04 UTC (rev 61027)
@@ -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 python26 1.0
+
+name py26-pybox2d
+version 2.0.2b1
+maintainers stromnov openmaintainer
+
+conflicts py26-pybox2d-devel
+
+description Python Box2D Bindings - 2D Physics
+
+long_description ${description}
+
+platforms darwin
+
+homepage http://pybox2d.googlecode.com/
+master_sites googlecode:pybox2d
+
+distname Box2D-${version}
+use_zip yes
+
+checksums md5 05b01a77f9ffad35058e4698527602a7 \
+ sha1 51677c0cf7d3d2e34e99078b7667320a4cf2fb8c \
+ rmd160 943fa7cccbd634be488514bd87e7b6e96e748060
+
+patchfiles patch-Box2D-Box2D.i.diff
+
+depends_build-append \
+ port:swig
+
+livecheck.regex "<a href=\"${homepage}files/Box2D\-(\\d+(?:\\.\\d+(?:b?\\d+)?)*)${extract.suffix}\""
Property changes on: trunk/dports/python/py26-pybox2d/Portfile
___________________________________________________________________
Added: trunk/dports/python/py26-pybox2d/files/patch-Box2D-Box2D.i.diff (0 => 61027)
--- trunk/dports/python/py26-pybox2d/files/patch-Box2D-Box2D.i.diff (rev 0)
+++ trunk/dports/python/py26-pybox2d/files/patch-Box2D-Box2D.i.diff 2009-11-30 07:37:04 UTC (rev 61027)
@@ -0,0 +1,38 @@
+--- Box2D/Box2D.i.orig 2009-11-30 10:15:33.000000000 +0300
++++ Box2D/Box2D.i 2009-11-30 10:16:21.000000000 +0300
+@@ -368,7 +368,7 @@
+
+ %extend b2Shape {
+ public:
+- int32 __hash__() { return (int32)self; }
++ int32 __hash__() { return (long)self; }
+ PyObject* TestSegment(const b2XForm& xf, const b2Segment& segment, float32 maxLambda) {
+ int hit;
+ float32 lambda=0.0f;
+@@ -624,7 +624,7 @@
+ }
+
+ %extend b2Controller {
+- int32 __hash__() { return (int32)self; }
++ int32 __hash__() { return (long)self; }
+ %pythoncode %{
+ def typeName(self):
+ """
+@@ -694,7 +694,7 @@
+
+ %extend b2Joint {
+ public:
+- int32 __hash__() { return (int32)self; }
++ int32 __hash__() { return (long)self; }
+ %pythoncode %{
+ __eq__ = b2JointCompare
+ __ne__ = lambda self,other: not b2JointCompare(self,other)
+@@ -1062,7 +1062,7 @@
+ }
+
+ %extend b2Body {
+- int32 __hash__() { return (int32)self; }
++ int32 __hash__() { return (long)self; }
+ %pythoncode %{
+ __eq__ = b2BodyCompare
+ __ne__ = lambda self,other: not b2BodyCompare(self,other)