<commit_before>require 'formula'

def build_gui?
  ARGV.include? '--with-gui'
end

class Postgis < Formula
  url 'http://postgis.refractions.net/download/postgis-1.5.3.tar.gz'
  homepage 'http://postgis.refractions.net/'
  md5 '05a61df5e1b78bf51c9ce98bea5526fc'

  head 'http://svn.osgeo.org/postgis/trunk/', :using => :svn

  devel do
    url 'http://postgis.org/download/postgis-2.0.0alpha5.tar.gz'
    md5 'd47923c07b590571d9b9af6cd7c07813'
    version '2.0.0alpha5'
  end

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

  depends_on 'gtk+' if build_gui?

  # For GeoJSON and raster handling
  if ARGV.build_head? or ARGV.build_devel?
    depends_on 'gdal'
    depends_on 'json-c'
  end

  def options
    [
      ['--with-gui', 'Build shp2pgsql-gui in addition to command line tools']
    ]
  end

  # PostGIS command line tools intentionally have unused symbols in
  # them---these are callbacks for liblwgeom.
  skip_clean :all

  def install<commit_msg>PostGIS: Update --devel to 2.0.0alpha6<commit_after>require 'formula'

def build_gui?
  ARGV.include? '--with-gui'
end

class Postgis < Formula
  url 'http://postgis.refractions.net/download/postgis-1.5.3.tar.gz'
  homepage 'http://postgis.refractions.net/'
  md5 '05a61df5e1b78bf51c9ce98bea5526fc'

  head 'http://svn.osgeo.org/postgis/trunk/', :using => :svn

  devel do
    url 'http://postgis.org/download/postgis-2.0.0alpha6.tar.gz'
    md5 '1895d14c26c2458004d9b4f77931958c'
    version '2.0.0alpha6'
  end

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

  depends_on 'gtk+' if build_gui?

  # For GeoJSON and raster handling
  if ARGV.build_head? or ARGV.build_devel?
    depends_on 'gdal'
    depends_on 'json-c'
  end

  def options
    [
      ['--devel', 'Build unstable snapshots of PostGIS 2.0'],
      ['--with-gui', 'Build shp2pgsql-gui in addition to command line tools']
    ]
  end

  # PostGIS command line tools intentionally have unused symbols in
  # them---these are callbacks for liblwgeom.
  skip_clean :all

  def install
{'fraction_non_alphanumeric': 0.1172447484123107, 'fraction_numerical': 0.056179775280898875, 'mean_word_length': 3.3481953290870488, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6567261', 'n_tokens_mistral': 891, 'n_tokens_neox': 816, 'n_words': 176}