Created
January 10, 2014 16:11
-
-
Save Sazpaimon/8357171 to your computer and use it in GitHub Desktop.
Hexchat with gtk+-quartz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Install Homebrew | |
2. Modify /usr/local/Library/Formula/harfbuzz.rb and change depends_on 'cairo' to depends_on 'cairo-quartz' | |
3. brew tap marekjelen/homebrew-gtk | |
4. Create hexchat-quartz.rb with the following contents: | |
class HexchatQuartz < 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', :branch => 'xtext4' | |
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+-quartz' | |
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 | |
5. brew install hexchat-quartz.rb --HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment