decoders _unstable_ port information

Package: decoders
Version: 4.1.7
Revision: 1
Description: Packages to decode GRIB and text into netCDF
License: OSI-Approved
Maintainer: None

# Prerequisites
Depends: netcdf-shlibs (>=3.6.0-1002), netcdf-perl-pm586 (>=1.2.3-5), perl586-core, udunits (>=1.12.3-1)
BuildDepends: netcdf (>=3.6.0-1002), udunits-dev (>=1.12.3-1)

# Unpack Phase:
Source: ftp://ftp.unidata.ucar.edu/pub/%n/%n-%v.tar.gz
Source-MD5: 7af72e7589fb7df2b11494519f5c2ad3

# Patch Script:
PatchScript: <<
#!/bin/sh -ev
/bin/cp ldmConnect/ldmConnect ldmConnect/ldmConnect.orig
/usr/bin/sed 's/^#!\/usr\/local/#!\/usr/' ldmConnect/ldmConnect.orig > ldmConnect/ldmConnect
### Fix paths for dependencies
/usr/bin/perl -pi -e 's,/home/rkambic/udunits,%p,' CUSTOMIZE
/usr/bin/perl -pi -e 's,/home/rkambic/netcdf,%p,' CUSTOMIZE
### fix install dirs
/usr/bin/perl -pi -e 's,\$\(prefix\)/man,\$\(prefix\)/share/man,' port/master.mk.in
/usr/bin/perl -pi -e 's,\$\(prefix\)/etc,\$\(prefix\)/etc/%n,' port/master.mk.in
### don't change permissions on base system dirs
/usr/bin/perl -ni -e 'print unless /chmod u\+rwx,g\+rws,o\=rx \$\@/' port/master.mk.in
<<

# Compile Phase:
ConfigureParams: --exec_prefix=%p --mandir=%p/share/man
CompileScript: <<
#!/bin/sh -ev
export LD_NETCDF='-L%p/lib -lnetcdf'
export LD_UDUNITS='-L%p/lib -ludunits'
./configure %c
/usr/bin/make -w
<<
SourceDirectory: %n-%v/src

InstallScript: <<
/usr/bin/make -w install prefix=%i exec_prefix=%i MANDIR=%i/share/man
<<

DocFiles: COPYRIGHT CUSTOMIZE INSTALL README.perlDecoders RELEASE-NOTES VERSION

DescDetail: <<
The NetCDF Decoders package converts WMO GRIB products
and textual bulletins into NetCDF formatted files.
This package usually works in conjunction
with the LDM package to covert incoming products to
the NetCDF format without the need to store the raw data.
The gribtonc decoder converts most models in the GRIB format.
There are perl decoders for the following textual report types:
METAR, buoy, upper air, and synoptic products.
This package requires the installation of NetCDF, UDUNITS,
and the Perl-NetCDF packages to work.
<<

Homepage: http://www.unidata.ucar.edu/software/decoders/index.html