aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorGaƫtan Lehmann2014-03-30 21:40:35 +0200
committerMike McQuaid2014-05-07 08:06:15 +0100
commit99d092fcd877151650811b441edcccd1071617c8 (patch)
tree6b7ed3e198681be6424da06e141c4ba5aacacb48 /Library
parent8539ec407f1f66922853298d1c48092f42f869f0 (diff)
downloadhomebrew-99d092fcd877151650811b441edcccd1071617c8.tar.bz2
darcs: 2.8.4
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/darcs.rb31
1 files changed, 31 insertions, 0 deletions
diff --git a/Library/Formula/darcs.rb b/Library/Formula/darcs.rb
new file mode 100644
index 000000000..bb1494048
--- /dev/null
+++ b/Library/Formula/darcs.rb
@@ -0,0 +1,31 @@
+require "formula"
+require "language/haskell"
+
+class Darcs < Formula
+ include Language::Haskell::Cabal
+
+ homepage "http://darcs.net/"
+ url "http://darcs.net/releases/darcs-2.8.4.tar.gz"
+ sha1 "36dde7548a9d73f4688296cac72bcda672542e53"
+
+ 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
+ assert (Pathname.pwd/"foo").read.include? "hello homebrew!"
+ end
+ end
+end