aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJuhani Simola2011-12-09 19:50:27 +0200
committerJack Nagel2011-12-15 15:10:04 -0600
commit1d632761d3d5be32f50b317b772f9e879aab0d2f (patch)
tree874aad6a62e14e307f31b85906984942ff2fbdb8 /Library/Formula
parent9ecb48ed92f44ea0eb1d22ea733bcb78c1e376f6 (diff)
downloadhomebrew-1d632761d3d5be32f50b317b772f9e879aab0d2f.tar.bz2
New Formula: TCLAP
Added formula for TCLAP, Templatized C++ Command Line Parser Library From the documentation: "TCLAP is a small, flexible library that provides a simple interface for defining and accessing command line arguments. It was intially inspired by the user friendly CLAP libary. The difference is that this library is templatized, so the argument class is type independent. Type independence avoids identical-except-for-type objects, such as IntArg, FloatArg, and StringArg. While the library is not strictly compliant with the GNU or POSIX standards, it is close" Closes #9065. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/tclap.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Formula/tclap.rb b/Library/Formula/tclap.rb
new file mode 100644
index 000000000..10ca6b521
--- /dev/null
+++ b/Library/Formula/tclap.rb
@@ -0,0 +1,15 @@
+require 'formula'
+
+class Tclap < Formula
+ url 'http://downloads.sourceforge.net/project/tclap/tclap-1.2.1.tar.gz'
+ homepage 'http://tclap.sourceforge.net/'
+ md5 'eb0521d029bf3b1cc0dcaa7e42abf82a'
+
+ def install
+ system "./configure", "--prefix=#{prefix}"
+ system "make"
+ # Installer scripts have problems with parallel make
+ ENV.deparallelize
+ system "make install"
+ end
+end