2010-10-31 04:35:27 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libiconv < Formula
|
2011-08-21 20:20:07 +00:00
|
|
|
url 'http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz'
|
2010-10-31 04:35:27 +00:00
|
|
|
homepage 'http://www.gnu.org/software/libiconv/'
|
2011-08-21 20:20:07 +00:00
|
|
|
md5 'e34509b1623cec449dfeb73d7ce9c6c6'
|
2010-10-31 04:35:27 +00:00
|
|
|
|
2011-03-16 05:01:31 +00:00
|
|
|
keg_only :provided_by_osx, <<-EOS.undent
|
|
|
|
A few software packages require this newer version of libiconv.
|
|
|
|
Please use this dependency very sparingly.
|
|
|
|
EOS
|
2010-10-31 04:35:27 +00:00
|
|
|
|
|
|
|
def patches
|
|
|
|
{ :p1 => [
|
|
|
|
'http://svn.macports.org/repository/macports/trunk/dports/textproc/libiconv/files/patch-Makefile.devel',
|
|
|
|
'http://svn.macports.org/repository/macports/trunk/dports/textproc/libiconv/files/patch-utf8mac.diff',
|
|
|
|
DATA
|
|
|
|
]}
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.j1
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--enable-extra-encodings"
|
|
|
|
system "make -f Makefile.devel"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/lib/flags.h b/lib/flags.h
|
|
|
|
index d7cda21..4cabcac 100644
|
|
|
|
--- a/lib/flags.h
|
|
|
|
+++ b/lib/flags.h
|
|
|
|
@@ -14,6 +14,7 @@
|
|
|
|
|
|
|
|
#define ei_ascii_oflags (0)
|
|
|
|
#define ei_utf8_oflags (HAVE_ACCENTS | HAVE_QUOTATION_MARKS | HAVE_HANGUL_JAMO)
|
|
|
|
+#define ei_utf8mac_oflags (HAVE_ACCENTS | HAVE_QUOTATION_MARKS | HAVE_HANGUL_JAMO)
|
|
|
|
#define ei_ucs2_oflags (HAVE_ACCENTS | HAVE_QUOTATION_MARKS | HAVE_HANGUL_JAMO)
|
|
|
|
#define ei_ucs2be_oflags (HAVE_ACCENTS | HAVE_QUOTATION_MARKS | HAVE_HANGUL_JAMO)
|
|
|
|
#define ei_ucs2le_oflags (HAVE_ACCENTS | HAVE_QUOTATION_MARKS | HAVE_HANGUL_JAMO)
|