diff options
| author | Charlie Sharpsteen | 2010-09-26 18:01:18 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-09-27 09:24:02 -0700 |
| commit | 74351ecdc2d896ec507b7d6f51fc605a08d315b8 (patch) | |
| tree | 959e929ab9469bdce4e4482f3adf0a0adf19d636 /Library/Formula | |
| parent | 15db558d1f66f1cddbb57dd0140860e149a7ed78 (diff) | |
| download | homebrew-74351ecdc2d896ec507b7d6f51fc605a08d315b8.tar.bz2 | |
New Formula for LessTif
LessTif is an LGPL-licensed replacement for the Motif widget toolkit.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/lesstif.rb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Library/Formula/lesstif.rb b/Library/Formula/lesstif.rb new file mode 100644 index 000000000..c9befe6b8 --- /dev/null +++ b/Library/Formula/lesstif.rb @@ -0,0 +1,32 @@ +require 'formula' + +class Lesstif <Formula + url 'http://sourceforge.net/projects/lesstif/files/lesstif/0.95.2/lesstif-0.95.2.tar.bz2' + md5 '754187dbac09fcf5d18296437e72a32f' + homepage 'http://lesstif.sourceforge.net' + + def install + ENV.x11 + + # LessTif does naughty, naughty, things by assuming we want autoconf macros + # to live in wherever `aclocal --print-ac-dir` says they should. + + inreplace ['configure'], "`aclocal --print-ac-dir`", "#{share}/aclocal" + + # Shame on you LessTif! *wags finger* + + system "./configure", "--prefix=#{prefix}", + "--disable-debug", + "--enable-production", + "--disable-dependency-tracking", + "--enable-shared", + "--enable-static" + + system "make" + + # LessTif won't install in parallel 'cause several parts of the Makefile will + # try to make the same directory and `mkdir` will fail. + ENV.deparallelize + system "make install" + end +end |
