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

Added Files:
        netcdf7-gfortran.info netcdf7.info netcdf7.patch 
Log Message:
Disable tests on powerpc (who cares about those anyway?) 
Stabilize since the package is otherwise identical on 10.7


--- NEW FILE: netcdf7-gfortran.info ---
Info4: <<
Package: netcdf7-gfortran
Version: 4.1.3
Revision: 5
BuildDependsOnly: True
Maintainer: Alexander Hansen <[email protected]>
BuildDepends: hdf5.7, gcc46, fink-package-precedence, netcdf7 (>= %v-1), 
libcurl4, szip
Depends: %n-shlibs (= %V)
Conflicts: netcdf (<= 3.6.1-1003), netcdf-absoft, netcdf-g95, netcdf-gfortran
Replaces: netcdf (<= 3.6.1-1003), netcdf-absoft, netcdf-g95, netcdf-gfortran
Source: ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-%v.tar.gz
Source-MD5: ead16cb3b671f767396387dcb3c1a814
SourceDirectory: netcdf-%v
NoSetCPPFlags: true
PatchScript: <<
  perl -pi.bak -e 's|\$rpath|%p/opt/netcdf7/lib|g' configure
  perl -pi.bak -e 's|print|!print|' f90/netcdf_expanded.f90
<<
ConfigureParams: <<
  --libdir=%p/opt/netcdf7/lib --includedir=%p/opt/netcdf7/include \
  --enable-shared CFLAGS=-O2 FFLAGS=-O2 FCFLAGS=-O2 FC=%p/bin/gfortran \
  F77=%p/bin/gfortran F90=%p/bin/gfortran \
  --mandir='${prefix}/share/man' --enable-docs-install 
--docdir='${prefix}/share/doc/netcdf' \
  --enable-dap \
  --with-netcdf-c-lib=%p/opt/netcdf7/lib --enable-netcdf-4 \
  --disable-cxx --disable-utilities CPPFLAGS=$CPPFLAGS" -I%p/include" 
LDFLAGS=$LDFLAGS" -lsz"
<<
CompileScript: <<
        %{default_script}
        fink-package-precedence .
        <<
InstallScript: <<
  #!/bin/sh -ev
  make install DESTDIR=%d
  mv include/netcdf_f.h %i/opt/netcdf7/include/
  mkdir -p %i/share
  mkdir -p %i/share/doc
  mkdir -p %i/share/info
  # Add examples for F77 and F90
  mkdir -p %i/share/doc/netcdf7/examples
  cp -r examples/F* %i/share/doc/netcdf7/examples
  # manually add docs
  cp man4/netcdf-f77.{pdf,html} man4/netcdf-f90.{pdf,html} 
man4/netcdf_f{77,90}-man.html %i/share/doc/netcdf7
  cp man4/netcdf-f{77,90}.info %i/share/info
  # remove C library files
  rm %i/opt/netcdf7/include/netcdf.h
  rm -rf %i/opt/netcdf7/lib/libnetcdf.*dylib %i/opt/netcdf7/lib/libnetcdf.*a 
%i/opt/netcdf7/lib/pkgconfig
  rm %i/share/info/netcdf-c* %i/share/info/netcdf-install.info 
%i/share/info/netcdf-tutorial.info %i/share/info/netcdf.info
  rm %i/share/man/man3/netcdf.3
  rm %i/bin/nc-config
  #fix libtool archive file
  #perl -pi -e "s,%i,%p," %i/lib/%n/lib/libnetcdff.la
<<
SplitOff: <<
  Package: %N-shlibs
  Depends: netcdf7-shlibs (>= %v-1), gcc46-shlibs, hdf5.7-shlibs, szip-shlibs, 
libcurl4-shlibs
  Files: opt/netcdf7/lib/libnetcdff.*.dylib
  Shlibs: %p/opt/netcdf7/lib/libnetcdff.5.dylib 7.0.0 %n (>= 4.1.3-1)
  DocFiles: COPYRIGHT README RELEASE_NOTES
