homebrew-core/Formula/recode.rb
Jack Nagel 76021a8379 Provide compatibility with libtool 2.4.2 and 2.4.3+
The location of config.guess and config.sub changed.
2014-12-07 00:15:40 -05:00

27 lines
850 B
Ruby

require 'formula'
class Recode < Formula
homepage 'http://recode.progiciels-bpi.ca/index.html'
url 'https://github.com/pinard/Recode/archive/v3.7-beta2.tar.gz'
sha1 'a10c90009ad3e1743632ada2a302c824edc08eaf'
version '3.7-beta2'
depends_on "gettext"
depends_on "libtool" => :build
def install
# Yep, missing symbol errors without these
ENV.append 'LDFLAGS', '-liconv'
ENV.append 'LDFLAGS', '-lintl'
cp Dir["#{Formula["libtool"].opt_share}/libtool/*/config.{guess,sub}"], buildpath
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--without-included-gettext",
"--prefix=#{prefix}",
"--infodir=#{info}",
"--mandir=#{man}"
system "make install"
end
end