2010-04-10 15:10:43 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libcaca < Formula
|
2010-05-22 10:40:42 +00:00
|
|
|
url 'http://caca.zoy.org/files/libcaca/libcaca-0.99.beta17.tar.gz'
|
2010-10-04 01:58:40 +00:00
|
|
|
version '0.99b17'
|
2010-04-10 15:10:43 +00:00
|
|
|
homepage 'http://caca.zoy.org/wiki/libcaca'
|
2010-05-22 10:40:42 +00:00
|
|
|
md5 '790d6e26b7950e15909fdbeb23a7ea87'
|
|
|
|
|
2010-10-21 04:42:10 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-05-22 10:40:42 +00:00
|
|
|
depends_on 'gettext'
|
2010-04-10 15:10:43 +00:00
|
|
|
|
|
|
|
def install
|
2010-08-16 00:27:12 +00:00
|
|
|
# Some people can't compile when Java is enabled. See:
|
2010-11-10 18:16:28 +00:00
|
|
|
# https://github.com/mxcl/homebrew/issues/issue/2049
|
2010-10-21 04:42:10 +00:00
|
|
|
|
|
|
|
# Don't build csharp bindings
|
|
|
|
# Don't build ruby bindings; fails for adamv w/ Homebrew Ruby 1.9.2
|
|
|
|
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
2010-04-10 15:10:43 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}",
|
|
|
|
"--disable-imlib2",
|
|
|
|
"--disable-doc",
|
2010-08-16 00:27:12 +00:00
|
|
|
"--disable-slang",
|
2010-10-21 04:42:10 +00:00
|
|
|
"--disable-java",
|
|
|
|
"--disable-csharp",
|
|
|
|
"--disable-ruby"
|
|
|
|
ENV.j1 # Or install can fail making the same folder at the same time
|
2010-04-10 15:10:43 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|