dods stable port information

Package: dods
Version: 3.4.5
# x86_64 loses precision in a cast
Architecture: i386, powerpc
Revision: 1012
Maintainer: None
Source: http://opendap.org/pub/dods/DODS-3.4/source/DODS-dap-%v.tar.gz
Source2: http://opendap.org/pub/dods/DODS-3.4/source/DODS-packages-3.4.2.tar.gz
Source3: http://opendap.org/pub/dods/DODS-3.4/source/DODS-nc3-dods-%v.tar.gz
Source-MD5: 9c30aa5b7be94d0e2b1901477a32e46d
Source2-MD5: 28287b9c8eed49a0251b9ef3531c4b71
Source3-MD5: 480c639f6d686b875f9d89e2e5856ad6
GCC: 4.0
SourceDirectory: DODS
UseMaxBuildJobs: false
NoSetCPPFLAGS: True
NoSetLDFLAGS: True
BuildDepends: gcc44, fink (>= 0.24.12-1), openssl098-dev, libcurl4, libiconv-dev, libxml2
Depends: openssl, openssl098-shlibs, libcurl4-shlibs, libiconv, libxml2-shlibs
UpdateConfigGuessInDirs: etc
PatchFile: %n.patch
PatchFile-MD5: 32aee774d22b2378e10c5c9a1a4a7711
CompileScript: <<
#!/bin/sh -ev
export FC=%p/bin/gfortran
./configure
make World
<<
InstallScript: <<
#!/bin/sh -ev
mkdir -p %i/lib/dods
cp -R bin lib include etc %i/lib/dods
ranlib %i/lib/dods/lib/lib*.a
perl -pi -e 's|%b|%p/lib/dods|g' %i/lib/dods/etc/nph-dods
perl -pi -e 's|%b|%p/lib/dods|g' %i/lib/dods/include/*.h
perl -pi -e 's|%b|%p/lib/dods|g' %i/lib/dods/lib/lib*.la
perl -pi -e 's|%b|%p/lib/dods|g' %i/lib/dods/lib/*sh
perl -pi -e 's|%b|%p/lib/dods|g' %i/lib/dods/lib/pkgconfig/*pc
perl -pi -e 's|%b|%p/lib/dods|g' %i/lib/dods/bin/*config
<<
DocFiles: README INSTALL ChangeLog VERSION
Description: Client libs for scientific data networking
DescDetail: <<
OPeNDAP (formerly known as DODS) is a binary-level
protocol designed for the transport of scientific data subsets
over the Internet. OPeNDAP-enabled applications can open and
read subsets from remote data sets. This package provides
an OPeNDAP/DODS-enabled version the netCDF library. Applications
that link this library, instead of the standard netCDF library,
can access remote datasets served from OPeNDAP/DODS servers via
http.
<<
DescPort: <<
Installs in %p/lib/dods to avoid conflicts with
standard netcdf and udunits packages.
Builds its own (static) versions of libz, libxml2 and libcurl.
<<
DescPackaging: <<
Although this package has a GPL license, it is marked Restrictive since
it links to openssl.
<<
License: Restrictive
Homepage: http://www.opendap.org/

dods stable port .patch

--- DODS/src/dap-3.4.5/configure.bak 2005-04-04 00:44:53.000000000 -0700
+++ DODS/src/dap-3.4.5/configure 2005-04-04 00:45:38.000000000 -0700
@@ -3297,7 +3297,7 @@
echo "${ECHO_T}Found egcs version ${GCC_VER}." >&6 ;;
2.[7-9]*) echo "$as_me:$LINENO: result: Found gcc/g++ version ${GCC_VER}" >&5
echo "${ECHO_T}Found gcc/g++ version ${GCC_VER}" >&6 ;;
- 3.[0-9]*) echo "$as_me:$LINENO: result: Found gcc/g++ version ${GCC_VER}" >&5
+ [4-9].*) echo "$as_me:$LINENO: result: Found gcc/g++ version ${GCC_VER}" >&5
echo "${ECHO_T}Found gcc/g++ version ${GCC_VER}" >&6 ;;
*) { { echo "$as_me:$LINENO: error: must be at least version 2.7.x" >&5
echo "$as_me: error: must be at least version 2.7.x" >&2;}
--- DODS/src/dap-3.4.5/Operators.h.bak 2005-04-04 00:50:33.000000000 -0700
+++ DODS/src/dap-3.4.5/Operators.h 2005-04-04 00:56:13.000000000 -0700
@@ -37,6 +37,9 @@
#define _operators_h

#include // GNU Regex class used for string =~ op.
+#include
+
+using namespace std;

static unsigned
dods_max(int i1, int i2)
--- DODS/src/dap-3.4.5/RValue.cc.bak 2005-04-04 01:00:51.000000000 -0700
+++ DODS/src/dap-3.4.5/RValue.cc 2005-04-04 01:01:13.000000000 -0700
@@ -110,7 +110,7 @@
#ifdef WIN32
BaseType **argv = (new (BaseType*)) + argc + 1;
#else
- BaseType **argv = new (BaseType*)[argc + 1];
+ BaseType **argv = new BaseType*[argc + 1];
#endif

int index = 0;
--- DODS/src/nc3-dods-3.4.5/configure.bak 2005-04-04 00:43:35.000000000 -0700
+++ DODS/src/nc3-dods-3.4.5/configure 2005-04-04 00:44:14.000000000 -0700
@@ -2562,7 +2562,7 @@
case $GCC_VER in
*egcs*) echo "$ac_t""Found egcs version ${GCC_VER}." 1>&6 ;;
2.[7-9]*) echo "$ac_t""Found gcc/g++ version ${GCC_VER}" 1>&6 ;;
- 3.[0-9]*) echo "$ac_t""Found gcc/g++ version ${GCC_VER}" 1>&6 ;;
+ [4-9].*) echo "$ac_t""Found gcc/g++ version ${GCC_VER}" 1>&6 ;;
*) { echo "configure: error: must be at least version 2.7.x" 1>&2; exit 1; } ;;
esac

dods _unstable_ port .patch