diff options
| author | Misty De Meo | 2013-01-29 17:37:50 -0600 |
|---|---|---|
| committer | Misty De Meo | 2013-01-29 17:39:28 -0600 |
| commit | d3be42ee251519837a2b251da541dfb7f3e36768 (patch) | |
| tree | e9da134980cb60f87c11d49c3bc9d83f32c617db /Library/Formula/recode.rb | |
| parent | 3b5089f4fb4950c9f8b9424a4233bc08322061a0 (diff) | |
| download | homebrew-d3be42ee251519837a2b251da541dfb7f3e36768.tar.bz2 | |
recode 3.7-beta2
Moving to a beta since recode 3.6 segfaults using clang.
Fixes #17419.
Diffstat (limited to 'Library/Formula/recode.rb')
| -rw-r--r-- | Library/Formula/recode.rb | 61 |
1 files changed, 5 insertions, 56 deletions
diff --git a/Library/Formula/recode.rb b/Library/Formula/recode.rb index bcf52e35b..1fee93130 100644 --- a/Library/Formula/recode.rb +++ b/Library/Formula/recode.rb @@ -2,18 +2,13 @@ require 'formula' class Recode < Formula homepage 'http://recode.progiciels-bpi.ca/index.html' - url 'https://github.com/pinard/Recode/tarball/v3.6' - sha1 '417c36dfe9c729276a3d439d280b515b615241df' + url 'https://github.com/pinard/Recode/archive/v3.7-beta2.tar.gz' + sha1 'a10c90009ad3e1743632ada2a302c824edc08eaf' + version '3.7-beta2' depends_on "gettext" depends_on :libtool - # Patches from MacPorts - # No reason for patch given, no link to patches given. Someone shoot that guy :P - def patches - { :p0 => DATA } - end - def copy_libtool_files! if not MacOS::Xcode.provides_autotools? s = Formula.factory('libtool').share @@ -27,7 +22,9 @@ class Recode < Formula end def install + # Yep, missing symbol errors without these ENV.append 'LDFLAGS', '-liconv' + ENV.append 'LDFLAGS', '-lintl' copy_libtool_files! @@ -40,51 +37,3 @@ class Recode < Formula system "make install" end end - -__END__ ---- lib/Makefile.in.orig 2007-10-20 01:45:40.000000000 +0200 -+++ lib/Makefile.in 2007-10-20 01:46:19.000000000 +0200 -@@ -107,8 +107,8 @@ - AUTOMAKE_OPTIONS = gnits - - noinst_LIBRARIES = libreco.a --noinst_HEADERS = error.h getopt.h gettext.h pathmax.h xstring.h --libreco_a_SOURCES = error.c getopt.c getopt1.c xstrdup.c -+noinst_HEADERS = error.h gettext.h pathmax.h xstring.h -+libreco_a_SOURCES = error.c xstrdup.c - - EXTRA_DIST = alloca.c gettext.c malloc.c realloc.c strtol.c strtoul.c - -@@ -128,7 +128,7 @@ - LDFLAGS = @LDFLAGS@ - LIBS = @LIBS@ - libreco_a_DEPENDENCIES = @ALLOCA@ @LIBOBJS@ --libreco_a_OBJECTS = error.o getopt.o getopt1.o xstrdup.o -+libreco_a_OBJECTS = error.o xstrdup.o - AR = ar - CFLAGS = @CFLAGS@ - COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) ---- src/libiconv.c.orig 2000-07-01 11:13:25.000000000 -0600 -+++ src/libiconv.c 2008-10-21 01:24:40.000000000 -0600 -@@ -195,12 +195,17 @@ - memcpy() doesn't do here, because the regions might overlap. - memmove() isn't worth it, because we rarely have to move more - than 12 bytes. */ -- if (input > input_buffer && input_left > 0) -+ cursor = input_buffer; -+ if (input_left > 0) - { -- cursor = input_buffer; -- do -- *cursor++ = *input++; -- while (--input_left > 0); -+ if (input > input_buffer) -+ { -+ do -+ *cursor++ = *input++; -+ while (--input_left > 0); -+ } -+ else -+ cursor += input_left; - } - } |
