2014-10-04 19:27:47 +00:00
|
|
|
class Abduco < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Provides session management: i.e. separate programs from terminals"
|
2014-10-04 19:27:47 +00:00
|
|
|
homepage "http://www.brain-dump.org/projects/abduco"
|
2015-03-21 03:45:37 +00:00
|
|
|
url "http://www.brain-dump.org/projects/abduco/abduco-0.4.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "bda3729df116ce41f9a087188d71d934da2693ffb1ebcf33b803055eb478bcbb"
|
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-03-21 03:59:45 +00:00
|
|
|
sha256 "d7dde9fc66e7681927e1d871ab13bc78f2fc1561509ce8037c5b96ef020cb086" => :yosemite
|
|
|
|
sha256 "1d04d33ff81e970c2f709d33cd3ec24dc91aa2a892635d0e1d85f46bec1e7cba" => :mavericks
|
|
|
|
sha256 "ba4005c688b6e9a1d67c0de127ee67e6ffe011c98436f2f2c1480fe551caa94d" => :mountain_lion
|
2014-10-06 01:13:18 +00:00
|
|
|
end
|
|
|
|
|
2014-10-04 19:27:47 +00:00
|
|
|
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
|