2014-10-04 19:27:47 +00:00
|
|
|
class Abduco < Formula
|
|
|
|
homepage "http://www.brain-dump.org/projects/abduco"
|
2015-02-15 18:17:48 +00:00
|
|
|
url "http://www.brain-dump.org/projects/abduco/abduco-0.3.tar.gz"
|
|
|
|
sha1 "175b2c0eaf2a8b7fb044f1454d018dac4ec31293"
|
2014-10-04 19:27:47 +00:00
|
|
|
head "git://repo.or.cz/abduco.git"
|
|
|
|
|
2014-10-06 01:13:18 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-02-22 22:29:11 +00:00
|
|
|
sha1 "2ac0afd13b4465b28e0688809131a5ff0055f2de" => :yosemite
|
|
|
|
sha1 "8653786cb86fbfb36fb03af3451e19bb55792cbf" => :mavericks
|
|
|
|
sha1 "bd2982595586f67eb747bc287be03fcd5418f4e6" => :mountain_lion
|
2014-10-06 01:13:18 +00:00
|
|
|
end
|
|
|
|
|
2015-02-15 18:17:48 +00:00
|
|
|
# upstream fix for create-session: Invalid argument
|
|
|
|
# safe to remove in versions > 0.3
|
2014-10-04 19:27:47 +00:00
|
|
|
patch do
|
2015-02-15 18:17:48 +00:00
|
|
|
url "http://repo.or.cz/w/abduco.git/patch/91b733"
|
|
|
|
sha1 "4370ceb4c304ecd916e69c6c7c876666807f6fb8"
|
2014-10-04 19:27:47 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2015-02-15 18:17:48 +00:00
|
|
|
ENV.append_to_cflags "-D_DARWIN_C_SOURCE"
|
2014-10-04 19:27:47 +00:00
|
|
|
system "make", "PREFIX=#{prefix}", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-02-15 18:17:48 +00:00
|
|
|
result = shell_output("#{bin}/abduco -v")
|
|
|
|
result.force_encoding("UTF-8") if result.respond_to?(:force_encoding)
|
|
|
|
assert_match /^abduco-#{version}/, result
|
2014-10-04 19:27:47 +00:00
|
|
|
end
|
|
|
|
end
|