Skip to content

Instantly share code, notes, and snippets.

@yuki-takeichi
Last active October 29, 2015 13:48
Show Gist options
  • Save yuki-takeichi/c04c45a96c99c54c800d to your computer and use it in GitHub Desktop.
Save yuki-takeichi/c04c45a96c99c54c800d to your computer and use it in GitHub Desktop.
homebrew pango 1.36.1 with patch
# This fomula is based on: https://raw.githubusercontent.com/Homebrew/homebrew/108279f2050e8768dd8ffd372285d09b6b00d9b7/Library/Formula/pango.rb # pango 1.36.1
require 'formula'
class Pango < Formula
homepage 'http://www.pango.org/'
url 'http://ftp.gnome.org/pub/GNOME/sources/pango/1.36/pango-1.36.1.tar.xz'
sha256 '42e4b51cdc99e6878a9ea2a5ef2b31b79c1033f8518726df738a3c54c90e59f8'
option 'without-x', 'Build without X11 support'
depends_on 'pkg-config' => :build
depends_on 'xz' => :build
depends_on 'glib'
depends_on 'cairo'
depends_on 'harfbuzz'
depends_on 'fontconfig'
depends_on :x11 unless build.without? 'x'
depends_on 'gobject-introspection'
fails_with :llvm do
build 2326
cause "Undefined symbols when linking"
end
# XXX hacking
patch do
url "http://reddog.s35.xrea.com/software/pango-vertical-text-bug-markedup-and-script-common-fix-20130721.patch"
sha256 "9865a1b7f23a23014fe898899fcc7e0cca19babba7d0909eec143c14178b863d"
end
def install
args = %W[
--disable-dependency-tracking
--disable-silent-rules
--prefix=#{prefix}
--enable-man
--with-html-dir=#{share}/doc
--enable-introspection=yes
]
if build.include? 'without-x'
args << '--without-xft'
else
args << '--with-xft'
end
system "./configure", *args
system "make"
system "make install"
end
def test
system "#{bin}/pango-querymodules", "--version"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment