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/"
|
2015-04-20 19:34:14 +00:00
|
|
|
url "http://darcs.net/releases/darcs-2.10.0.tar.gz"
|
|
|
|
sha256 "52b3db3f7b64a4306585b96af7b5887f62ba54f6e9c3bdbed9b6a18d97f16b36"
|
2014-03-30 19:40:35 +00:00
|
|
|
|
2014-05-06 22:52:15 +00:00
|
|
|
bottle do
|
2015-10-08 03:49:28 +00:00
|
|
|
revision 1
|
|
|
|
sha256 "9d74025903200c81265bd5f1e84177d7e484e292c444a9b06cbdc132450026f0" => :el_capitan
|
|
|
|
sha256 "9e94fb88352257fb53f31457d6cb39097856c6547a60113142653d23f8d96295" => :yosemite
|
|
|
|
sha256 "14e911f97decc70ccf9f83741663f0571f4b1ad5cb907c343480aa115bfe7276" => :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"
|
|
|
|
|
2015-05-29 02:30:10 +00:00
|
|
|
setup_ghc_compilers
|
|
|
|
|
2014-03-30 19:40:35 +00:00
|
|
|
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
|