<<
InfoDocs: netcdf-f77.info netcdf-f90.info
DocFiles: COPYRIGHT README RELEASE_NOTES
Description: Interface & lib for array-based data access
DescDetail: <<
The netCDF (network Common Data Form) library defines a machine-independent
format for representing scientific data. Together, the interface, library,
and format support the creation, access, and sharing of scientific data.

This package provides a library, documentation, and examples for interfacing
with Fortran 77 and Fortran 90 code using the gfortran compiler.  Because the
library links to libraries from gcc4N-shlibs, a particular gcc4N had to be 
chosen.
<<
DescUsage: <<
Installs library and include files in %p/opt/netcdf7 to allow
the netcdf-gfortran and %N packages to coexist.  Packages building
against this one must ensure that they point to %p/opt/netcdf7 and also
BuildDepend on netcdf7.
<<
DescPackaging: <<
This Fortran interface is created as a different package so that users
do not have to install a Fortran compiler to just get the C/C++ interface.
All docs are moved into the directory /sw/share/doc/netcdf7.
Manually move docs from the tarball to avoid potentially triggering a rebuild.
Patch out a stray print statement--thanks to Remko Scharroo for finding this.
<<
DescPort: <<
CFLAGS=-O2 FFLAGS=-O2 FCFLAGS=-O2 is essential to avoid debugging mode flags 
(-g).
manually feed "-lsz" and "-I%p/include" to the configure script to find szlib
and hdf5.7, respectively.
<<
Homepage: http://www.unidata.ucar.edu/software/netcdf/
License: OSI-Approved
<<
--- NEW FILE: netcdf7.patch ---
diff -Naur netcdf-4.1.3/nc-config.in netcdf-4.1.3.patched/nc-config.in
--- netcdf-4.1.3/nc-config.in   2011-06-30 19:22:22.000000000 -0400
+++ netcdf-4.1.3.patched/nc-config.in   2011-08-04 12:16:06.000000000 -0400
@@ -8,8 +8,9 @@
 
 prefix=@prefix@
 exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
-includedir=${prefix}/include
+ncdir=@FINKPREFIX@/opt/@NCPKG@
+libdir=${ncdir}/lib
+includedir=${ncdir}/include
 
 cc="@CC@"
 cxx="@CXX@"

--- NEW FILE: netcdf7.info ---
Package: netcdf7
Version: 4.1.3
Revision: 2
BuildDependsOnly: True
GCC: 4.0
Maintainer: Alexander Hansen <[email protected]>
Depends: %n-shlibs (= %v-%r), %n-bin (= %v-%r)
BuildDepends: fink-package-precedence, hdf5.7, libcurl4, szip, fink ( >= 
0.24.12 )
Conflicts: netcdf-absoft, netcdf
Replaces: netcdf-absoft, netcdf
Source: ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-%v.tar.gz
Source-MD5: ead16cb3b671f767396387dcb3c1a814

PatchFile: %n.patch
PatchFile-MD5: bedbd9b87b2b2e24d81812a6e75ee7a8
PatchScript:  sed -e 's,@FINKPREFIX@,%p', -e 's,@NCPKG@,%n,' %{PatchFile} | 
patch -p1 

ConfigureParams: <<
  --enable-shared CFLAGS=-O2 CXXFLAGS=-O2 --libdir=%p/opt/netcdf7/lib \
  --includedir=%p/opt/netcdf7/include --enable-cxx-4 \
  --mandir='${prefix}/share/man' --enable-docs-install 
--docdir='${prefix}/share/doc/%n' \
  --disable-fortran-compiler-check --disable-f77 --disable-f90 --with-libcf \
  --disable-dap-remote-tests
<<
CompileScript: <<
        #!/bin/sh -ev
        env LDFLAGS=$LDFLAGS" -lsz"  ./configure %c
        make
        fink-package-precedence  . 
<<
InfoTest: <<
        TestScript: <<
                #!/bin/sh -ev
                if [ "%m" != "powerpc" ]
                        then make -j1 check || exit 2
                else
                        printf "\n**************************\n"
                        printf "Tests disabled on powerpc.\n"
                        printf "**************************\n\n"
                fi
        <<
