[92401] trunk/dports/science
cal at macports.org
cal at macports.org
Fri Apr 27 12:36:39 PDT 2012
Revision: 92401
https://trac.macports.org/changeset/92401
Author: cal at macports.org
Date: 2012-04-27 12:36:38 -0700 (Fri, 27 Apr 2012)
Log Message:
-----------
new port: yorick-ml4, see #33903
Added Paths:
-----------
trunk/dports/science/yorick-ml4/
trunk/dports/science/yorick-ml4/Portfile
trunk/dports/science/yorick-ml4/files/
trunk/dports/science/yorick-ml4/files/patch-ml4.i.diff
Added: trunk/dports/science/yorick-ml4/Portfile
===================================================================
--- trunk/dports/science/yorick-ml4/Portfile (rev 0)
+++ trunk/dports/science/yorick-ml4/Portfile 2012-04-27 19:36:38 UTC (rev 92401)
@@ -0,0 +1,36 @@
+# -*- 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 github 1.0
+
+set uname ml4
+github.setup frigaut yorick-${uname} 0.6.0
+license GPL-2+
+categories science
+platforms darwin
+maintainers users.sourceforge.net:paumard openmaintainer
+description Matlab 4 file format support fo Yorick
+long_description This plug-in gives read/write access to files saved in the \
+ Matlab 4 format.
+homepage http://maumae.net/yorick/doc/plugins.php
+
+checksums rmd160 a0a9c9ae31a84c49905fecb82a26b9e7fba3a49b \
+ sha256 98d5b208f3c26cf2efe7d4c55dd2996abb475a960d1b1d4d0dfd047900cc0ac0
+
+depends_lib-append path:bin/yorick:yorick
+
+universal_variant no
+
+# bug fix from github
+patchfiles patch-ml4.i.diff
+
+configure.cmd ${prefix}/bin/yorick
+configure.pre_args
+configure.args -batch make.i
+
+post-destroot {
+ xinstall -d ${destroot}${prefix}/lib/yorick/packages/installed/
+ xinstall -m 644 ${worksrcpath}/${uname}.info \
+ ${destroot}${prefix}/lib/yorick/packages/installed/
+}
Property changes on: trunk/dports/science/yorick-ml4/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/science/yorick-ml4/files/patch-ml4.i.diff
===================================================================
--- trunk/dports/science/yorick-ml4/files/patch-ml4.i.diff (rev 0)
+++ trunk/dports/science/yorick-ml4/files/patch-ml4.i.diff 2012-04-27 19:36:38 UTC (rev 92401)
@@ -0,0 +1,24 @@
+diff -u ml4.i.orig ml4.i
+--- ml4.i.orig
++++ ml4.i
+@@ -124,7 +124,10 @@ func ml4write(file,data,varname,mode,endian=)
+ ncols=int(dims(3));
+ }
+
+- if (structof(data)==long) { type='l'; }
++ tmp = data; // otherwise data may be swapped in place in endian='L'
++
++ // next line: fix from Thibaut Paumard for Debian.
++ if (structof(data)==long) { type='l'; tmp=int(tmp); }
+ else if (structof(data)==int) { type='l'; }
+ else if (structof(data)==float) { type='r'; }
+ else if (structof(data)==double) { type='d'; }
+@@ -132,8 +135,6 @@ func ml4write(file,data,varname,mode,endian=)
+ else if (structof(data)==char) { type='b'; }
+ else error,"Unsupported type";
+
+- tmp = data; // otherwise data may be swapped in place in endian='L'
+-
+ status = matout(file,varname,&tmp,nrows,ncols,type,mode,endian);
+ if (status) error,"write failed";
+ }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120427/c558bd6c/attachment.html>
More information about the macports-changes
mailing list