2015-12-22 22:49:47 +00:00
|
|
|
require "language/haskell"
|
|
|
|
|
2015-11-08 16:08:16 +00:00
|
|
|
class Arx < Formula
|
2015-12-22 22:49:47 +00:00
|
|
|
include Language::Haskell::Cabal
|
|
|
|
|
2015-11-08 16:08:16 +00:00
|
|
|
desc "Bundles files and programs for easy transfer and repeatable execution"
|
|
|
|
homepage "https://github.com/solidsnack/arx"
|
2016-03-10 19:23:54 +00:00
|
|
|
url "https://github.com/solidsnack/arx/archive/0.2.2.tar.gz"
|
|
|
|
sha256 "47e7a61a009d43c40ac0ce9c71917b0f967ef880c99d4602c7314b51c270fd0f"
|
2015-11-08 16:08:16 +00:00
|
|
|
|
2015-11-24 13:34:55 +00:00
|
|
|
bottle do
|
2016-09-28 01:06:07 +00:00
|
|
|
cellar :any_skip_relocation
|
|
|
|
rebuild 1
|
|
|
|
sha256 "176b98514ed7621547c235a216b38e31028001943dff1184f37677ca9651ac18" => :sierra
|
|
|
|
sha256 "afdd553d853afe2e679d56d93407b4031262ff41475dccc747ef0e57c7d01f7b" => :el_capitan
|
|
|
|
sha256 "47d9f6b76fe542ae8553a9c7ad56eaecd59a755210be97265774949e67562936" => :yosemite
|
2015-11-24 13:34:55 +00:00
|
|
|
end
|
|
|
|
|
2015-11-08 16:08:16 +00:00
|
|
|
depends_on "cabal-install" => :build
|
2017-08-09 10:29:53 +00:00
|
|
|
depends_on "ghc" => :build
|
2015-11-08 16:08:16 +00:00
|
|
|
|
|
|
|
def install
|
2015-12-22 22:49:47 +00:00
|
|
|
cabal_sandbox do
|
|
|
|
cabal_install "--only-dependencies"
|
|
|
|
|
|
|
|
system "make"
|
2015-11-08 16:08:16 +00:00
|
|
|
|
2015-12-22 22:49:47 +00:00
|
|
|
tag = `./bin/dist tag`.chomp
|
|
|
|
bin.install "tmp/dist/arx-#{tag}/arx" => "arx"
|
|
|
|
end
|
2015-11-08 16:08:16 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
testscript = (testpath/"testing.sh")
|
|
|
|
|
|
|
|
testscript.write shell_output("#{bin}/arx tmpx // echo 'testing'")
|
|
|
|
testscript.chmod 0555
|
|
|
|
|
|
|
|
assert_match /testing/, shell_output("./testing.sh")
|
|
|
|
end
|
|
|
|
end
|