debian/0000755000000000000000000000000011773062242007172 5ustar debian/rules0000755000000000000000000000072711773061501010255 0ustar #!/usr/bin/make -f DPKG_EXPORT_BUILDFLAGS = 1 -include /usr/share/dpkg/buildflags.mk %: dh $@ override_dh_auto_build: $(MAKE) COPT_DEFAULT="" \ Y_CFLAGS="$(CFLAGS) $(CPPFLAGS)" \ Y_LDFLAGS="$(LDFLAGS)" override_dh_auto_install-arch: dh_installyorick override_dh_auto_clean: $(MAKE) Y_MAKEDIR=/usr/lib/yorick Y_EXE=/usr/bin/yorick clean override_dh_auto_test: ifeq (,$(filter nocheck, $(DEB_BUILD_OPTIONS))) yorick -batch debian/check.i endif debian/changelog0000644000000000000000000000265611773061714011060 0ustar yorick-ml4 (0.6.0-3) unstable; urgency=low * Fortify (don't rely on Yorick to pass the right flags) -- Thibaut Paumard Thu, 28 Jun 2012 16:01:48 +0200 yorick-ml4 (0.6.0-2) unstable; urgency=low * Amend debian/control to abide by Debian Science Policy * Updated copyright * Patch Makefile instead of running yorick -batch make.i * Simplfiy debian/rules with short dh notation -- Thibaut Paumard Wed, 27 Jun 2012 14:40:59 +0200 yorick-ml4 (0.6.0-1) unstable; urgency=low * New upstream release * Checked agains policy 3.8.3 * Use 3.0 (quilt) format * Convert longs to ints before writing them to file (Closes: #506297) * Run debian/check.i at build time -- Thibaut Paumard Mon, 23 Nov 2009 18:18:50 +0100 yorick-ml4 (0.5.1-3) unstable; urgency=high * Fixed bug "yorick-ml4 is not 64bit-safe" (Closes: #506297). -- Thibaut Paumard Thu, 20 Nov 2008 13:58:21 +0100 yorick-ml4 (0.5.1-2) unstable; urgency=low * debian/copyright: fix erroneous pointer from /usr/share/common-licenses/GPL to /usr/share/common-licenses/GPL-2 -- Thibaut Paumard Wed, 23 Jan 2008 14:07:27 +0100 yorick-ml4 (0.5.1-1) unstable; urgency=low * Initial Release (closes: #460852). -- Thibaut Paumard Wed, 16 Jan 2008 14:06:39 +0100 debian/yorick-ml4.packinfo0000644000000000000000000000025611772576100012705 0ustar :newsubsection ml4: Matlab file format support :ml4 interface plugin to the Matlab file format version 4. It includes function for reading, writing, and querying ml4 files debian/check.i0000644000000000000000000000262611772576326010443 0ustar plug_dir, _("./", plug_dir()); require,"ml4.i"; FileType="Check file for the yorick ml4 plugin"; dd12=random(12,12); d12=float(dd12); ig1000=indgen(1000); ml4write,"test.mat",FileType,"FileType","w"; ml4write,"test.mat",d12,"d12","a"; ml4write,"test.mat",dd12,"dd12","a"; ml4write,"test.mat",ig1000,"ig1000","a"; ml4scan,"test.mat"; v=ml4read("test.mat","FileType"); if (v!=FileType) { write, format="\"%s\"!=\"%s\"\n", v, FileType; error, "Error reading FileType"; } v=ml4read("test.mat","d12"); if (anyof(v!=d12)) { v; error, "Error reading d12"; } v=ml4read("test.mat","dd12"); if (anyof(v!=dd12)) { v; error, "Error reading dd12"; } v=ml4read("test.mat","ig1000"); if (anyof(v!=int(ig1000))){ v; error, "Error reading ig1000"; } ml4write,"test.mat","file section 2","another string","a"; ml4scan,"test.mat"; v=ml4read("test.mat","another string"); if (v!="file section 2") error, "Error reading \"another string\""; write, format="%s\n", "Reading test.mat OK"; ml4write,"test2.mat","Check file for the yorick ml4 plugin","FileType","w"; data=random(64,64,50); for (i=1;i<=50;i++) ml4write,"test2.mat",data(,,i),"x","a"; ml4scan,"test2.mat"; for (i=1;i<=50;i++) if (anyof(ml4read("test2.mat","x",1)!=data(,,i))) error, "Error reading data(,,"+pr1(i)+")"; ml4close,"test2.mat"; write, format="%s\n", "Reading test2.mat OK"; remove,"test.mat"; remove,"test2.mat"; quit; debian/watch0000644000000000000000000000010611772576100010222 0ustar version=3 http://www.maumae.net/yorick/packages/src/ml4-(.*)-src\.tgz debian/control0000644000000000000000000000153411772600051010573 0ustar Source: yorick-ml4 Section: science Priority: extra Maintainer: Debian Science Maintainers Uploaders: Thibaut Paumard Build-Depends: debhelper (>= 7.0.50~), yorick-dev (>= 2.1.05) Standards-Version: 3.9.3 DM-Upload-Allowed: yes Vcs-Git: git://git.debian.org/git/debian-science/packages/yorick-ml4.git Vcs-Browser: http://git.debian.org/?p=debian-science/packages/yorick-ml4.git Package: yorick-ml4 Architecture: any Depends: yorick (>=1.6.02), ${shlibs:Depends}, ${misc:Depends} Description: Matlab file format support for the Yorick language This is a compiled add-on for yorick (an interpreted computer language specialized for numerical and scientific problems). Yorick-ml4 adds read and write support for the file format produced by the commercial product Matlab 4. debian/compat0000644000000000000000000000000211772576100010372 0ustar 5 debian/copyright0000644000000000000000000000221711772577063011142 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Contact: François Rigaut Source: http://www.maumae.net/yorick/packages/src/ml4-0.6.0-src.tgz Files: * Copyright: © 2005-2008, François Rigaut © 2008-2012, Thibaut Paumard License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details (to receive a copy of the GNU General Public License, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA). . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/README.Debian0000644000000000000000000000065611772576100011244 0ustar Yorick ml4 plugin for Debian ---------------------------- This is the `ml4' plugin by François Rigaut for the Yorick interpreted language, prepackaged for Debian GNU/Linux. A sample/test file is provided in /usr/share/doc/yorick-ml4/examples/. You can run it with "yorick -batch check.i" after decompressing the file somewhere if necessary. -- Thibaut Paumard , Tue, 15 Jan 2008 10:05:44 +0100 debian/series0000644000000000000000000000002411772576326010417 0ustar convert_long_to_int debian/source/0000755000000000000000000000000011772576326010506 5ustar debian/source/format0000644000000000000000000000001411772576326011714 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000011772577553010640 5ustar debian/patches/configure0000644000000000000000000000166711772577457012561 0ustar Description: configure this package Yorick packages are usually configured by running yorick -batch make.i which modifies Makefile. Modifying source files at build time is not very well supported in the quilt / git workflow, so let's just patch Makefile and not run yorick -batch make.i at build time. Author: Thibaut Paumard Origin: Vendor Forwarded: not-needed Last-Update: 2012-06-27 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/Makefile +++ b/Makefile @@ -1,9 +1,10 @@ # these values filled in by yorick -batch make.i -Y_MAKEDIR=/usr/lib/yorick/2.1 -Y_EXE=/usr/lib/yorick/2.1/bin/yorick +Y_MAKEDIR=/usr/lib/yorick +Y_EXE=/usr/lib/yorick/bin/yorick Y_EXE_PKGS= -Y_EXE_HOME=/usr/lib/yorick/2.1 -Y_EXE_SITE=/usr/share/yorick/2.1 +Y_EXE_HOME=/usr/lib/yorick +Y_EXE_SITE=/usr/lib/yorick +Y_HOME_PKG= # ----------------------------------------------------- optimization flags debian/patches/convert_long_to_int0000644000000000000000000000213611772576326014635 0ustar From: Thibaut Paumard Last-Update: 2009-11-23 Forwarded: yes Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=506297 Description: Make yorick-ml4 64bit-safe With version 0.6.0, ml4 has been made almost 64bit-safe. However, saving an array of longs on a 64-bit machine still produces a corrupt file. Fix: always convert longs to ints before saving. Done in ml4.i. --- a/ml4.i +++ b/ml4.i @@ -124,7 +124,9 @@ ncols=int(dims(3)); } - if (structof(data)==long) { type='l'; } + tmp = data; // otherwise data may be swapped in place in endian='L' + + 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 +134,6 @@ 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"; } debian/patches/series0000644000000000000000000000003611772577312012045 0ustar configure convert_long_to_int debian/examples0000644000000000000000000000001011772576100010724 0ustar check.i debian/yorick-ml4.keywords0000644000000000000000000000001011772576100012746 0ustar matlab4 debian/ynstall0000644000000000000000000000007711773061671010614 0ustar ml4.info debian/yorick-ml4.keywords debian/yorick-ml4.packinfo