diff options
| author | Camillo Lugaresi | 2012-02-25 01:39:12 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-03-02 22:22:16 -0600 |
| commit | ee2c3abdc07a20a5fac07fb298a73d0e2330fb9c (patch) | |
| tree | 4fc64173ecb18174c273ad80557fdfab37d4f871 /Library | |
| parent | 6206b080a567d7fdf8daaaca745ea80b998eecbc (diff) | |
| download | homebrew-ee2c3abdc07a20a5fac07fb298a73d0e2330fb9c.tar.bz2 | |
Remove spurious libiconv dependencies
OS X ships with iconv. glib failed to detect it, and this snowballed
into a few formulas requiring a superfluous duplicate install of
libiconv. All of the formulas in this commit compile without the
libiconv dependency.
jn:
The libiconv shipped with 10.5, 10.6, and 10.7 is version 1.11, so there
shouldn't be any cases of "10.x needs a newer libiconv but 10.y does
not".
In any case, we'll wait a week or so just in case any weird issues crop
up, and if not, then we can remove the libiconv formula and blacklist
it.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/clisp.rb | 19 | ||||
| -rw-r--r-- | Library/Formula/enca.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/kbtin.rb | 1 | ||||
| -rw-r--r-- | Library/Formula/libiptcdata.rb | 1 | ||||
| -rw-r--r-- | Library/Formula/tin.rb | 16 | ||||
| -rw-r--r-- | Library/Formula/wv2.rb | 9 |
6 files changed, 21 insertions, 27 deletions
diff --git a/Library/Formula/clisp.rb b/Library/Formula/clisp.rb index df2fed2ef..530b2646b 100644 --- a/Library/Formula/clisp.rb +++ b/Library/Formula/clisp.rb @@ -6,7 +6,6 @@ class Clisp < Formula homepage 'http://clisp.cons.org/' md5 '1962b99d5e530390ec3829236d168649' - depends_on 'libiconv' depends_on 'libsigsegv' depends_on 'readline' @@ -15,7 +14,8 @@ class Clisp < Formula fails_with_llvm "Configure fails on XCode 4/Snow Leopard.", :build => 2334 def patches - { :p0 => "https://trac.macports.org/export/89054/trunk/dports/lang/clisp/files/patch-src_lispbibl_d.diff" } + { :p0 => "https://trac.macports.org/export/89054/trunk/dports/lang/clisp/files/patch-src_lispbibl_d.diff", + :p1 => DATA } end def install @@ -59,3 +59,18 @@ class Clisp < Formula system "#{bin}/clisp --version" end end + +__END__ +diff --git a/src/stream.d b/src/stream.d +index 5345ed6..cf14e29 100644 +--- a/src/stream.d ++++ b/src/stream.d +@@ -3994,7 +3994,7 @@ global object iconv_range (object encoding, uintL start, uintL end, uintL maxint + nonreturning_function(extern, error_unencodable, (object encoding, chart ch)); + + /* Avoid annoying warning caused by a wrongly standardized iconv() prototype. */ +-#ifdef GNU_LIBICONV ++#if defined(GNU_LIBICONV) && !defined(__APPLE_CC__) + #undef iconv + #define iconv(cd,inbuf,inbytesleft,outbuf,outbytesleft) \ + libiconv(cd,(ICONV_CONST char **)(inbuf),inbytesleft,outbuf,outbytesleft) diff --git a/Library/Formula/enca.rb b/Library/Formula/enca.rb index 1ee43f577..1c9bebb85 100644 --- a/Library/Formula/enca.rb +++ b/Library/Formula/enca.rb @@ -5,8 +5,6 @@ class Enca < Formula homepage 'http://freshmeat.net/projects/enca' md5 '58fcf1fea7eeab70b64a2d61e14a967d' - depends_on 'libiconv' - def install system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" diff --git a/Library/Formula/kbtin.rb b/Library/Formula/kbtin.rb index 0e3450d58..5186b936f 100644 --- a/Library/Formula/kbtin.rb +++ b/Library/Formula/kbtin.rb @@ -5,7 +5,6 @@ class Kbtin < Formula homepage 'http://kbtin.sourceforge.net' md5 '5e23f48ac72e1609853895b44a0e3e90' - depends_on 'libiconv' depends_on 'gnutls' def install diff --git a/Library/Formula/libiptcdata.rb b/Library/Formula/libiptcdata.rb index 63daef659..dcfb0c809 100644 --- a/Library/Formula/libiptcdata.rb +++ b/Library/Formula/libiptcdata.rb @@ -6,7 +6,6 @@ class Libiptcdata < Formula md5 'af886556ecb129b694f2d365d03d95a8' depends_on 'gettext' - depends_on 'libiconv' def install system "./configure", "--disable-dependency-tracking", diff --git a/Library/Formula/tin.rb b/Library/Formula/tin.rb index db1210136..3d404978f 100644 --- a/Library/Formula/tin.rb +++ b/Library/Formula/tin.rb @@ -1,28 +1,12 @@ require 'formula' -class Libiconv < Formula - url 'http://ftpmirror.gnu.org/libiconv/libiconv-1.13.1.tar.gz' - mirror 'http://ftp.gnu.org/gnu/libiconv/libiconv-1.13.1.tar.gz' - md5 '7ab33ebd26687c744a37264a330bbe9a' - homepage 'http://www.gnu.org/software/libiconv/' -end - class Tin < Formula homepage 'http://www.tin.org' url 'ftp://ftp.tin.org/pub/news/clients/tin/stable/tin-2.0.1.tar.gz' md5 'd05622db1712a78a2b92aa27904befc2' 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" diff --git a/Library/Formula/wv2.rb b/Library/Formula/wv2.rb index 66571cb28..e900cc33b 100644 --- a/Library/Formula/wv2.rb +++ b/Library/Formula/wv2.rb @@ -1,18 +1,17 @@ require 'formula' class Wv2 < Formula - url 'http://downloads.sourceforge.net/project/wvware/wv2/0.3.1/wv2-0.3.1.tar.bz2' + url 'http://downloads.sourceforge.net/project/wvware/wv2-0.4.2.tar.bz2' homepage 'http://wvware.sourceforge.net/' - md5 '4a20200141cb1299055f2bf13b56989d' + md5 '850ed8e44a84e7bf0610747827018cbc' depends_on 'pkg-config' => :build depends_on 'glib' depends_on 'libgsf' - depends_on 'libiconv' def install - system "./configure", "--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}" + ENV.append 'LDFLAGS', '-liconv -lgobject-2.0' # work around broken detection + system "cmake #{std_cmake_parameters} ." system "make install" end end |
