2013-07-31 20:42:12 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Hexchat < Formula
|
|
|
|
homepage 'http://hexchat.github.io/'
|
2014-06-01 18:31:47 +00:00
|
|
|
head 'https://github.com/hexchat/hexchat.git'
|
2014-07-30 06:35:56 +00:00
|
|
|
url 'http://dl.hexchat.net/hexchat/hexchat-2.10.1.tar.xz'
|
|
|
|
sha1 '3ad562ec76323ba9d0f279d36201a333594c755b'
|
2013-07-31 20:42:12 +00:00
|
|
|
|
2014-07-30 06:47:07 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "da41ccf19d762513a1e774c078a2f7bf9e46073c" => :mavericks
|
|
|
|
sha1 "f10e3860adee826c03e6269991a5e77d884be028" => :mountain_lion
|
|
|
|
sha1 "728caab194af26da2f6eec798fb162dffa817698" => :lion
|
|
|
|
end
|
|
|
|
|
2013-07-31 20:42:12 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2014-06-01 18:31:47 +00:00
|
|
|
depends_on 'intltool' => :build
|
2014-05-08 17:21:54 +00:00
|
|
|
depends_on :python => :optional
|
2014-05-12 04:25:05 +00:00
|
|
|
depends_on :python3 => :optional
|
2013-07-31 20:42:12 +00:00
|
|
|
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
|
2014-05-09 03:56:42 +00:00
|
|
|
--enable-openssl]
|
2013-07-31 20:42:12 +00:00
|
|
|
|
2014-05-12 04:25:05 +00:00
|
|
|
if build.with? "python3"
|
2014-06-03 22:04:55 +00:00
|
|
|
py_ver = Formula["python3"].version.to_s[0..2] # e.g "3.4"
|
2014-05-12 04:25:05 +00:00
|
|
|
ENV.append_path "PKG_CONFIG_PATH", "#{HOMEBREW_PREFIX}/Frameworks/Python.framework/Versions/#{py_ver}/lib/pkgconfig/"
|
|
|
|
args << "--enable-python=python#{py_ver}"
|
|
|
|
elsif build.with? "python"
|
|
|
|
ENV.append_path "PKG_CONFIG_PATH", "#{HOMEBREW_PREFIX}/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig/"
|
|
|
|
ENV.append_path "PKG_CONFIG_PATH", "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig/"
|
|
|
|
args << "--enable-python=python2.7"
|
2014-03-01 21:48:53 +00:00
|
|
|
else
|
|
|
|
args << "--disable-python"
|
|
|
|
end
|
|
|
|
|
|
|
|
args << "--disable-perl" if build.without? "perl"
|
|
|
|
args << "--disable-plugin" if build.without? "plugins"
|
2013-07-31 20:42:12 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
2014-07-30 06:35:56 +00:00
|
|
|
system "make", "install"
|
2013-07-31 20:42:12 +00:00
|
|
|
|
|
|
|
rm_rf share/"applications"
|
2014-05-12 04:25:05 +00:00
|
|
|
rm_rf share/"appdata"
|
2013-07-31 20:42:12 +00:00
|
|
|
end
|
|
|
|
end
|