diff options
| author | Baptiste Fontaine | 2015-04-17 22:10:48 +0200 |
|---|---|---|
| committer | Tim D. Smith | 2015-04-17 23:20:04 -0700 |
| commit | 3896ed7be41416179c1d6c3112aad1d6ea419a30 (patch) | |
| tree | 4d86de482beb1196853400bc656cd16667a97ce7 | |
| parent | 219ea1579e6e2702e627b313aca8329cceb674fc (diff) | |
| download | homebrew-3896ed7be41416179c1d6c3112aad1d6ea419a30.tar.bz2 | |
pgpdump: head and better test added
Closes #38763.
Signed-off-by: Tim D. Smith <git@tim-smith.us>
| -rw-r--r-- | Library/Formula/pgpdump.rb | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/Library/Formula/pgpdump.rb b/Library/Formula/pgpdump.rb index 56e5299a5..dc486cc1f 100644 --- a/Library/Formula/pgpdump.rb +++ b/Library/Formula/pgpdump.rb @@ -3,14 +3,27 @@ class Pgpdump < Formula url "http://www.mew.org/~kazu/proj/pgpdump/pgpdump-0.29.tar.gz" sha256 "6215d9af806399fec73d81735cf20ce91033a7a89a82c4318c4d1659083ff663" + head "https://github.com/kazu-yamamoto/pgpdump.git" + def install system "./configure", "--prefix=#{prefix}" - bin.mkpath - man1.mkpath system "make", "install" end test do - system "#{bin}/pgpdump", "-v" + (testpath/"sig.pgp").write <<-EOS.undent + -----BEGIN PGP MESSAGE----- + Version: GnuPG v1.2.6 (NetBSD) + Comment: For info see http://www.gnupg.org + + owGbwMvMwCSYq3dE6sEMJU7GNYZJLGmZOanWn4xaQzIyixWAKFEhN7W4ODE9VaEk + XyEpVaE4Mz0vNUUhqVIhwD1Aj6vDnpmVAaQeZogg060chvkFjPMr2CZNmPnwyebF + fJP+td+b6biAYb779N1eL3gcHUyNsjliW1ekbZk6wRwA + =+jUx + -----END PGP MESSAGE----- + EOS + + assert_match(/Key ID - 0x6D2EC41AE0982209/, + shell_output("#{bin}/pgpdump sig.pgp")) end end |
