Info2: << Package: mvapack-oct%type_pkg[oct] Version: 0.3.1 Type: oct (3.6.0 3.6.1 3.6.2 3.6.3 3.6.4), forge (mvapack) Revision: 1 Maintainer: Jack Howarth # unfortunately, Homepage won't do types Homepage: http://bionmr.unl.edu/mvapack.php Description: NMR Chemometrics Toolbox DescDetail: << Processing, modeling and validation functions for 1D NMR chemometrics, focused on metabolomics data processing and analysis. This package provides the following functions: << License: GPL3 Source: http://bionmr.unl.edu/files/mvapack/mvapack-20140401.tar.gz Source-MD5: f8cf98342b481a53ab2dbdb27d9efcf0 SourceDirectory: mvapack BuildDepends: << liboctave%type_pkg[oct]-dev, fftw3, hdf5.8, fink (>= 0.32) << RuntimeDepends: io-oct%type_pkg[oct], image-oct%type_pkg[oct], optim-oct%type_pkg[oct] | optim-atlas-oct%type_pkg[oct], signal-oct%type_pkg[oct] Depends: << octave%type_pkg[oct]-interpreter << Conflicts: octave-forge DescPackaging: << This package: Upstream tarballed named by release date instead of actual release version. 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. << #### Insert required changes here #### #PatchScript: << ##!/bin/sh -ev #<< ###################################### # 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 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]-%v.tar mvapack cd %b pkgsrc=%type_raw[forge]-%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 `which xvfb-run` %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: `which xvfb-run` %p/share/octave/%type_raw[oct]/%type_raw[forge]-%v/octave-forge-prerm <<