2014-03-30 19:40:35 +00:00
|
|
|
require "language/haskell"
|
|
|
|
|
|
|
|
class Darcs < Formula
|
|
|
|
include Language::Haskell::Cabal
|
|
|
|
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Distributed version control system that tracks changes, via Haskell"
|
2014-03-30 19:40:35 +00:00
|
|
|
homepage "http://darcs.net/"
|
2016-01-31 18:33:00 +00:00
|
|
|
url "http://darcs.net/releases/darcs-2.10.3.tar.gz"
|
|
|
|
sha256 "ca00c40d08276f94868c7c1bbc6dbd9b6b41a15c1907c34947aaa51d4dbbf642"
|
2014-03-30 19:40:35 +00:00
|
|
|
|
2014-05-06 22:52:15 +00:00
|
|
|
bottle do
|
2016-01-31 19:03:04 +00:00
|
|
|
sha256 "a65c9d857fd868ff6768c3076511b6bfe5d11f893b58a3d943ae7b0319db73d3" => :el_capitan
|
|
|
|
sha256 "7e76c59e699d4941880fea6986d13d62ceb4d0b60736e54f813f4d79ec4810da" => :yosemite
|
|
|
|
sha256 "c7f60a61ab519b61d7ea229e3e67c9d1c75b1c39d49da5b07dfcdf8fe4e11658" => :mavericks
|
2014-05-06 22:52:15 +00:00
|
|
|
end
|
|
|
|
|
2014-03-30 19:40:35 +00:00
|
|
|
depends_on "ghc" => :build
|
|
|
|
depends_on "cabal-install" => :build
|
|
|
|
depends_on "gmp"
|
|
|
|
|
|
|
|
def install
|
|
|
|
install_cabal_package
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
mkdir "my_repo" do
|
|
|
|
system "darcs", "init"
|
|
|
|
(Pathname.pwd/"foo").write "hello homebrew!"
|
|
|
|
system "darcs", "add", "foo"
|
|
|
|
system "darcs", "record", "-am", "add foo", "--author=homebrew"
|
|
|
|
end
|
|
|
|
system "darcs", "get", "my_repo", "my_repo_clone"
|
|
|
|
Dir.chdir "my_repo_clone" do
|
2015-10-05 13:15:35 +00:00
|
|
|
assert_match "hello homebrew!", (Pathname.pwd/"foo").read
|
2014-03-30 19:40:35 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|