homebrew-core/Formula/libcaca.rb

56 lines
1.7 KiB
Ruby
Raw Normal View History

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'
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
bottle do
cellar :any
2014-10-19 22:28:11 +00:00
revision 1
sha1 "d377e78210582b24626f9f2d7bbb1d1442c1131d" => :yosemite
sha1 "5dd773ce055c6cb9a754c3d691c30c05bf7dbc18" => :mavericks
end
depends_on 'pkg-config' => :build
depends_on 'imlib2' => :optional
depends_on :x11 if build.with? "imlib2"
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
def install
2010-08-16 00:27:12 +00:00
# Some people can't compile when Java is enabled. See:
# 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
# Fix --destdir issue.
# ../.auto/py-compile: Missing argument to --destdir.
inreplace 'python/Makefile.in', '$(am__py_compile) --destdir "$(DESTDIR)"', "$(am__py_compile) --destdir \"$(cacadir)\""
2010-10-21 04:42:10 +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
system "make"
2010-10-21 04:42:10 +00:00
ENV.j1 # Or install can fail making the same folder at the same time
system "make install"
end
test do
system "#{bin}/img2txt", "--version"
end
end