2009-12-27 20:35:00 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Slrn <Formula
|
|
|
|
url 'ftp://space.mit.edu/pub/davis/slrn/slrn-0.9.9p1.tar.gz'
|
2010-01-07 14:09:20 +00:00
|
|
|
homepage 'http://www.slrn.org/'
|
2009-12-27 20:35:00 +00:00
|
|
|
md5 '6cc8ac6baaff7cc2a8b78f7fbbe3187f'
|
|
|
|
version '0.9.9p1'
|
|
|
|
|
|
|
|
depends_on 's-lang'
|
|
|
|
|
|
|
|
def install
|
2010-12-11 20:38:45 +00:00
|
|
|
slrnpullcache = HOMEBREW_PREFIX+'var'+'spool'+'news'+'slrnpull'
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-ssl",
|
2010-12-11 20:38:45 +00:00
|
|
|
"--with-slrnpull=#{slrnpullcache}"
|
2010-04-07 05:58:35 +00:00
|
|
|
"--with-slang=#{HOMEBREW_PREFIX}"
|
2009-12-27 20:35:00 +00:00
|
|
|
system "make all slrnpull"
|
2010-04-07 05:58:35 +00:00
|
|
|
bin.mkpath
|
|
|
|
man1.mkpath
|
2010-12-11 20:38:45 +00:00
|
|
|
slrnpullcache.mkpath
|
2010-01-24 12:23:20 +00:00
|
|
|
ENV.j1 # yep, install is broken
|
2009-12-27 20:35:00 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|