2010-01-22 05:07:14 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Pango < Formula
|
2010-01-22 05:07:14 +00:00
|
|
|
homepage 'http://www.pango.org/'
|
2013-09-25 14:21:30 +00:00
|
|
|
url 'http://ftp.gnome.org/pub/GNOME/sources/pango/1.36/pango-1.36.0.tar.xz'
|
|
|
|
sha256 'bb41d1b26ee7450e5430a7d2765f38c51ebe72db9fce616a9ee52611b55906a0'
|
2012-01-23 01:49:46 +00:00
|
|
|
|
2012-08-25 21:40:01 +00:00
|
|
|
option 'without-x', 'Build without X11 support'
|
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-06-10 15:40:34 +00:00
|
|
|
depends_on 'xz' => :build
|
2010-03-25 03:17:25 +00:00
|
|
|
depends_on 'glib'
|
2012-07-03 13:34:01 +00:00
|
|
|
depends_on 'cairo'
|
2013-09-01 19:12:29 +00:00
|
|
|
depends_on 'harfbuzz'
|
|
|
|
depends_on 'fontconfig'
|
|
|
|
depends_on :x11 unless build.without? 'x'
|
2013-10-13 18:00:14 +00:00
|
|
|
depends_on 'gobject-introspection'
|
2010-04-24 18:15:13 +00:00
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
build 2326
|
|
|
|
cause "Undefined symbols when linking"
|
|
|
|
end
|
2012-02-08 01:30:08 +00:00
|
|
|
|
2010-01-22 05:07:14 +00:00
|
|
|
def install
|
2012-08-25 21:40:01 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--enable-man
|
|
|
|
--with-html-dir=#{share}/doc
|
2013-10-13 18:00:14 +00:00
|
|
|
--enable-introspection=yes
|
2012-08-25 21:40:01 +00:00
|
|
|
]
|
|
|
|
|
2012-10-27 11:00:50 +00:00
|
|
|
if build.include? 'without-x'
|
2013-02-02 18:17:28 +00:00
|
|
|
args << '--without-xft'
|
2012-10-27 11:00:50 +00:00
|
|
|
else
|
2013-02-02 18:17:28 +00:00
|
|
|
args << '--with-xft'
|
2012-10-27 11:00:50 +00:00
|
|
|
end
|
2012-08-25 21:40:01 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
2011-09-22 23:13:52 +00:00
|
|
|
system "make"
|
2010-01-22 05:07:14 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2011-09-22 23:13:52 +00:00
|
|
|
|
2013-02-02 07:37:22 +00:00
|
|
|
def test
|
|
|
|
system "#{bin}/pango-querymodules", "--version"
|
2011-09-22 23:13:52 +00:00
|
|
|
end
|
2010-01-22 05:07:14 +00:00
|
|
|
end
|