homebrew-core/Formula/git-annex.rb

53 lines
1.6 KiB
Ruby
Raw Normal View History

require "language/haskell"
class GitAnnex < Formula
include Language::Haskell::Cabal
desc "Manage files with git without checking in file contents"
homepage "https://git-annex.branchable.com/"
url "https://hackage.haskell.org/package/git-annex-5.20151019/git-annex-5.20151019.tar.gz"
sha256 "ec40c5e61a7e8d6f4a47da4cdc8c9861a6938565b39ddc6c0a53ac8f8477fabc"
head "git://git-annex.branchable.com/"
2014-05-06 22:52:15 +00:00
bottle do
2015-10-21 01:51:39 +00:00
sha256 "61cfad528a34d70d26273ee822e9767da1c53595a8a13eb0bf2590960c5ddb56" => :el_capitan
sha256 "0886b9cb09ffcfe21ed10aa8e2a9176551b657407c2896a77edb3a623d93fe84" => :yosemite
sha256 "96d1b6703db1c201063c0fa423c6854fe582bdb5167cf0055909bacd212c0f4c" => :mavericks
2014-05-06 22:52:15 +00:00
end
option "with-git-union-merge", "Build the git-union-merge tool"
depends_on "ghc" => :build
depends_on "cabal-install" => :build
depends_on "pkg-config" => :build
depends_on "gsasl"
depends_on "libidn"
depends_on "gnutls"
depends_on "quvi"
setup_ghc_compilers
def install
cabal_sandbox do
cabal_install_tools "alex", "happy", "c2hs"
cabal_install "--only-dependencies"
cabal_install "--prefix=#{prefix}"
# this can be made the default behavior again once git-union-merge builds properly when bottling
if build.with? "git-union-merge"
system "make", "git-union-merge", "PREFIX=#{prefix}"
bin.install "git-union-merge"
system "make", "git-union-merge.1", "PREFIX=#{prefix}"
end
end
bin.install_symlink "git-annex" => "git-annex-shell"
cabal_clean_lib
end
test do
# make sure git can find git-annex
2014-07-29 08:04:59 +00:00
ENV.prepend_path "PATH", bin
system "git", "annex", "test"
end
end