the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: libgettext8-shlibs
Version: 0.17
Revision: 19
Source: mirror:gnu:gettext/gettext-%v.tar.gz
#Source: mirror:sourceforge:fink/gettext-%v.tar.gz
#Source: http://ftp.gnu.org/pub/gnu/gettext/gettext-%v.tar.gz
Source-MD5: 58a2bc6d39c0ba57823034d55d65d606
PatchFile: %n.patch
PatchFile-MD5: 9db9231d64d3580f367190aeee292ee6
PatchScript: <<
patch -p1 < %{PatchFile}
cd build-aux; perl -pi -e 's/.*chmod.*777.*$//g' ltmain.sh
<<
# not yet used by fink core or bootstrap packages
#Essential: yes
Depends: libiconv, libiconv-bin, base-files
BuildDepends: libiconv-dev, fink (>= 0.24.12)
NoSetMAKEFLAGS: true
SetMAKEFLAGS: -j1
SetCFLAGS: -Os
ConfigureParams: --mandir='%p/share/man' --with-included-gettext --disable-csharp --disable-rpath --disable-libasprintf --disable-static
CompileScript: cd gettext-runtime; env EMACS=no CCACHE_DISABLE=1 ./configure %c ; make
InstallScript: <<
cd gettext-runtime; make install DESTDIR=%d
rm %i/lib/charset.alias
#No need for dependency_libs in .la files if not building static libs
perl -pi -e "s/dependency_libs=.*$/dependency_libs=''/" %i/lib/libintl.la
<<
DocFiles: README* AUTHORS gettext-runtime/BUGS COPYING* NEWS THANKS ChangeLog*
Description: GNU Internationalization utils (shared libs)
Splitoff: <<
Package: libgettext8-dev
Conflicts: gettext-dev, libgettext3-dev
Replaces: gettext-dev, libgettext3-dev
Suggests: gettext-doc
Depends: %N (= %v-%r), gettext-bin (>= %v-%r)
BuildDependsOnly: true
DocFiles: README* AUTHORS gettext-runtime/BUGS COPYING* NEWS THANKS ChangeLog*
Description: GNU Internationalization utils (Development Files)
Files: include lib/libintl.la lib/libintl.dylib
<<
Splitoff2: <<
Package: gettext-bin
Depends: %N (>= %v-%r)
Replaces: gettext-tools (<< 0.14.5-1), libgettext3-shlibs (<< 0.14.5-1)
DocFiles: README* AUTHORS gettext-runtime/BUGS COPYING* NEWS THANKS ChangeLog*
Description: GNU Internationalization utils
Files: bin share/gettext share/locale share/man
<<
Splitoff3: <<
Package: gettext-doc
DocFiles: README* AUTHORS gettext-runtime/BUGS COPYING* NEWS THANKS ChangeLog*
Description: GNU Internationalization utils (Documentation)
Files: share/doc/gettext
<<
DescDetail: <<
The gettext packages provides some of the i18n and l10n support used by
many GNU programs but missing from the Darwin C library.
<<
DescPort: <<
charset.alias is deleted because it is empty on Darwin anyway and
causes unnecessary conflicts between packages.
The emacs files have been moved to a separate gettext-emacs package
(EMACS=no prevents them from being compiled here).
<<
DescPackaging: <<
We now follow the packaging advice from the upstream authors, and have
separated gettext-tools into its own package (a separate build from
the same source). The libraries from that portion have gone into
libgettextpo2-*.
However, we have retained the idea of a gettext-doc splitoff from
the previous version of libgettext3-shlibs, which was prepared by
Chris Zubrzycki.
Don't bother checking for AIX-specific bug (test is bugged on
clang). See:
http://lists.gnu.org/archive/html/bug-autoconf/2010-08/msg00116.html
<<
Shlibs: <<
%p/lib/libintl.8.dylib 9.0.0 %n (>= 0.17-1)
<<
InfoTest: <<
TestScript: cd gettext-runtime; make check || exit 2
<<
License: GPL/LGPL
Maintainer: Fink Core Group
Homepage: http://www.gnu.org/software/gettext/
diff -uNr gettext-0.17/gettext-runtime/configure gettext-0.17-new/gettext-runtime/configure
--- gettext-0.17/gettext-runtime/configure 2007-11-06 18:33:39.000000000 -0500
+++ gettext-0.17-new/gettext-runtime/configure 2011-07-01 15:03:36.000000000 -0400
@@ -31673,7 +31673,7 @@
_Bool n[m];
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
- #if defined __xlc__ || defined __GNUC__
+ #if defined __xlc__
/* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
reported by James Lemley on 2005-10-05; see
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
diff -uNr gettext-0.17/gettext-runtime/gnulib-lib/setenv.c gettext-0.17-new/gettext-runtime/gnulib-lib/setenv.c
--- gettext-0.17/gettext-runtime/gnulib-lib/setenv.c 2007-10-07 16:28:16.000000000 -0400
+++ gettext-0.17-new/gettext-runtime/gnulib-lib/setenv.c 2007-12-06 16:31:05.000000000 -0500
@@ -37,9 +37,14 @@
#endif
#if !_LIBC
-# define __environ environ
-# ifndef HAVE_ENVIRON_DECL
-extern char **environ;
+# define __environ environ
+# if ! HAVE_ENVIRON_DECL
+# ifdef __APPLE__
+# include
+# define environ (*_NSGetEnviron())
+# else
+ extern char **environ;
+# endif
# endif
#endif
diff -uNr gettext-0.17/gettext-runtime/libasprintf/Makefile.in gettext-0.17-new/gettext-runtime/libasprintf/Makefile.in
--- gettext-0.17/gettext-runtime/libasprintf/Makefile.in 2007-11-06 18:35:22.000000000 -0500
+++ gettext-0.17-new/gettext-runtime/libasprintf/Makefile.in 2007-12-06 16:31:05.000000000 -0500
@@ -290,7 +290,7 @@
# How to build libasprintf.
# With libtool 1.5.14, on some platforms, like BeOS, "libtool --tag=CXX" fails
# to create a shared library, however "libtool --tag=CC" succeeds.
-libasprintf_la_LDFLAGS = @LTNOUNDEF@
+libasprintf_la_LDFLAGS = @LTNOUNDEF@ -static
MAKEINFOFLAGS = --no-split
info_TEXINFOS = autosprintf.texi
CLEANFILES = autosprintf.pdf
diff -uNr gettext-0.17/gettext-tools/configure gettext-0.17-new/gettext-tools/configure
--- gettext-0.17/gettext-tools/configure 2007-11-06 18:37:40.000000000 -0500
+++ gettext-0.17-new/gettext-tools/configure 2011-07-01 15:03:32.000000000 -0400
@@ -35335,7 +35335,7 @@
_Bool n[m];
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
- #if defined __xlc__ || defined __GNUC__
+ #if defined __xlc__
/* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
reported by James Lemley on 2005-10-05; see
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
diff -uNr gettext-0.17/gettext-tools/doc/gettext.info gettext-0.17-new/gettext-tools/doc/gettext.info
--- gettext-0.17/gettext-tools/doc/gettext.info 2007-11-01 22:23:13.000000000 -0400
+++ gettext-0.17-new/gettext-tools/doc/gettext.info 2007-12-06 16:30:28.000000000 -0500
@@ -1,7 +1,7 @@
-INFO-DIR-SECTION GNU Gettext Utilities
-START-INFO-DIR-ENTRY
This is gettext.info, produced by makeinfo version 4.11 from gettext.texi.
+INFO-DIR-SECTION GNU Gettext Utilities
+START-INFO-DIR-ENTRY
* gettext: (gettext). GNU gettext utilities.
* autopoint: (gettext)autopoint Invocation. Copy gettext infrastructure.
* envsubst: (gettext)envsubst Invocation. Expand environment variables.
diff -uNr gettext-0.17/gettext-tools/gnulib-lib/execute.c gettext-0.17-new/gettext-tools/gnulib-lib/execute.c
--- gettext-0.17/gettext-tools/gnulib-lib/execute.c 2007-10-07 16:29:19.000000000 -0400
+++ gettext-0.17-new/gettext-tools/gnulib-lib/execute.c 2007-12-06 16:31:05.000000000 -0500
@@ -55,7 +55,12 @@
#endif
#if ! HAVE_ENVIRON_DECL
-extern char **environ;
+# ifdef __APPLE__
+# include
+# define environ (*_NSGetEnviron())
+# else
+ extern char **environ;
+# endif
#endif
#ifndef STDIN_FILENO
diff -uNr gettext-0.17/gettext-tools/gnulib-lib/pipe.c gettext-0.17-new/gettext-tools/gnulib-lib/pipe.c
--- gettext-0.17/gettext-tools/gnulib-lib/pipe.c 2007-10-07 16:29:34.000000000 -0400
+++ gettext-0.17-new/gettext-tools/gnulib-lib/pipe.c 2007-12-06 16:31:05.000000000 -0500
@@ -54,7 +54,12 @@
#endif
#if ! HAVE_ENVIRON_DECL
-extern char **environ;
+# ifdef __APPLE__
+# include
+# define environ (*_NSGetEnviron())
+# else
+ extern char **environ;
+# endif
#endif
#ifndef STDIN_FILENO
diff -uNr gettext-0.17/gettext-tools/gnulib-lib/setenv.c gettext-0.17-new/gettext-tools/gnulib-lib/setenv.c
--- gettext-0.17/gettext-tools/gnulib-lib/setenv.c 2007-10-07 16:29:34.000000000 -0400
+++ gettext-0.17-new/gettext-tools/gnulib-lib/setenv.c 2007-12-06 16:31:05.000000000 -0500
@@ -38,8 +38,13 @@
#if !_LIBC
# define __environ environ
-# ifndef HAVE_ENVIRON_DECL
-extern char **environ;
+# if ! HAVE_ENVIRON_DECL
+# ifdef __APPLE__
+# include
+# define environ (*_NSGetEnviron())
+# else
+ extern char **environ;
+# endif
# endif
#endif
diff -uNr gettext-0.17/gettext-tools/gnulib-lib/unsetenv.c gettext-0.17-new/gettext-tools/gnulib-lib/unsetenv.c
--- gettext-0.17/gettext-tools/gnulib-lib/unsetenv.c 2007-10-07 16:29:39.000000000 -0400
+++ gettext-0.17-new/gettext-tools/gnulib-lib/unsetenv.c 2007-12-06 16:31:05.000000000 -0500
@@ -27,8 +27,13 @@
#if !_LIBC
# define __environ environ
-# ifndef HAVE_ENVIRON_DECL
-extern char **environ;
+# if ! HAVE_ENVIRON_DECL
+# ifdef __APPLE__
+# include
+# define environ (*_NSGetEnviron())
+# else
+ extern char **environ;
+# endif
# endif
#endif
diff -uNr gettext-0.17/gettext-tools/gnulib-tests/test-stdbool.c gettext-0.17-new/gettext-tools/gnulib-tests/test-stdbool.c
--- gettext-0.17/gettext-tools/gnulib-tests/test-stdbool.c 2007-10-07 16:29:47.000000000 -0400
+++ gettext-0.17-new/gettext-tools/gnulib-tests/test-stdbool.c 2011-07-01 15:03:25.000000000 -0400
@@ -61,7 +61,7 @@
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
#if 0 /* Cannot be guaranteed with gnulib's
-#if defined __xlc__ || defined __GNUC__
+#if defined __xlc__
/* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
reported by James Lemley on 2005-10-05; see
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
diff -uNr gettext-0.17/gettext-tools/src/Makefile.in gettext-0.17-new/gettext-tools/src/Makefile.in
--- gettext-0.17/gettext-tools/src/Makefile.in 2007-11-06 18:40:15.000000000 -0500
+++ gettext-0.17-new/gettext-tools/src/Makefile.in 2011-07-01 12:26:14.000000000 -0400
@@ -1706,10 +1706,10 @@
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(urlget_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o urlget-urlget.obj `if test -f 'urlget.c'; then $(CYGPATH_W) 'urlget.c'; else $(CYGPATH_W) '$(srcdir)/urlget.c'; fi`
xgettext-xgettext.o: xgettext.c
- $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-xgettext.o `test -f 'xgettext.c' || echo '$(srcdir)/'`xgettext.c
+ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -O4 -c -o xgettext-xgettext.o `test -f 'xgettext.c' || echo '$(srcdir)/'`xgettext.c
xgettext-xgettext.obj: xgettext.c
- $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-xgettext.obj `if test -f 'xgettext.c'; then $(CYGPATH_W) 'xgettext.c'; else $(CYGPATH_W) '$(srcdir)/xgettext.c'; fi`
+ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -O4 -c -o xgettext-xgettext.obj `if test -f 'xgettext.c'; then $(CYGPATH_W) 'xgettext.c'; else $(CYGPATH_W) '$(srcdir)/xgettext.c'; fi`
xgettext-x-c.o: x-c.c
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-c.o `test -f 'x-c.c' || echo '$(srcdir)/'`x-c.c