From: Alexander H. <ale...@us...> - 2011-12-20 17:19:25
|
Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/sci In directory vz-cvs-3.sog:/tmp/cvs-serv13979/10.7/stable/main/finkinfo/sci Modified Files: specfun-oct.info Added Files: specfun-oct-1.0.9.info Log Message: Index: specfun-oct.info =================================================================== RCS file: /cvsroot/fink/dists/10.7/stable/main/finkinfo/sci/specfun-oct.info,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- specfun-oct.info 17 Dec 2011 14:21:59 -0000 1.7 +++ specfun-oct.info 20 Dec 2011 17:19:22 -0000 1.8 @@ -1,8 +1,8 @@ Info2: << Package: specfun-oct%type_pkg[oct] -Version: 1.0.9 -Type: oct (3.0.5 3.2.4 3.4.3), forge (specfun) -Revision: 2 +Version: 1.1.0 +Type: oct (3.4.3), forge (specfun) +Revision: 1 Maintainer: Alexander Hansen <ale...@us...> # unfortunately, Homepage won't do types Homepage: http://octave.sourceforge.net/specfun/index.html @@ -54,10 +54,12 @@ Conflicts: octave-forge, octave-forge-%type_raw[forge] (<< 1.0.7-999) Replaces: octave-forge-%type_raw[forge] (<< 1.0.7-999) -Source-MD5: 264ab3748fa01aed0efde413b629f63d +Source-MD5: eef8c1ff37b05d5e3388ecedc045d53a #### Insert required changes here #### +SourceDirectory: %type_pkg[forge] + ###################################### # Do not change anything from this point down, unless absolutely necessary, @@ -79,20 +81,16 @@ if [ %type_pkg[oct] -ge 343 ] then cd .. - tar -cf %type_raw[forge]-%v.tar %type_raw[forge]-%v + tar -cf %type_raw[forge].tar %type_raw[forge] cd %b - pkgsrc=%type_raw[forge]-%v.tar -else pkgsrc=%type_raw[forge]-%v + 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 - # remove function which is built in for octave >= 3.4.3 - if [ %type_pkg[oct] -ge 343 ] - then rm %b/../bld/share/octave/%type_raw[oct]/packages/%type_raw[forge]-%v/erfcx.m - fi %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 --- NEW FILE: specfun-oct-1.0.9.info --- Info2: << Package: specfun-oct%type_pkg[oct] Version: 1.0.9 Type: oct (3.0.5 3.2.4), forge (specfun) Revision: 2 Maintainer: Alexander Hansen <ale...@us...> # unfortunately, Homepage won't do types Homepage: http://octave.sourceforge.net/specfun/index.html Description: Special functions for Octave DescDetail: << Includes the following special functions: Ci Si cosint dirac ellipj ellipke erfcinv erfcx expint expint_E1 expint_Ei heaviside laguerre lambertw psi sinint test_ellipj test_sncndn zeta ellipj << License: GPL # All octave-forge packages have to have the following BuildDepends: # octave%type_pkg[oct]-dev | octave%type_pkg[oct]-atlas-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: << liboctave%type_pkg[oct]-dev, fftw3, ( %type_pkg[oct] = 305 ) hdf5.7-oldapi, ( %type_pkg[oct] != 305 ) hdf5.7 << Depends: << octave%type_pkg[oct]-interpreter << Conflicts: octave-forge, octave-forge-%type_raw[forge] (<< 1.0.7-999) Replaces: octave-forge-%type_raw[forge] (<< 1.0.7-999) Source-MD5: 264ab3748fa01aed0efde413b629f63d #### 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. Source: mirror:sourceforge:octave/%type_raw[forge]-%v.tar.gz NoSetCPPFLAGS: true NoSetLDFLAGS: true SetLIBRARY_PATH: /usr/X11R6/lib:%p/lib SetMAKEFLAGS: -j1 CompileScript: << #!/bin/sh -ev 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]-%v cd %b pkgsrc=%type_raw[forge]-%v.tar else pkgsrc=%type_raw[forge]-%v fi %p/share/octave/%type_raw[oct]/scripts/octave-forge-compile.sh $pkgsrc << InstallScript: << #!/bin/sh -ev # remove function which is built in for octave >= 3.4.3 if [ %type_pkg[oct] -ge 343 ] then rm %b/../bld/share/octave/%type_raw[oct]/packages/%type_raw[forge]-%v/erfcx.m fi %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: << 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. << << |