Info2: << Package: vrml-oct%type_pkg[oct] Version: 1.0.13 Type: oct (3.0.5 3.2.4 3.4.3 3.6.0 3.6.1 3.6.2 3.6.3 3.6.4), forge (vrml) Revision: 3 Maintainer: Alexander Hansen # unfortunately, Homepage won't do types Homepage: http://octave.sourceforge.net/vrml/index.html Description: VRML for Octave DescDetail: << 3D graphics using VRML. This package provides the following functions: 3D visualization: vmesh select_3D_points vrml_browse vrml_kill vrml_anim Create 3D objects: vrml_surf vrml_points vrml_select_points vrml_faces vrml_cyl vrml_frame vrml_flatten vrml_transfo vrml_Background vrml_PointLight vrml_text vrml_arrow vrml_lines vrml_group Support Functions: data2vrml save_vrml best_dir best_dir_cov proplan bound_convex vrml_DirectionalLight vrml_ROUTE vrml_TimeSensor vrml_ellipsoid vrml_interp vrml_material vrml_newname vrml_parallelogram vrml_thick_surf Demos: test_vmesh test_vrml_faces vrml_demo_tutorial_1 vrml_demo_tutorial_2 vrml_demo_tutorial_3 vrml_demo_tutorial_4 << License: GPL3+/GFDL DescPackaging: << This package: Apply fix from Launchpad and Debian to vrml_material.m. Build .dvi and .pdf docs as Source2 to include in the package since forcing users to have TeX to build the docs is just cruel. :-) 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. << Source: mirror:sourceforge:octave/%type_raw[forge]-%v.tar.gz Source-MD5: 79df290cea3f45e49eb58bfc664679b1 SourceDirectory: %type_pkg[forge] Source2: mirror:master:%type_pkg[forge]-doc.tar.bz2 Source2-MD5: 32fe179347ff775533696c41be59e90c BuildDepends: << liboctave%type_pkg[oct]-dev, fftw3, ( %type_pkg[oct] = 305 ) hdf5.8-oldapi, ( %type_pkg[oct] != 305 ) hdf5.8, fink (>=0.32) << RuntimeDepends: << freewrl-x11, linear-algebra-oct%type_pkg[oct] | linear-algebra-atlas-oct%type_pkg[oct] | linear-algebra-ref-oct%type_pkg[oct], miscellaneous-oct%type_pkg[oct], struct-oct%type_pkg[oct], statistics-oct%type_pkg[oct] << Depends: octave%type_pkg[oct]-interpreter Conflicts: octave-forge PatchFile: %{ni}.patch PatchFile-MD5: 963ef358c747a6f280059a3b71c96930 # 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].tar %type_raw[forge] cd %b pkgsrc=%type_raw[forge].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* #package-specific cleanup find %i -name .svnignore | xargs rm -rf # Put in compiled docs cd %b/../doc cp * %i/share/octave/%type_raw[oct]/packages/%type_raw[forge]-%v/doc/ << 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 <<