diff options
| author | co-me | 2013-06-16 19:07:23 +0900 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-18 08:01:45 -0700 |
| commit | faf19fe387d32be7a3910c73b86e2dca57c21390 (patch) | |
| tree | 10c70b7ca9a5cc742831f907b80b02738a42ff1c /Library/Formula | |
| parent | d65e6e047845c5a2409add1de88b95b4d6053941 (diff) | |
| download | homebrew-faf19fe387d32be7a3910c73b86e2dca57c21390.tar.bz2 | |
newt 0.52.15
Newt (Whiptail) is a programming library for text-based user interfaces.
It includes python bindings named snack module.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/newt.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/newt.rb b/Library/Formula/newt.rb new file mode 100644 index 000000000..42a11d2ac --- /dev/null +++ b/Library/Formula/newt.rb @@ -0,0 +1,28 @@ +require 'formula' + +class Newt < Formula + homepage 'https://fedorahosted.org/newt/' + url 'https://fedorahosted.org/releases/n/e/newt/newt-0.52.15.tar.gz' + sha1 'e067280e474eb327c62eaa306e2242adcf540ab2' + + depends_on 'gettext' + depends_on 'popt' + depends_on 's-lang' + depends_on :python => :optional + + def patches + { :p0 => [ "https://trac.macports.org/export/106061/trunk/dports/devel/libnewt/files/patch-configure.ac.diff", + "https://trac.macports.org/export/106061/trunk/dports/devel/libnewt/files/patch-Makefile.in.diff" ] } + end + + def install + args = ["--prefix=#{prefix}", "--without-tcl"] + args << "--without-python" if build.without? 'python' + system "./configure", *args + system "make install" + end + + def caveats + python.standard_caveats if python + end +end |
