Info2: << Package: symbolic-oct%type_pkg[oct] Version: 1.1.0 Type: oct (3.2.4 3.6.0 3.6.1 3.6.2 3.6.3 3.6.4), forge (symbolic), gcc (4.6) Revision: 3 Maintainer: Alexander Hansen # unfortunately, Homepage won't do types Homepage: http://octave.sourceforge.net/symbolic/index.html Description: Symbolic toolbox for Octave DescDetail: << Symbolic toolbox based on GiNaC and CLN. The package provides the following functions: Symbols: symbols sym ex_matrix Pi Extended precision arithmetic: digits vpa to_double Properties: is_ex is_ex_matrix is_sym is_vpa syminfo Expression manipulation: subs collect expand lcoeff numden findsymbols findsym Special Functions: Abs Cos Cosh Exp Gcd Log Sin Sinh Tan Tanh aCos aCosh aSin aSinh aTan aTanh Sqrt Polynomials: tcoeff coeff degree ldegree sym2poly poly2sym sumterms Calculus differentiate Solving Equations: symlsolve symfsolve Number theory: probably_prime quotient remainder premainder Plot: splot Conversion: to_char << License: GPL2+ 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. << BuildDepends: << ( %type_pkg[oct] << 360 ) liboctave%type_pkg[oct]-gcc%type_pkg[gcc]-dev, ( %type_pkg[oct] >= 360 ) liboctave%type_pkg[oct]-dev, cln6, fftw3, ginac2, hdf5.8 << Depends: << octave%type_pkg[oct]-interpreter, cln6-shlibs, ginac2-shlibs, ( %type_pkg[oct] << 360 ) gcc%type_pkg[gcc]-shlibs << Conflicts: octave-forge Source: mirror:sourceforge:octave/%type_raw[forge]-%v.tar.gz Source-MD5: c6e7a4d9e3e1f9e836a28f9e1e8cf02e SourceDirectory: %type_pkg[forge] #### Insert required changes here #### ###################################### # 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 if [ %type_pkg[oct] -ge 343 ] then cd .. tar -cf %type_raw[forge]-%v.tar %type_raw[forge] cd %b pkgsrc=%type_raw[forge]-%v.tar 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 `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 <<