Created
June 14, 2013 14:14
-
-
Save rindek/5782116 to your computer and use it in GitHub Desktop.
brew formula for pango-1.32.5
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
require 'formula' | |
class Pango < Formula | |
homepage 'http://www.pango.org/' | |
url 'http://ftp.gnome.org/pub/GNOME/sources/pango/1.32/pango-1.32.5.tar.xz' | |
sha256 '7d7bc99c3d9b580cb4fe787fe47824e56e39534b9040e1c8a2a159248d8e5821' | |
option 'without-x', 'Build without X11 support' | |
depends_on 'pkg-config' => :build | |
depends_on 'xz' => :build | |
depends_on 'glib' | |
depends_on 'harfbuzz' | |
unless build.include? 'without-x' | |
depends_on :x11 | |
# Needs fontconfig 2.10.91, which is newer than what XQuartz provides | |
depends_on 'fontconfig' | |
end | |
# The Cairo library shipped with Lion contains a flaw that causes Graphviz | |
# to segfault. See the following ticket for information: | |
# https://trac.macports.org/ticket/30370 | |
# We depend on our cairo on all platforms for consistency | |
depends_on 'cairo' | |
fails_with :llvm do | |
build 2326 | |
cause "Undefined symbols when linking" | |
end | |
def install | |
args = %W[ | |
--disable-dependency-tracking | |
--prefix=#{prefix} | |
--enable-man | |
--with-html-dir=#{share}/doc | |
--disable-introspection | |
] | |
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