aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAlex Regueiro2014-02-15 00:42:38 +0000
committerMike McQuaid2014-02-21 11:26:05 +0000
commitbc5fb7414ab5f3fa697343318a971c5563d1ca0c (patch)
tree7d7dfba017820f01d9877edcc43d81f5536b4257 /Library
parentf9bae11ec1dd7fcc35f032efaafa725c32b57695 (diff)
downloadhomebrew-bc5fb7414ab5f3fa697343318a971c5563d1ca0c.tar.bz2
tpl 1.6.1 (new formula)
Closes #26738. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/tpl.rb29
1 files changed, 29 insertions, 0 deletions
diff --git a/Library/Formula/tpl.rb b/Library/Formula/tpl.rb
new file mode 100644
index 000000000..278cec893
--- /dev/null
+++ b/Library/Formula/tpl.rb
@@ -0,0 +1,29 @@
+require "formula"
+
+class Tpl < Formula
+ homepage "http://troydhanson.github.io/tpl/"
+ url "https://github.com/troydhanson/tpl/archive/v1.6.1.tar.gz"
+ sha1 "2ee92627e8f67400061d8fc606b601988ed90217"
+ head "https://github.com/troydhanson/tpl.git"
+
+ option "with-tests", "Verify the build using the test suite."
+
+ depends_on :autoconf
+ depends_on :automake
+ depends_on :libtool
+
+ def install
+ system "autoreconf", "-i"
+ system "./configure", "--disable-debug",
+ "--disable-dependency-tracking",
+ "--disable-silent-rules",
+ "--prefix=#{prefix}"
+ system "make", "install"
+
+ if build.with? "tests"
+ cd "tests" do
+ system "make"
+ end
+ end
+ end
+end