diff --git a/Formula/git-annex.rb b/Formula/git-annex.rb index 8aa02aaeea1e..fda6c3a28a07 100644 --- a/Formula/git-annex.rb +++ b/Formula/git-annex.rb @@ -3,6 +3,9 @@ class GitAnnex < Formula homepage "https://git-annex.branchable.com/" url "https://hackage.haskell.org/package/git-annex-8.20200810/git-annex-8.20200810.tar.gz" sha256 "e631c9d52e440f80e9d305c95a078dcae71f200125bca91e49d5b8e2d864c6f3" + license all_of: ["AGPL-3.0-or-later", "BSD-2-Clause", "BSD-3-Clause", + "GPL-2.0-only", "GPL-3.0-or-later", "MIT"] + revision 1 head "git://git-annex.branchable.com/" livecheck do @@ -25,7 +28,8 @@ class GitAnnex < Formula def install system "cabal", "v2-update" - system "cabal", "v2-install", *std_cabal_v2_args + system "cabal", "v2-install", *std_cabal_v2_args, + "--flags=+S3" bin.install_symlink "git-annex" => "git-annex-shell" end @@ -68,6 +72,11 @@ def plist system "git", "commit", "-a", "-m", "Initial Commit" assert File.symlink?("Hello.txt") + # make sure the various remotes were built + assert_match shell_output("git annex version | grep 'remote types:'").chomp, + "remote types: git gcrypt p2p S3 bup directory rsync web bittorrent " \ + "webdav adb tahoe glacier ddar git-lfs hook external" + # The steps below are necessary to ensure the directory cleanly deletes. # git-annex guards files in a way that isn't entirely friendly of automatically # wiping temporary directories in the way `brew test` does at end of execution.