[92266] trunk/dports/python
mmoll at macports.org
mmoll at macports.org
Mon Apr 23 07:50:29 PDT 2012
Revision: 92266
https://trac.macports.org/changeset/92266
Author: mmoll at macports.org
Date: 2012-04-23 07:50:28 -0700 (Mon, 23 Apr 2012)
Log Message:
-----------
python/py-trep: new port. Module for modeling articulated rigid body mechanical systems in generalized coordinates.
Added Paths:
-----------
trunk/dports/python/py-trep/
trunk/dports/python/py-trep/Portfile
trunk/dports/python/py-trep/files/
trunk/dports/python/py-trep/files/patch-setup.py.diff
trunk/dports/python/py-trep/work
Added: trunk/dports/python/py-trep/Portfile
===================================================================
--- trunk/dports/python/py-trep/Portfile (rev 0)
+++ trunk/dports/python/py-trep/Portfile 2012-04-23 14:50:28 UTC (rev 92266)
@@ -0,0 +1,52 @@
+# -*- 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 python 1.0
+
+set realname trep
+name py-${realname}
+version 0.92
+license GPL-3
+maintainers mmoll openmaintainer
+
+description Module for modeling articulated rigid body mechanical \
+ systems in generalized coordinates.
+long_description Trep is a Python module for modeling articulated rigid \
+ body mechanical systems in generalized coordinates. Trep \
+ supports basic simulation but it is primarily designed to \
+ serve as a calculation engine for analysis and optimal \
+ control algorithms that require 1st and 2nd derivatives \
+ of the system's dynamics.
+
+homepage http://code.google.com/p/trep/
+master_sites googlecode:${realname}
+platforms darwin
+distname ${realname}-v${version}
+use_bzip2 yes
+checksums md5 3008ce65392c619c53fe54abbd72db9a \
+ sha1 db29f2beddf7ec41eb3e5a1355f0bd1c51a919c6 \
+ rmd160 3aced8b304ffafdafb08a7c0ec75e69e79236a5c
+patchfiles patch-setup.py.diff
+python.versions 25 26 27
+python.default_version 27
+
+if {$subport != $name} {
+ depends_lib port:py${python.version}-distribute \
+ port:py${python.version}-numpy \
+ port:py${python.version}-scipy \
+ port:py${python.version}-sphinx
+ build.target-append build_sphinx
+ post-destroot {
+ xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
+ file copy ${worksrcpath}/examples \
+ ${destroot}${prefix}/share/doc/${subport}/examples
+ file copy ${worksrcpath}/build/sphinx/html \
+ ${destroot}${prefix}/share/doc/${subport}
+ }
+ livecheck.type none
+} else {
+ livecheck.type regex
+ livecheck.url http://code.google.com/p/trep/downloads/list
+ livecheck.regex ${realname}-v(\[0-9.\]+)\\.tar
+}
Property changes on: trunk/dports/python/py-trep/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/python/py-trep/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py-trep/files/patch-setup.py.diff (rev 0)
+++ trunk/dports/python/py-trep/files/patch-setup.py.diff 2012-04-23 14:50:28 UTC (rev 92266)
@@ -0,0 +1,26 @@
+--- setup.py.orig 2012-04-23 08:59:25.000000000 -0500
++++ setup.py 2012-04-23 09:07:30.000000000 -0500
+@@ -200,16 +200,17 @@
+ # Check for OpenGL headers. If we can't find anything, just don't
+ # build _polyobject. There is a python implementation to fallback on.
+ if sys.platform == 'darwin':
+- if has_header(['OpenGL', 'gl.h']):
+- _polyobject = Extension('trep.visual._polyobject',
+- extra_compile_args=[],
+- extra_link_args=['-framework OpenGL'],
+- sources = ['src/visual/_polyobject.c'])
+- ext_modules += [_polyobject]
++ _polyobject = Extension('trep.visual._polyobject',
++ include_dirs=include_dirs,
++ extra_compile_args=[],
++ extra_link_args=['-framework OpenGL'],
++ sources = ['src/visual/_polyobject.c'])
++ ext_modules += [_polyobject]
+
+ else:
+ if has_header(['GL', 'gl.h']):
+ _polyobject = Extension('trep.visual._polyobject',
++ include_dirs=include_dirs,
+ extra_compile_args=[],
+ extra_link_args=['-lGL'],
+ sources = ['src/visual/_polyobject.c'])
Added: trunk/dports/python/py-trep/work
===================================================================
--- trunk/dports/python/py-trep/work (rev 0)
+++ trunk/dports/python/py-trep/work 2012-04-23 14:50:28 UTC (rev 92266)
@@ -0,0 +1 @@
+link /opt/local/var/macports/build/_Users_mmoll_src_macports_dports_python_py-trep/py27-trep/work
\ No newline at end of file
Property changes on: trunk/dports/python/py-trep/work
___________________________________________________________________
Added: svn:special
+ *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120423/2f436d79/attachment.html>
More information about the macports-changes
mailing list