aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/hexchat.rb
diff options
context:
space:
mode:
authorJoseph C2013-07-31 15:42:12 -0500
committerAdam Vandenberg2013-11-10 12:03:58 -0800
commit6aee828edac8487afb1d9a77f8fc79827119c777 (patch)
tree428b999c7d9efaeb0713a2b8eaee0c8e7b7c5f00 /Library/Formula/hexchat.rb
parentf7d458424b59d07b6aba5fc6c7d6cabd4589497a (diff)
downloadhomebrew-6aee828edac8487afb1d9a77f8fc79827119c777.tar.bz2
hexchat 2.9.6
Closes #21574. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/hexchat.rb')
-rw-r--r--Library/Formula/hexchat.rb53
1 files changed, 53 insertions, 0 deletions
diff --git a/Library/Formula/hexchat.rb b/Library/Formula/hexchat.rb
new file mode 100644
index 000000000..1ad692871
--- /dev/null
+++ b/Library/Formula/hexchat.rb
@@ -0,0 +1,53 @@
+require 'formula'
+
+class Hexchat < Formula
+ homepage 'http://hexchat.github.io/'
+ url 'https://github.com/hexchat/hexchat/archive/v2.9.6.tar.gz'
+ sha1 'f19248e8d255cf463d5c0eba3e3df02a431f3911'
+ head 'https://github.com/hexchat/hexchat.git'
+
+ depends_on :macos => :lion
+
+ depends_on 'pkg-config' => :build
+ depends_on 'automake' => :build
+ depends_on 'autoconf' => :build
+ depends_on 'libtool' => :build
+ depends_on :python => :recommended
+ depends_on 'gettext'
+ depends_on 'gtk+'
+ depends_on :x11
+
+ option 'without-perl', 'Build without Perl support'
+ option 'without-plugins', 'Build without plugin support'
+
+ def install
+ args = %W[--prefix=#{prefix}
+ --disable-dependency-tracking
+ --enable-openssl
+ --disable-xlib]
+
+ # Fails on 32-bit core solo without this
+ args << "--disable-mmx" unless MacOS.prefer_64_bit?
+
+ args << "--disable-python" unless build.with? "python"
+ args << "--disable-perl" if build.include? "without-perl"
+ args << "--disable-plugin" if build.include? "without-plugins"
+
+ # Build fails because of a conflict with the system 'strptime',
+ # so rename the function
+ inreplace "src/fe-gtk/banlist.c" do |s|
+ s.gsub! "strptime", "_strptime"
+ end
+
+ # The locations of the gettext dependencies are hardcoded, so copy them
+ gettext = Formula.factory('gettext').opt_prefix/'share/gettext'
+ cp_r ["#{gettext}/intl", "#{gettext}/po"], "."
+
+ system "autoreconf -vi"
+ system "./configure", *args
+ system "make"
+ system "make install"
+
+ rm_rf share/"applications"
+ end
+end