<<
InstallScript: <<
  #!/bin/sh -ev
  make -j1 install DESTDIR=%d
  # Add C, CDL and CXX examples
  mkdir -p %i/share/doc/%N/examples
  cp -r examples/C* %i/share/doc/%N/examples
  # Add documentation
  cp man4/*.{texi,html,dvi,info*,pdf,ps,txt,tex} %i/share/doc/%N
  # Remove fortran stuff
  rm %i/share/info/netcdf-f*
  pushd %i/share/doc/%N
  rm *f77* *f90*
<<
SplitOff: <<
  Package: %N-shlibs
  Depends: hdf5.7-shlibs, libcurl4-shlibs, szip-shlibs
  Conflicts: netcdf-absoft-shlibs
  Replaces: netcdf-absoft-shlibs, netcdf (<= 3.5.0-6), netcdf-absoft (<= 
3.5.1-2), netcdf-shlibs
  Suggests: %N-bin
  Files: <<
        opt/%N/lib/libnetcdf.*.dylib 
        opt/%N/lib/libnetcdf_c++.*.dylib 
        opt/%N/lib/libnetcdf_c++4.1.dylib 
        opt/%N/lib/libcf.*.dylib
  <<
  Shlibs: <<
    %p/opt/%N/lib/libnetcdf.7.dylib 9.0.0 %n (>= 4.1.3-1)
    %p/opt/%N/lib/libnetcdf_c++.4.dylib 6.0.0 %n (>= 4.1.3-1)
    %p/opt/%N/lib/libnetcdf_c++4.1.dylib 2.0.0 %n (>= 4.1.3-2)
    %p/opt/%N/lib/libcf.0.dylib 1.0.0 %n (>=4.1.3-1)
  <<
  DocFiles: COPYRIGHT README RELEASE_NOTES
<<
SplitOff2: <<
  Package: netcdf7-bin
  Depends: %N-shlibs (= %v-%r)
  Conflicts: netcdf-absoft-bin, netcdf-bin
  Replaces: netcdf-absoft-bin, netcdf-bin, netcdf (<= 3.5.0-6), netcdf-absoft 
(<= 3.5.1-2)
  Files: bin/nc{copy,dump,gen,gen3} bin/cfcheck share/man/man1 
share/doc/%N/*-man-1.html
  DocFiles: COPYRIGHT README RELEASE_NOTES
        Description: Array-based data access, interface
<<
DocFiles: COPYRIGHT README RELEASE_NOTES
InfoDocs: netcdf-install.info netcdf-tutorial.info netcdf.info netcdf-c.info 
netcdf-cxx.info
Description: Array-based data access, headers and docs
DescDetail: <<
The netCDF (network Common Data Form) library defines a machine-independent
format for representing scientific data. Together, the interface, library,
and format support the creation, access, and sharing of scientific data.

This package provides libraries, documentation and examples for interfacing
with C and C++ code. For libraries, documentation and examples for interfacing
with Fortran 77 (and Fortran 90) code install the `%N-gfortran' packages.

It also includes the LibCF library.
<<
DescPackaging: <<
The Fortran interface is moved to a different package so that users
do not have to install gfortran to just get the C/C++ interface.
Included examples in documents directory.
Installs libs and headers in a private directory because libnetcdf_c++.4.dylib
is also installed by netcdf-shlibs.
Disable remote DAP tests since we aren't supposed to be accessing remote data
during the build phase.
Feed -lsz to configure so that it finds libsz.
Patch nc-config to use the actual include and library install locations.

Disable tests on powerpc to allow maintainer mode build, at least until we
figure out why it's failing (or quit supporting powerpc)
<<
DescPort: <<
CFLAGS=-O2 CXXFLAGS=-O2 is essential to avoid debugging mode flags (-g).
<<
DescUsage: <<
        Pacakges building against this one must find the headers in 
        %p/opt/%N/include, and the libs in %p/opt/%N/lib,
        e.g. via ConfigureParams, *FLAGS variables, setting PKG_CONFIG_PATH,
        or explicit patching.
<<
Homepage: http://www.unidata.ucar.edu/software/netcdf/
License: OSI-Approved


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to