[122816] trunk/dports/python/py-trep
mmoll at macports.org
mmoll at macports.org
Wed Jul 30 17:54:25 PDT 2014
Revision: 122816
https://trac.macports.org/changeset/122816
Author: mmoll at macports.org
Date: 2014-07-30 17:54:25 -0700 (Wed, 30 Jul 2014)
Log Message:
-----------
py-trep: update to 0.92.1, use github portgroup now that project has moved to github
Modified Paths:
--------------
trunk/dports/python/py-trep/Portfile
trunk/dports/python/py-trep/files/patch-setup.py.diff
Modified: trunk/dports/python/py-trep/Portfile
===================================================================
--- trunk/dports/python/py-trep/Portfile 2014-07-30 17:29:24 UTC (rev 122815)
+++ trunk/dports/python/py-trep/Portfile 2014-07-31 00:54:25 UTC (rev 122816)
@@ -3,11 +3,10 @@
PortSystem 1.0
PortGroup python 1.0
+PortGroup github 1.0
-set realname trep
-name py-${realname}
-version 0.92
-revision 1
+github.setup MurpheyLab trep 0.92.1 v
+name py-trep
license GPL-3
maintainers mmoll openmaintainer
@@ -20,37 +19,31 @@
control algorithms that require 1st and 2nd derivatives \
of the system's dynamics.
-homepage http://code.google.com/p/trep/
-master_sites googlecode:${realname}
+homepage http://murpheylab.github.io/trep
platforms darwin
-distname ${realname}-v${version}
-use_bzip2 yes
-checksums md5 3008ce65392c619c53fe54abbd72db9a \
- sha1 db29f2beddf7ec41eb3e5a1355f0bd1c51a919c6 \
- rmd160 3aced8b304ffafdafb08a7c0ec75e69e79236a5c
+checksums md5 c70716520bb483a80c7c27b8a6d2f607 \
+ sha1 88e14c89f5eb34ec6e6109d71dbdfad6511b1fab \
+ rmd160 3092d37d02994e3d4253df568c64618f4e594d5f
+patchfiles patch-setup.py.diff
python.versions 26 27
if {${name} ne ${subport}} {
- patchfiles patch-setup.py.diff
-
# Can use either py*-pyqt4 or py*-pyqt4-devel.
depends_lib port:py${python.version}-numpy \
port:py${python.version}-scipy \
port:py${python.version}-matplotlib \
port:py${python.version}-opengl \
- path:share/py${python.version}-sip/PyQt4:py${python.version}-pyqt4 \
- port:py${python.version}-sphinx
+ path:share/py${python.version}-sip/PyQt4:py${python.version}-pyqt4
+ depends_build port:py${python.version}-sphinx
+ post-patch {
+ reinplace "s|@PKGD@|${destroot}${python.pkgd}|g" ${worksrcpath}/setup.py
+ }
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}
+ delete ${destroot}${prefix}/share/doc/${subport}/examples
+ file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${subport}
+ file copy ${worksrcpath}/build/sphinx/html ${destroot}${prefix}/share/doc/${subport}
+ xinstall -m 644 ${worksrcpath}/LICENSE ${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
}
Modified: trunk/dports/python/py-trep/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py-trep/files/patch-setup.py.diff 2014-07-30 17:29:24 UTC (rev 122815)
+++ trunk/dports/python/py-trep/files/patch-setup.py.diff 2014-07-31 00:54:25 UTC (rev 122816)
@@ -1,26 +1,11 @@
---- 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]
+--- setup.py.orig 2014-07-30 19:15:38.000000000 -0500
++++ setup.py 2014-07-30 19:17:45.000000000 -0500
+@@ -142,7 +142,7 @@
+ # we override the default to install the headers in get_python_inc().
- 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'])
+ cmd_options['install_headers'] = {
+- 'install_dir' : ('setup.py', os.path.join(get_python_inc(), 'trep'))
++ 'install_dir' : ('setup.py', os.path.join('@PKGD@', 'trep'))
+ }
+
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140730/16388645/attachment.html>
More information about the macports-changes
mailing list