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"
|
2016-03-10 00:44:55 +00:00
|
|
|
url "http://www.brain-dump.org/projects/abduco/abduco-0.5.tar.gz"
|
|
|
|
sha256 "bf22226a4488355a7001a5dabbd1e8e3b7e7645efd1519274b956fcb8bcff086"
|
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
|
2016-02-15 22:23:46 +00:00
|
|
|
cellar :any_skip_relocation
|
2016-03-10 00:53:51 +00:00
|
|
|
sha256 "2810ca2edcaa1b8eaab028a576e267548af21569002a36f72e2b9253a9c376ff" => :el_capitan
|
|
|
|
sha256 "51d6b180c576a7bed2aecf64dc357b25b064540cc41225cc2dd6d94f041a7250" => :yosemite
|
|
|
|
sha256 "8d89785db68551d9c53ecf2afb099976b61b7fde76d2eaff34acf18d50b09da0" => :mavericks
|
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
|