homebrew-core/Formula/lesstif.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

42 lines
1.5 KiB
Ruby

class Lesstif < Formula
desc "Open source implementation of OSF/Motif"
homepage "http://lesstif.sourceforge.net"
url "https://downloads.sourceforge.net/project/lesstif/lesstif/0.95.2/lesstif-0.95.2.tar.bz2"
sha256 "eb4aa38858c29a4a3bcf605cfe7d91ca41f4522d78d770f69721e6e3a4ecf7e3"
bottle do
revision 1
sha1 "50b1cecbfce9a66ae8253b6efe1ecef4c58678fc" => :yosemite
sha1 "f6439fb1fda16afd5ae5447f071170b08a9484c3" => :mavericks
sha1 "dff63d044e87b2137cf8f961f9c46186b7af18d1" => :mountain_lion
end
depends_on :x11
depends_on "freetype"
def install
# LessTif does naughty, naughty, things by assuming we want autoconf macros
# to live in wherever `aclocal --print-ac-dir` says they should.
# Shame on you LessTif! *wags finger*
inreplace "configure", "`aclocal --print-ac-dir`", "#{share}/aclocal"
# 'sed' fails if LANG=en_US.UTF-8 as is often the case on Macs.
# The configure script finds our superenv sed wrapper, sets SED,
# but then doesn't use that variable.
ENV["LANG"] = "C"
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