2010-06-17 12:34:06 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libiconv < Formula
|
2011-09-12 16:31:30 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/libiconv/libiconv-1.13.1.tar.gz'
|
2010-06-17 12:34:06 +00:00
|
|
|
md5 '7ab33ebd26687c744a37264a330bbe9a'
|
|
|
|
homepage 'http://www.gnu.org/software/libiconv/'
|
|
|
|
end
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Tin < Formula
|
2011-10-08 02:41:08 +00:00
|
|
|
url 'ftp://ftp.tin.org/pub/news/clients/tin/stable/tin-2.0.0.tar.gz'
|
2010-06-17 12:34:06 +00:00
|
|
|
homepage 'http://www.tin.org'
|
2011-10-08 02:41:08 +00:00
|
|
|
md5 'fae76336a6bfe82aaa9e99f2212a356c'
|
2010-06-17 12:34:06 +00:00
|
|
|
|
|
|
|
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
|