the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
Package: io-oct%type_pkg[oct]
Version: 1.0.18
Type: oct (3.4.3 3.6.0 3.6.1), forge (io), gcc (4.6)
Revision: 3
Maintainer: Alexander Hansen
# unfortunately, Homepage won't do types
Homepage: http://octave.sourceforge.net/io/index.html
Description: Input/Output in external formats for Octave
DescDetail: <<
This package provides the following additional functions:
File I/O:
append_save
fexist
Miscellaneous conversion functions:
object2json
pch2mat
CSV file functions:
csv2cell
csvconcat
csvexplode
cell2csv
XML I/O:
xmlread
xmlwrite
Spreadsheet I/O user functions for MS-Excel
(not yet working in Fink):
oct2xls
xls2oct
xlsclose
xlsfinfo
xlsopen
xlsread
xlswrite
Spreadsheet I/O user functions for OpenOffice.org Calc
(not yet working in Fink):
oct2ods
ods2oct
odsclose
odsfinfo
odsopen
odsread
odswrite
Spreadsheet utility functions:
calccelladdress
chk_spreadsheet_support
parsecell
Spreadsheet I/O internal functions:
getusedrange
parse_sp_range
spsh_chkrange
spsh_prstype
Spreadsheet function test scripts:
io_xls_testscript
io_ods_testscript
<<
License: OSI-Approved
# All octave-forge packages have to have the following BuildDepends:
# liboctave%type_pkg[oct]-gcc%type_pkg[gcc]-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: <<
( %type_pkg[oct] << 360 ) liboctave%type_pkg[oct]-gcc%type_pkg[gcc]-dev,
( %type_pkg[oct] >= 360 ) liboctave%type_pkg[oct]-dev,
fftw3,
hdf5.7
<<
Depends: <<
octave%type_pkg[oct]-interpreter,
( %type_pkg[oct] << 360 ) gcc%type_pkg[gcc]-shlibs
<<
Conflicts: octave-forge
Source-MD5: e470620de5553374396f70632cb1acb9
#### Insert required changes here ####
SourceDirectory: %type_pkg[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
cd ..
tar -cf %type_raw[forge].tar %type_raw[forge]
cd %b
pkgsrc=%type_raw[forge].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
DescPackaging: <<
Listed license is GPL3+/simplified BSD, so call that "OSI-Approved"
Octave <= 3.4.3 publish more library information than does Octave >= 3.6.0, so
the linked library content is different.
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.
<<
<<