the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
Package: financial-oct%type_pkg[oct]
Version: 0.4.0
Type: oct (3.0.5 3.2.4 3.4.3 3.6.0 3.6.1), forge (financial)
Revision: 1
Maintainer: Alexander Hansen
# unfortunately, Homepage won't do types
Homepage: http://octave.sourceforge.net/financial/index.html
Description: Financial functions for Octave
DescDetail: <<
Financial manipulation and plotting functions.
This package provides the following functions:
Financial:
cfconv
cfdur
corr2cov
cov2corr
effrr
fetch
fvl
fv
google
hhigh
irr
llow
mirr
movavg
negvolidx
nomrr
nper
npv
onbalvol
pmt
posvolidx
pvl
pv
rate
rsindex
taxedrr
vol
yahoo
Plot:
bolling
dateaxis
highlow
pointfig
Time:
busdate
busdays
datefind
datesplit
day
daysact
easter
eomdate
fbusdate
holidays
hour
isbusday
lbusdate
lweekdate
m2xdate
minute
month
months
nweekdate
second
thirdwednesday
today
x2mdate
yeardays
year
<<
License: GPL3+
# All octave-forge packages have to have the following BuildDepends:
# octave%type_pkg[oct]-dev | octave%type_pkg[oct]-atlas-dev,
# fftw3,
# ( %type_pkg[oct] = 305 ) hdf5.7-oldapi,
# ( %type_pkg[oct] != 305 ) hdf5.7
#
# Packages which serve only Octave-3.0.5 or only Octave > 3.0.5 need
# not use the conditional, of course.
BuildDepends: <<
liboctave%type_pkg[oct]-dev,
fftw3,
( %type_pkg[oct] = 305 ) hdf5.7-oldapi,
( %type_pkg[oct] != 305 ) hdf5.7,
fink (>=0.32)
<<
RuntimeDepends: <<
( %type_pkg[oct] >= 360 ) io-oct%type_pkg[oct] ( >= 1.0.18 ),
( %type_pkg[oct] <= 324 ) miscellaneous-oct%type_pkg[oct] (<< 1.1.0),
( %type_pkg[oct] = 343 ) io-oct%type_pkg[oct] ( >= 1.0.18 ) | ( %type_pkg[oct] = 343 ) miscellaneous-oct%type_pkg[oct] (<< 1.1.0)
<<
Depends: <<
octave%type_pkg[oct]-interpreter
<<
Conflicts: octave-forge
Source-MD5: d4d8eaaf75af34c71b2c34c4e83655ae
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.
<<
#### Insert required changes here ####
SourceDirectory: %type_raw[forge]
######################################
# 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.
Source: mirror:sourceforge:octave/%type_raw[forge]-%v.tar.gz
NoSetCPPFLAGS: true
NoSetLDFLAGS: true
SetLIBRARY_PATH: /usr/X11R6/lib:%p/lib
UseMaxBuildJobs: false
BuildAsNobody: false
CompileScript: <<
#!/bin/sh -ev
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]
# repack tarball, since octave-3.4.3 appears not to want to install
# from directories
if [ %type_pkg[oct] -ge 343 ]
then
pkgsrc=%type_raw[forge]-%v.tar
cd ..
tar -cf $pkgsrc %type_raw[forge]
cd %b
else pkgsrc=%type_raw[forge]
fi
%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
<<