<commit_before>require 'formula'

class Ushare < Formula
  url 'http://ushare.geexbox.org/releases/ushare-1.1a.tar.bz2'
  homepage 'http://ushare.geexbox.org/'
  md5 '5bbcdbf1ff85a9710fa3d4e82ccaa251'

  depends_on 'gettext'
  depends_on 'libupnp'
  depends_on 'libdlna'

  def patches
    { :p0 =>
      "http://svn.macports.org/repository/macports/trunk/dports/net/ushare/files/patch-configure.diff"
    }
  end

  def install
    # Need to explicitly add gettext here.
    ENV.append 'LDFLAGS', "-lintl"

    inreplace 'configure', /config.h/, 'src/config.h'
    system "./configure", "--disable-debug",<commit_msg>ushare - fix gettext include<commit_after>require 'formula'

class Ushare < Formula
  url 'http://ushare.geexbox.org/releases/ushare-1.1a.tar.bz2'
  homepage 'http://ushare.geexbox.org/'
  md5 '5bbcdbf1ff85a9710fa3d4e82ccaa251'

  depends_on 'gettext'
  depends_on 'libupnp'
  depends_on 'libdlna'

  def patches
    { :p0 =>
      "http://svn.macports.org/repository/macports/trunk/dports/net/ushare/files/patch-configure.diff"
    }
  end

  def install
    # Need to explicitly add gettext here.
    gettext = Formula.factory("gettext")
    ENV.append 'LDFLAGS', "-lintl"
    ENV.append 'CFLAGS', "-I#{gettext.include}"

    inreplace 'configure', /config.h/, 'src/config.h'
    system "./configure", "--disable-debug",
{'fraction_non_alphanumeric': 0.14477611940298507, 'fraction_numerical': 0.029850746268656716, 'mean_word_length': 3.4403973509933774, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6840378', 'n_tokens_mistral': 529, 'n_tokens_neox': 504, 'n_words': 87}