Corey

The latest octave-forge.info (20071212-1005) has a couple bugs.

First, the perl command for correcting the octave_packages file does not work correctly, resulting in octave not recognizing that any packages are installed.

Second, the pkg prefixes specified causes some problems. Specifically, the pkg load/unload command stops working after octave-forge is installed.

I have fixed both of these in the attached info file. Please let me know you received this; if I don't hear, I will open (or append) a tracker in sourceforge.

Thanks,
Jonathan
Package: octave-forge
Version: 20071212
Revision: 1006
Distribution: 10.4
Maintainer: Corey Halpin <[EMAIL PROTECTED]>
BuildDepends: <<
  fftw3, gcc42, gsl, hdf5 (>= 1.6.5-1002), imagemagick10-dev,
  libcurl4, libdap6, libiconv-dev, libjpeg, libnc-dap3 (>= 3.7.0-11),
  libncurses5, libpng3, libssh2.1, libxml2, openssl097-dev, pcre,
  readline5 (>= 5.0-1004), texinfo, x11-dev
<<
Depends: << 
  grace, gsl-shlibs, imagemagick10-shlibs, libnc-dap3-shlibs (>= 3.7.0-11),
  octave (>= 3.0.0-1) | octave-atlas (>= 3.0.0-1), openssl097-shlibs, qhull
<<
Source: mirror:sourceforge:octave/%n-bundle-%v.tar.gz
Source-MD5: 302035f499e7cf30d674845a753255ab
PatchScript: <<
#!/bin/sh -ev
  mv {main,extra,nonfree}/*.tar.gz .
  # symbolic: "Ginac library or headers not found"
  rm symbolic-* jhandles-* arpack-* xraylib-*
<<
NoSetCPPFLAGS: true
NoSetLDFLAGS: true
SetLIBRARY_PATH: /usr/X11R6/lib:%p/lib
SetMAKEFLAGS: -j1
CompileScript: echo ''
InstallScript: <<
#!/bin/bash -ev
export CPATH=/usr/X11R6/include:%p/include
m=%i/share/octave/packages
o=%i/lib/octave/packages
mkdir -p %i/share/octave/packages $m $o
echo "pkg prefix $m $o" > tmp
echo "pkg global_list %i/share/octave/octave_packages" >> tmp
echo "pkg install -verbose *.tar.gz" >> tmp
octave -V tmp
#find %i/share/octave/packages -name CVS -exec rm -fR \{\} \; || :
# perl command garbles octave_packages! use an octave script instead; JJS 1/2/08
#perl -pi -e '$/="\n\n";s,(?<=length: )(\d+),$1 - length("%d"),e if s,%d,,;' 
%i/share/octave/octave_packages
echo "load %i/share/octave/octave_packages" > tmp
echo "striplength = length('%d');" >> tmp
echo "for i = 1:length(global_packages)" >> tmp
echo "  apfx = global_packages {i}.archprefix;" >> tmp
echo "  global_packages {i}.archprefix = apfx(striplength+1:end);" >> tmp
echo "  dr = global_packages {i}.dir;" >> tmp
echo "  global_packages {i}.dir = dr(striplength+1:end);" >> tmp
echo "endfor" >> tmp
echo "save %i/share/octave/octave_packages global_packages" >> tmp
octave -q tmp
mkdir -p  %i/share/doc/%n
echo 'Cf docs in %p/share/octave/packages/*/packinfo' > %i/share/doc/%n/README
<<

Description: Extensions to octave
DescDetail: <<
Contains custom scripts, functions and extensions for GNU Octave. A lot of
MatLab(TM) compatibility is gained from this package.
<<
DescPort: <<
Nasty perl script courtesy of Daniel Macks, to correct the lengths of the 
package 
full-path-to-file names to correspond to the as-installed-by-Fink values.
<<
Homepage: http://octave.sourceforge.net/ 
License: GPL
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel

Reply via email to