Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/sci
In directory vz-cvs-3.sog:/tmp/cvs-serv9560/10.7/stable/main/finkinfo/sci

Modified Files:
        bundle-octave.info 
Added Files:
        cgi-oct.info 
Log Message:
New package.


--- NEW FILE: cgi-oct.info ---
Info2: <<
Package: cgi-oct%type_pkg[oct]
Version: 0.1.0
Type: oct (3.4.3 3.6.0 3.6.1 3.6.2 3.6.3), forge (cgi)
Revision: 1
Maintainer: Alexander Hansen <[email protected]>
# unfortunately, Homepage won't do types
Homepage: http://octave.sourceforge.net/cgi/index.html 
License: GPL2+

Description: Common Gateway Interface for Octave
DescDetail: <<
The following functions are included:

Web development:
        @cgi/cgi
        @cgi/getfirst
        @cgi/getlist
        @cgi/has
        @cgi/subsref
<<
DescPackaging: <<
This package:  Listed license is GPLv3+, MIT, FreeBSD

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: <<
  liboctave%type_pkg[oct]-dev,
  fftw3, 
  hdf5.7, 
  graphicsmagick-dev, 
  fink (>=0.32)
<<
Depends: octave%type_pkg[oct]-interpreter

Conflicts: octave-forge

Source: mirror:sourceforge:octave/%type_raw[forge]-%v.tar.gz
Source-MD5: d9a30c39a52f408bcc288b8ba085360a
SourceDirectory: %type_raw[forge]

######################################

# 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 %type_raw[forge]
        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
<<


Index: bundle-octave.info
===================================================================
RCS file: /cvsroot/fink/dists/10.7/stable/main/finkinfo/sci/bundle-octave.info,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- bundle-octave.info  4 Nov 2012 16:32:47 -0000       1.41
+++ bundle-octave.info  22 Nov 2012 19:40:52 -0000      1.42
@@ -15,6 +15,7 @@
 bim-oct%type_pkg[oct],
 ( %type_pkg[oct] = 305 ) bugfix-3.0.6-oct305,
 bioinfo-oct%type_pkg[oct],
+( %type_pkg[oct] >= 343 ) cgi-oct%type_pkg[oct],
 civil-engineering-oct%type_pkg[oct],
 ( %type_pkg[oct] <= 343 ) combinatorics-oct%type_pkg[oct],
 ( %type_pkg[oct] != 324 ) communications-oct%type_pkg[oct],


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to