aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/most.rb
blob: 3da06638d8fe3a3156fbaa0adaaee1e7befc33bc (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
33
34
35
36
37
38
39
40
require 'formula'

class Most <Formula
  @url='ftp://space.mit.edu/pub/davis/most/most-5.0.0a.tar.bz2'
  @homepage='http://www.jedsoft.org/most/'
  @md5='4c42abfc8d3ace1b0e0062ea021a5917'

  depends_on 's-lang'

  def patches; DATA end

  def install
    system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
    system "make install"
  end
end


# most looks in a few set directories for slang, so at least add our prefix
__END__
diff --git a/configure b/configure
index f24b2f1..1cb7eb1 100755
--- a/configure
+++ b/configure
@@ -9936,13 +9936,8 @@ echo "$as_me: error: --with-slanginc requres a value" >&2;}
             $jd_prefix_incdir \
             /usr/local/slang/include \
             /usr/local/include/slang \
-  	  /usr/local/include \
-  	  /usr/include/slang \
-  	  /usr/slang/include \
-  	  /usr/include \
-  	  /opt/include/slang \
-  	  /opt/slang/include \
-  	  /opt/include"
+            /usr/local/include \
+            `brew --prefix`"
 
        for X in $lib_include_dirs
        do