blob: a0cc9e44ff6f0a494aac4e94c8d177d5539b8c2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
  |