From 8bbcf607c1a5cb4a1fe09b648140fcc7d69e4e10 Mon Sep 17 00:00:00 2001 From: myfreeweb Date: Sun, 26 Oct 2014 14:29:12 +0300 Subject: hashcash 1.22 (new formula) --- Library/Formula/hashcash.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Library/Formula/hashcash.rb (limited to 'Library') diff --git a/Library/Formula/hashcash.rb b/Library/Formula/hashcash.rb new file mode 100644 index 000000000..5477fe87f --- /dev/null +++ b/Library/Formula/hashcash.rb @@ -0,0 +1,19 @@ +require "formula" + +class Hashcash < Formula + homepage "http://hashcash.org" + url "http://hashcash.org/source/hashcash-1.22.tgz" + sha1 "0fa03c9f266026e505c0ab7b671ad93aef9310de" + + def install + system "make", "install", + "PACKAGER=HOMEBREW", + "INSTALL_PATH=#{bin}", + "MAN_INSTALL_PATH=#{man1}", + "DOC_INSTALL_PATH=#{doc}" + end + + test do + system "#{bin}/hashcash", "-mb10", "test@example.com" + end +end -- cgit v1.2.3