2010-09-27 01:01:18 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Lesstif < Formula
|
2012-06-07 01:35:12 +00:00
|
|
|
homepage 'http://lesstif.sourceforge.net'
|
2010-09-27 01:01:18 +00:00
|
|
|
url 'http://sourceforge.net/projects/lesstif/files/lesstif/0.95.2/lesstif-0.95.2.tar.bz2'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'b894e544d529a235a6a665d48ca94a465f44a4e5'
|
2010-09-27 01:01:18 +00:00
|
|
|
|
2012-06-07 01:35:12 +00:00
|
|
|
depends_on :x11
|
2010-09-27 01:01:18 +00:00
|
|
|
|
2012-06-07 01:35:12 +00:00
|
|
|
def install
|
2010-09-27 01:01:18 +00:00
|
|
|
# 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
|