<commit_before>require 'formula'

class Postgis <Formula
  url 'http://postgis.refractions.net/download/postgis-1.5.1.tar.gz'
  homepage 'http://postgis.refractions.net/'
  md5 '8353b38c38282b2192f01693f71b8d28'

  depends_on 'postgresql'
  depends_on 'proj'
  depends_on 'geos'

  def install
    ENV.deparallelize
    system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking", "--with-projdir=#{HOMEBREW_PREFIX}"
    system "make install"

    # Copy some of the generated files to the share folder
    (share+'postgis').install %w( spatial_ref_sys.sql postgis/postgis.sql postgis/postgis_upgrade_13_to_15.sql postgis/postgis_upgrade_14_to_15.sql postgis/postgis_upgrade_15_minor.sql postgis/uninstall_postgis.sql )
    # Copy loader and utils binaries to bin folder
    bin.install %w( loader/pgsql2shp loader/shp2pgsql utils/create_undef.pl utils/new_postgis_restore.pl utils/postgis_proc_upgrade.pl utils/postgis_restore.pl utils/profile_intersects.pl )

  end
end<commit_msg>postgis - add a link to the docs in the caveats<commit_after>require 'formula'

class Postgis <Formula
  url 'http://postgis.refractions.net/download/postgis-1.5.1.tar.gz'
  homepage 'http://postgis.refractions.net/'
  md5 '8353b38c38282b2192f01693f71b8d28'

  depends_on 'postgresql'
  depends_on 'proj'
  depends_on 'geos'

  def install
    ENV.deparallelize
    system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking", "--with-projdir=#{HOMEBREW_PREFIX}"
    system "make install"

    # Copy some of the generated files to the share folder
    (share+'postgis').install %w( spatial_ref_sys.sql postgis/postgis.sql postgis/postgis_upgrade_13_to_15.sql postgis/postgis_upgrade_14_to_15.sql postgis/postgis_upgrade_15_minor.sql postgis/uninstall_postgis.sql )
    # Copy loader and utils binaries to bin folder
    bin.install %w( loader/pgsql2shp loader/shp2pgsql utils/create_undef.pl utils/new_postgis_restore.pl utils/postgis_proc_upgrade.pl utils/postgis_restore.pl utils/profile_intersects.pl )
  end

  def caveats
    <<-EOS.undent
      To create a spatially-enabled database, see the documentation:
        http://postgis.refractions.net/documentation/manual-1.5/ch02.html#id2786223
    EOS
  end
end
{'fraction_non_alphanumeric': 0.10488570147915732, 'fraction_numerical': 0.04168534289556253, 'mean_word_length': 4.511111111111111, 'pattern_counts': {'":': 0, '<': 7, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6687484', 'n_tokens_mistral': 887, 'n_tokens_neox': 822, 'n_words': 152}