Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/sci
In directory vz-cvs-3.sog:/tmp/cvs-serv18408/10.4/stable/main/finkinfo/sci

Added Files:
        ncarray-oct.info 
Log Message:
New package

--- NEW FILE: ncarray-oct.info ---
Info2: <<
Package: ncarray-oct%type_pkg[oct]
Version: 1.0.0
# Packages with compiled oct files generally need the following 
# if they support Octave < 3.6.0:
Type: oct (3.4.3 3.6.0 3.6.1 3.6.2), forge (ncarray)
Revision: 1
Maintainer: Alexander Hansen <[email protected]>
# unfortunately, Homepage won't do types
Homepage: http://octave.sourceforge.net/ncarray/index.html 
Description: Access NetCDF files as a multi-dimensional array
DescDetail: <<
This package allows Octave to access a single netCDF file or a collection
of such files as a multi-dimensional array.

It provides the following functions:
ncArray:
        ncArray
        ncCatArray
        nccoord
        cached_decompress
        @ncArray/coord
        @ncArray/ncArray
        @ncArray/subsasgn
        @ncArray/subsref
ncBaseArray:
        @BaseArray/BaseArray
        @BaseArray/end
        @BaseArray/full
        @BaseArray/isnumeric
        @BaseArray/max
        @BaseArray/mean
        @BaseArray/min
        @BaseArray/moment
        @BaseArray/numel
        @BaseArray/prod
        @BaseArray/reduce
        @BaseArray/size
        @BaseArray/std
        @BaseArray/sum
        @BaseArray/sumsq
        @BaseArray/var
Test script:
        test_ncarray
<<

DescPackaging: <<
Common for all octave-forge packages:

We read in postinst and prerm template scripts installed by octaveN and modify
them to use the name of this package because Octave's package manager can't 
cope with non-literal arguments.

The Type: forge (pkgname) is used to minimize what needs to be changed when
using this .info file as a template, or when the package name contains 
underscores.
<<

License: GPL2+

# default source
Source: mirror:sourceforge:octave/%type_raw[forge]-%v.tar.gz
Source-MD5: f1f8a2abbd51c431f8dcfa488d59834c
SourceDirectory: %type_raw[forge]

BuildDepends: <<
  liboctave%type_pkg[oct]-dev, 
  fftw3,
  fink (>=0.32),
  hdf5.7
<<
Depends: octave%type_pkg[oct]-interpreter
RuntimeDepends: octcdf-nc4-oct%type_pkg[oct] | octcdf-ncdap-oct%type_pkg[oct]
Conflicts: octave-forge

#### Insert required changes here ####

#@CHANGES@

######################################

# Do not change anything from this point down, unless absolutely necessary,
# since the foo-oct%type_pkg[oct] packages are designed to be built/installed
# in the same way.

NoSetCPPFLAGS: true
NoSetLDFLAGS: true
SetLIBRARY_PATH: /usr/X11R6/lib:%p/lib
UseMaxBuildJobs: false
BuildAsNobody: false

CompileScript: <<
        #!/bin/sh -ev
        #--build-as-nobody blocker
        if [ $UID -ne 0 ]
        then 
                echo "%n cannot be built with --build-as-nobody"
                exit 1
        fi
        export OCTAVE=%p/bin/octave-%type_raw[oct] 
        srcdir=%type_raw[forge]
        # repack tarball, since octave-3.4.3+ appears not to want to install
        # from directories
        cd ..
        tar -cvf $srcdir-%v.tar $srcdir
        cd %b
        pkgsrc=$srcdir-%v.tar
        %p/share/octave/%type_raw[oct]/scripts/octave-forge-compile.sh $pkgsrc
<<

InstallScript: << 
        #!/bin/sh -ev
        %p/share/octave/%type_raw[oct]/scripts/octave-forge-install.sh 
%type_raw[forge]-%v %i %b
        mkdir -p %i/share/octave/%type_raw[oct]/%type_raw[forge]-%v
        # copy template scripts
        cp %p/share/octave/%type_raw[oct]/scripts/octave-forge-prerm 
%p/share/octave/%type_raw[oct]/scripts/octave-forge-postinst 
%i/share/octave/%type_raw[oct]/%type_raw[forge]-%v
        cd %i/share/octave/%type_raw[oct]/%type_raw[forge]-%v
        sed -i -e 's/@PKGNAME@/%type_raw[forge]-%v/' octave-forge-postinst
        sed -i -e 's/@PKGNAME@/%type_raw[forge]/' octave-forge-prerm
        chmod a+x octave-forge*
<<

PostInstScript:  <<
        if [ -s %p/var/octave/%type_raw[oct]/octave_packages ] && [ -f 
%p/var/octave/%type_raw[oct]/octave_packages ] 
        then 
                
%p/share/octave/%type_raw[oct]/%type_raw[forge]-%v/octave-forge-postinst
        else
                mv 
%p/share/octave/%type_raw[oct]/packages/%type_raw[forge]-%v/octave_packages 
%p/var/octave/%type_raw[oct]/octave_packages
        fi
<<

PreRmScript: 
%p/share/octave/%type_raw[oct]/%type_raw[forge]-%v/octave-forge-prerm
<<

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to