homebrew-core/Formula/tin.rb
Jack Nagel fa3d89a7c0 Use automatic mirror selection for GNU downloads
It seems that the main GNU download site has issues in some places
outside the U.S., so we'll use the provided "ftpmirror.gnu.org" to pick
a nearby mirror.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-12 15:08:20 -05:00

29 lines
922 B
Ruby

require 'formula'
class Libiconv < Formula
url 'http://ftpmirror.gnu.org/libiconv/libiconv-1.13.1.tar.gz'
md5 '7ab33ebd26687c744a37264a330bbe9a'
homepage 'http://www.gnu.org/software/libiconv/'
end
class Tin < Formula
url 'ftp://ftp.tin.org/pub/news/clients/tin/unstable/tin-1.9.5.tar.gz'
homepage 'http://www.tin.org'
md5 '51661ec8ae10aa7ccf97cbf309cbbf11'
def install
iconvd = Pathname.getwd+'iconv'
iconvd.mkpath
Libiconv.new.brew do
system "./configure", "--prefix=#{iconvd}", "--disable-debug", "--disable-dependency-tracking",
"--enable-static", "--disable-shared"
system "make install"
end
ENV.enable_warnings
ENV['LDFLAGS'] = " #{iconvd}/lib/libiconv.a"
system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}", "--mandir=#{man}"
system "make build"
system "make install"
end
end