Ticket #8427: gettext-port.patch

File gettext-port.patch, 1.8 KB (added by namely_void@…, 18 years ago)

Patch to the port directory

  • Portfile

    diff -Nru /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/devel/gettext/Portfile ./Portfile
    old new  
    2020
    2121checksums       md5 e2f6581626a22a0de66dce1d81d00de3
    2222
     23patchfiles      patch-localcharset
     24
    2325configure.env   LDFLAGS="-fno-common" EMACS=/usr/bin/emacs
    2426build.env       PATH=${prefix}/bin:$env(PATH)
    2527
  • files/patch-localcharset

    diff -Nru /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/devel/gettext/files/patch-localcharset ./files/patch-localcharset
    old new  
     1diff -Nru ../gettext-0.14.5/gettext-runtime/intl/localcharset.c ./gettext-runtime/intl/localcharset.c
     2--- ../gettext-0.14.5/gettext-runtime/intl/localcharset.c       2005-05-20 23:07:51.000000000 +0300
     3+++ ./gettext-runtime/intl/localcharset.c       2006-04-16 22:34:52.000000000 +0300
     4@@ -23,6 +23,8 @@
     5 # include <config.h>
     6 #endif
     7 
     8+#ifndef HAVE_ICONV
     9+
     10 /* Specification.  */
     11 #include "localcharset.h"
     12 
     13@@ -407,3 +409,5 @@
     14 
     15   return codeset;
     16 }
     17+
     18+#endif
     19diff -Nru ../gettext-0.14.5/gettext-tools/lib/localcharset.c ./gettext-tools/lib/localcharset.c
     20--- ../gettext-0.14.5/gettext-tools/lib/localcharset.c  2005-05-20 23:24:10.000000000 +0300
     21+++ ./gettext-tools/lib/localcharset.c  2006-04-16 22:35:37.000000000 +0300
     22@@ -23,6 +23,8 @@
     23 # include <config.h>
     24 #endif
     25 
     26+#ifndef HAVE_ICONV
     27+
     28 /* Specification.  */
     29 #include "localcharset.h"
     30 
     31@@ -407,3 +409,5 @@
     32 
     33   return codeset;
     34 }
     35+
     36+#endif