Package: fcat
Version: 1.0
Revision: 2
Description: FORTRAN Coverage Analysis Tool
License: OSI-Approved

# Unpack Phase:
Source:http://yifanhu.net/SOFTWARE/FCAT/%n.tar.gz
Source-Checksum: SHA256(2218a9daf99bc2f1e877e1fe75196b2d6be288413f098a79910cc6ec51ff01ab)
SourceDirectory: FCAT

# patch to correctly treat dimension declarations. send upstream.
# '&' represent the existing string, '$' is the separator
# '\' is the esc character and therefore needs to be escaped in the 
# replacemant string. i.e. '\\' gives '\' in the result.
PatchScript: <<
#!/bin/sh -ev
  sed -i.bak 's$dimension.*||$&         /^(\\s*dimension\\s+)/i ||$g' bin/fcat
<<

# Compile Phase (NOTE: there is no configure):
CompileScript: <<
#!/bin/sh -ev
 echo 'Nothing to compile for a perl script.'
<<

# Install Phase:
DocFiles: README example/*.f90 example/Makefile

InstallScript: <<
#!/bin/sh -ev
# programs
  mkdir -p %i/bin
  install -m 755 bin/fcat %i/bin
<<

DescDetail: <<
  The FCAT tool is used for the Coverage Analysis of FORTRAN codes.
  This includes

   - finding out "cold-spot" in Fortran codes 
     (the part of the codes that are never executed),
     and flags these parts line-by-line.
      

   - finding out "hot-spot" in Fortran codes 
     (the part of the codes that are most frequently executed),
     and gives a line by line profile.

  It is designed to working mainly with F90/F95, even through it can
  also work with fixed formatted FORTRAN, thus F77.
<<

DescUsage: <<
  see the README and example files in %p/share/doc/fcat/
<<

DescPort: See notes for the PatchScript.
Homepage: http://yifanhu.net/SOFTWARE/FCAT/
Maintainer: Karl-Michael Schindler <karl-michael.schindler@web.de>