2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-05 22:15:04 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Most < Formula
|
2010-04-07 05:58:35 +00:00
|
|
|
url 'ftp://space.mit.edu/pub/davis/most/most-5.0.0a.tar.bz2'
|
|
|
|
homepage 'http://www.jedsoft.org/most/'
|
|
|
|
md5 '4c42abfc8d3ace1b0e0062ea021a5917'
|
2009-09-09 12:04:02 +00:00
|
|
|
|
2009-09-21 18:00:13 +00:00
|
|
|
depends_on 's-lang'
|
2009-09-05 22:15:04 +00:00
|
|
|
|
2010-01-23 11:31:35 +00:00
|
|
|
def patches; DATA end
|
|
|
|
|
2009-09-05 22:15:04 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2010-01-23 11:31:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
# most looks in a few set directories for slang, so at least add our prefix
|
|
|
|
__END__
|
|
|
|
diff --git a/configure b/configure
|
2010-01-24 15:48:52 +00:00
|
|
|
index f24b2f1..9ac109c 100755
|
2010-01-23 11:31:35 +00:00
|
|
|
--- 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"
|
2010-01-24 15:48:52 +00:00
|
|
|
+ /usr/local/include \
|
|
|
|
+ `brew --prefix`/include"
|
2010-01-23 11:31:35 +00:00
|
|
|
|
|
|
|
for X in $lib_include_dirs
|
|
|
|
do
|
2010-01-24 15:48:52 +00:00
|
|
|
@@ -9965,12 +9960,7 @@ echo "$as_me: error: --with-slanginc requres a value" >&2;}
|
|
|
|
/usr/local/lib \
|
|
|
|
/usr/local/lib/slang \
|
|
|
|
/usr/local/slang/lib \
|
|
|
|
- /usr/lib \
|
|
|
|
- /usr/lib/slang \
|
|
|
|
- /usr/slang/lib \
|
|
|
|
- /opt/lib \
|
|
|
|
- /opt/lib/slang \
|
|
|
|
- /opt/slang/lib"
|
|
|
|
+ `brew --prefix`/lib"
|
|
|
|
|
|
|
|
case "$host_os" in
|
|
|
|
*darwin* )
|