homebrew-core/Formula/hopenpgp-tools.rb

40 lines
1.4 KiB
Ruby

require "language/haskell"
class HopenpgpTools < Formula
include Language::Haskell::Cabal
desc "Command-line tools for OpenPGP-related operations"
homepage "https://hackage.haskell.org/package/hopenpgp-tools"
url "https://hackage.haskell.org/package/hopenpgp-tools-0.21.1/hopenpgp-tools-0.21.1.tar.gz"
sha256 "8a17a224c21115134c02844e12fa1e6c5eb5070d761fcf32d48415138b8dc77f"
head "https://anonscm.debian.org/git/users/clint/hopenpgp-tools.git"
bottle do
cellar :any
sha256 "3106692279cb65b341fc6d410813c3616706277e0e9f9be9c18a0812c4b4d944" => :high_sierra
sha256 "e71724ba566d53c187fd7f09045cc83e412c620c57abcbbeece17687e0eb84d1" => :sierra
sha256 "6d36e1457a1ad5da653a76d8ba43273886e973a8c0849d7ce05289f15b5caea3" => :el_capitan
end
depends_on "cabal-install" => :build
depends_on "ghc" => :build
depends_on "pkg-config" => :build
depends_on "nettle"
resource "homebrew-key.gpg" do
url "https://gist.githubusercontent.com/zmwangx/be307671d11cd78985bd3a96182f15ea/raw/c7e803814efc4ca96cc9a56632aa542ea4ccf5b3/homebrew-key.gpg"
sha256 "994744ca074a3662cff1d414e4b8fb3985d82f10cafcaadf1f8342f71f36b233"
end
def install
install_cabal_package :using => ["alex", "happy"]
end
test do
resource("homebrew-key.gpg").stage do
linter_output = shell_output("#{bin}/hokey lint <homebrew-key.gpg 2>/dev/null")
assert_match "Homebrew <security@brew.sh>", linter_output
end
end
end