diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/tpl.rb | 29 |
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 |
