aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorgodswearhats2013-07-25 13:13:28 -0700
committerAdam Vandenberg2013-10-29 07:22:53 -0700
commitf5df4c71b1b63b1e09b1942d9cdddd028487cef0 (patch)
tree1579182973d0b95ae8773321da9deb77ca2b3b60 /Library
parenta239b364dfb2ae43706feea840c94defe90f7d81 (diff)
downloadhomebrew-f5df4c71b1b63b1e09b1942d9cdddd028487cef0.tar.bz2
pk 1.0.2
Closes #21442. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/pk.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/pk.rb b/Library/Formula/pk.rb
new file mode 100644
index 000000000..3cc0baa8d
--- /dev/null
+++ b/Library/Formula/pk.rb
@@ -0,0 +1,21 @@
+require 'formula'
+
+class Pk < Formula
+ homepage 'https://github.com/johnmorrow/pk'
+ url 'https://github.com/johnmorrow/pk/releases/download/v1.0.2/pk-1.0.2.tar.gz'
+ sha1 'cb8e6bb08d1c31d35e6be823d7c082e9fa700edb'
+
+ depends_on 'argp-standalone'
+
+ def install
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
+ system "make"
+ system "make test"
+ system "make install"
+ end
+
+ test do
+ system "test \"`echo 1 2 | \"#{bin}/pk\" ..`\" = \"1 2\""
+ end
+end