40 lines
1.4 KiB
Ruby
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.23/hopenpgp-tools-0.23.tar.gz"
|
|
sha256 "5402d9fc177805383fbcd87727c12ef02997ab96b3b6f5e58509611d16eaf8e9"
|
|
head "https://salsa.debian.org/clint/hOpenPGP.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "c07c5d437bc71eac7360c96ee7cb8b481819fdb46f313e38b92d2e6f61045f25" => :catalina
|
|
sha256 "933269247cc4050867e415cc0079ea16a7597983f397c61eae030b61ceae199c" => :mojave
|
|
sha256 "fc6989a6e18d735d825d60bd3c511ac23f3bba4884ac110b0b29a6c40d2417f5" => :high_sierra
|
|
end
|
|
|
|
depends_on "cabal-install" => :build
|
|
depends_on "ghc@8.6" => :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", "c2hs"]
|
|
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
|