<commit_before>require 'formula'

class Ncview < Formula
  homepage 'http://meteora.ucsd.edu/~pierce/ncview_home_page.html'
  url 'ftp://cirrus.ucsd.edu/pub/ncview/ncview-2.1.1.tar.gz'
  sha1 'e5f1c475d684f7d02ca33ca5444da4b4f828005b'

  depends_on :x11
  depends_on "netcdf"

  # Disable a block in configure that tries to pass an RPATH to the compiler.
  # The code guesses wrong which causes the linking step to fail.
  def patches
    DATA
  end

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end

__END__
Don't try to mess with the compiler rpath. Just not a good idea.

diff --git a/configure b/configure
index b80ae96..a650f6f 100755
--- a/configure
+++ b/configure
@@ -8672,29 +8672,6 @@ if test x$CC_TEST_SAME != x$NETCDF_CC_TEST_SAME; then<commit_msg>ncview 2.1.2<commit_after>require 'formula'

class Ncview < Formula
  homepage 'http://meteora.ucsd.edu/~pierce/ncview_home_page.html'
  url 'ftp://cirrus.ucsd.edu/pub/ncview/ncview-2.1.2.tar.gz'
  sha1 '425b0f5d505af9c1f974903435af385582be7ae4'

  depends_on :x11
  depends_on "netcdf"

  # Disable a block in configure that tries to pass an RPATH to the compiler.
  # The code guesses wrong which causes the linking step to fail.
  def patches
    DATA
  end

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end

__END__
Don't try to mess with the compiler rpath. Just not a good idea.

diff --git a/configure b/configure
index b80ae96..a650f6f 100755
--- a/configure
+++ b/configure
@@ -8672,29 +8672,6 @@ if test x$CC_TEST_SAME != x$NETCDF_CC_TEST_SAME; then
{'fraction_non_alphanumeric': 0.10848240046162723, 'fraction_numerical': 0.0675129832660127, 'mean_word_length': 3.270935960591133, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1611738', 'n_tokens_mistral': 705, 'n_tokens_neox': 633, 'n_words': 170}