Info2: << Package: strings-oct%type_pkg[oct] Version: 1.1.0 Type: oct (3.8.2), forge (strings) Revision: 2 Maintainer: Alexander Hansen <alexkhansen@users.sourceforge.net> # unfortunately, Homepage won't do types Homepage: http://octave.sourceforge.net/strings/index.html Description: String manipulation functions for Octave DescDetail: << Additional string manipulation functions. This package provides the following functions: Search and replace: pcregexp Operations: strsort editdistance cstrcmp strjoin Conversion: base64encode base64decode << License: OSI-Approved BuildDepends: << liboctave%type_pkg[oct]-dev, fftw3, hdf5.9, libpcre1 << Depends: << octave%type_pkg[oct]-interpreter, libpcre1-shlibs << Conflicts: octave-forge Source: mirror:sourceforge:octave/%type_raw[forge]-%v.tar.gz Source-Checksum: SHA256(068df2b39d938c530a4d9f8ffefa4735f5bb64b1bc1d05957b1f2d7566309d68) SourceDirectory: %type_pkg[forge] PatchScript: perl -pi -e 's|mkoctfile|mkoctfile -L%p/lib -lpcre|' src/Makefile NoSetCPPFLAGS: true NoSetLDFLAGS: true UseMaxBuildJobs: false BuildAsNobody: false CompileScript: << #!/bin/sh -ev pkgsrc=%type_raw[forge] ##### Invariant stuff begins here ##### %p/share/fink-octave-scripts/octave-forge-patch.sh %type_raw[forge] %v %type_raw[oct] %b %i $pkgsrc ./octave-forge-compile.sh << InstallScript: ./octave-forge-install.sh PostInstScript: %p/share/octave/%type_raw[oct]/%type_raw[forge]/octave-forge-postinst.sh PreRmScript: %p/share/octave/%type_raw[oct]/%type_raw[forge]/octave-forge-prerm.sh DescPackaging: << This package: Listed license is GPL3+/modified BSD/public domain, so lump those together as "OSI-Approved". Octave Forge appears to be ditching that whole "portability" nonsense, even when using GNU tools, so hand-patch the Makefile to include libpcre. Common for all octave-forge packages: Preinst and postinst scripts are dynamically set up via %p/share/fink-octave-scripts/octave-forge-patch.sh 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. << <<