aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormyfreeweb2014-10-26 14:29:12 +0300
committerMike McQuaid2014-10-26 12:00:49 +0000
commit8bbcf607c1a5cb4a1fe09b648140fcc7d69e4e10 (patch)
tree5389ff3d92cf0f5f5205b8ad949aa7eeb6a9b72d
parent31349868284b9ced3f83c145591cd260cb5c9333 (diff)
downloadhomebrew-8bbcf607c1a5cb4a1fe09b648140fcc7d69e4e10.tar.bz2
hashcash 1.22 (new formula)
-rw-r--r--Library/Formula/hashcash.rb19
1 files changed, 19 insertions, 0 deletions
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