2010-04-10 15:10:43 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libcaca < Formula
|
2012-03-18 03:37:44 +00:00
|
|
|
homepage 'http://caca.zoy.org/wiki/libcaca'
|
2014-06-04 09:23:04 +00:00
|
|
|
url 'http://fossies.org/linux/privat/libcaca-0.99.beta19.tar.gz'
|
|
|
|
version '0.99b19'
|
|
|
|
sha1 'ed138f3717648692113145b99a80511178548010'
|
2010-05-22 10:40:42 +00:00
|
|
|
|
2014-06-04 09:50:12 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-10-19 22:28:11 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "d377e78210582b24626f9f2d7bbb1d1442c1131d" => :yosemite
|
|
|
|
sha1 "5dd773ce055c6cb9a754c3d691c30c05bf7dbc18" => :mavericks
|
2014-06-04 09:50:12 +00:00
|
|
|
end
|
|
|
|
|
2014-08-25 00:53:36 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'imlib2' => :optional
|
2014-04-03 14:14:06 +00:00
|
|
|
depends_on :x11 if build.with? "imlib2"
|
2012-09-02 08:01:48 +00:00
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
cause "Unsupported inline asm: input constraint with a matching output constraint of incompatible type"
|
|
|
|
end
|
2011-03-27 19:28:48 +00:00
|
|
|
|
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:
|
2013-12-14 18:13:11 +00:00
|
|
|
# https://github.com/Homebrew/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
|
2013-01-21 09:33:56 +00:00
|
|
|
|
|
|
|
# Fix --destdir issue.
|
2012-04-08 09:54:44 +00:00
|
|
|
# ../.auto/py-compile: Missing argument to --destdir.
|
2013-01-21 09:33:56 +00:00
|
|
|
inreplace 'python/Makefile.in', '$(am__py_compile) --destdir "$(DESTDIR)"', "$(am__py_compile) --destdir \"$(cacadir)\""
|
2010-10-21 04:42:10 +00:00
|
|
|
|
2014-04-10 16:34:49 +00:00
|
|
|
args = ["--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-doc",
|
|
|
|
"--disable-slang",
|
|
|
|
"--disable-java",
|
|
|
|
"--disable-csharp",
|
|
|
|
"--disable-ruby"]
|
|
|
|
|
|
|
|
# fix missing x11 header check: https://github.com/Homebrew/homebrew/issues/28291
|
|
|
|
args << "--disable-x11" if build.without? "imlib2"
|
|
|
|
|
|
|
|
system "./configure", *args
|
2012-04-08 09:54:44 +00:00
|
|
|
system "make"
|
2010-10-21 04:42:10 +00:00
|
|
|
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
|
2012-09-02 08:01:48 +00:00
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2012-09-02 08:01:48 +00:00
|
|
|
system "#{bin}/img2txt", "--version"
|
|
|
|
end
|
2010-04-10 15:10:43 +00:00
|
|
|
end
|