Added libiconv 1.13.1
libiconv with extra encodings & mac encodings. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
fb8d0555c5
commit
e9b1ce845e
1 changed files with 41 additions and 0 deletions
41
Formula/libiconv.rb
Normal file
41
Formula/libiconv.rb
Normal file
|
@ -0,0 +1,41 @@
|
|||
require 'formula'
|
||||
|
||||
class Libiconv <Formula
|
||||
url 'http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz'
|
||||
homepage 'http://www.gnu.org/software/libiconv/'
|
||||
md5 '7ab33ebd26687c744a37264a330bbe9a'
|
||||
|
||||
keg_only :provided_by_osx
|
||||
|
||||
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)
|
Loading…
Reference in a new issue