Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add compatible netCDF C++ bindings #15264

Closed
wants to merge 1 commit into from

2 participants

Li Dong Adam Vandenberg
Li Dong

In some old codes, the old C++ netCDF API has been used, so we should
provide the compatible C++ bindings by adding an option
"--enable-cxx-compat".

Li Dong dongli Add compatible netCDF C++ bindings
In some old codes, the old C++ netCDF API has been used, so we should
provide the compatible C++ bindings by adding an option
"--enable-cxx-compat".
87bac91
Adam Vandenberg adamv closed this pull request from a commit
Li Dong dongli netCDF: option for C++ bindings
Closes #15264.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
752afd1
Adam Vandenberg adamv closed this in 752afd1
allen huang allenhuang referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
theirix theirix referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
snakeyroc3 snakeyroc3 referenced this pull request from a commit in snakeyroc3/homebrew
Li Dong dongli netCDF: option for C++ bindings
Closes #15264.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
13e8af3
Shaun Jackman sjackman referenced this pull request from a commit in sjackman/homebrew
Li Dong dongli netCDF: option for C++ bindings
Closes #15264.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
fa26fe6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 3, 2012
  1. Li Dong

    Add compatible netCDF C++ bindings

    dongli authored
    In some old codes, the old C++ netCDF API has been used, so we should
    provide the compatible C++ bindings by adding an option
    "--enable-cxx-compat".
This page is out of date. Refresh to see the latest.
Showing with 13 additions and 1 deletion.
  1. +13 −1 Library/Formula/netcdf.rb
14 Library/Formula/netcdf.rb
View
@@ -6,6 +6,12 @@ class NetcdfCXX < Formula
sha1 '59628c9f06c211a47517fc00d8b068da159ffa9d'
end
+class NetcdfCXX_compat < Formula
+ homepage 'http://www.unidata.ucar.edu/software/netcdf'
+ url 'http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-cxx-4.2.tar.gz'
+ sha1 'bab9b2d873acdddbdbf07ab35481cd0267a3363b'
+end
+
class NetcdfFortran < Formula
homepage 'http://www.unidata.ucar.edu/software/netcdf'
url 'http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-fortran-4.2.tar.gz'
@@ -19,8 +25,9 @@ class Netcdf < Formula
depends_on 'hdf5'
- option 'enable-fortran', 'Compile Fortran Bindings'
+ option 'enable-fortran', 'Compile Fortran bindings'
option 'disable-cxx', "Don't compile C++ bindings"
+ option 'enable-cxx-compat', 'Compile C++ bindings for compatibility'
def install
if build.include? 'enable-fortran'
@@ -56,6 +63,11 @@ def install
system 'make install'
end unless build.include? 'disable-cxx'
+ NetcdfCXX_compat.new.brew do
+ system './configure', *common_args
+ system 'make install'
+ end if build.include? 'enable-cxx-compat'
+
NetcdfFortran.new.brew do
system './configure', *common_args
system 'make install'
Something went wrong with that request. Please try again.