the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: libgettext3-shlibs
Version: 0.14.5
Revision: 4
#Source: mirror:gnu:gettext/gettext-%v.tar.gz
Source: mirror:sourceforge:fink/gettext-%v.tar.gz
Source-MD5: e2f6581626a22a0de66dce1d81d00de3
PatchFile: %n.patch
PatchFile-MD5: 3799b4f059212628bac707e5365856b3
PatchScript: <<
patch -p1 < %{PatchFile}
cd build-aux; perl -pi -e 's/.*chmod.*777.*$//g' ltmain.sh
<<
Essential: yes
Depends: libiconv, libiconv-bin, base-files
BuildDepends: libiconv-dev, fink (>= 0.24.12)
Conflicts: libgettext3
Replaces: gettext-bin (<< 0.14-1), libgettext3
NoSetMAKEFLAGS: true
SetMAKEFLAGS: -j1
ConfigureParams: --infodir='${prefix}/share/info' --mandir='${prefix}/share/man' --with-included-gettext --disable-csharp --disable-rpath
CompileScript: cd gettext-runtime; env EMACS=no CCACHE_DISABLE=1 ./configure %c ; make
InstallScript: <<
cd gettext-runtime; make install prefix=%i
rm %i/lib/charset.alias
<<
DocFiles: README* AUTHORS gettext-runtime/BUGS COPYING* NEWS THANKS ChangeLog*
Description: GNU Internationalization utils (shared libs)
Splitoff: <<
Package: libgettext3-dev
Conflicts: gettext-dev, libgettext8-dev
Replaces: gettext-dev, libgettext8-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/*.a lib/*.la lib/libintl.dylib lib/libasprintf.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/info share/locale share/man
InfoDocs: autosprintf.info
<<
Splitoff3: <<
Package: gettext-doc
DocFiles: README* AUTHORS gettext-runtime/BUGS COPYING* NEWS THANKS ChangeLog*
Description: GNU Internationalization utils (Documentation)
Files: share/doc/gettext share/doc/libasprintf
<<
DescDetail: <<
The gettext packages provides some of the i18n and l10n support used by
many GNU programs, but which is 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.
<<
Shlibs: <<
%p/lib/libasprintf.0.dylib 1.0.0 %n (>= 0.14-1)
%p/lib/libintl.3.dylib 8.0.0 %n (>= 0.14-1)
<<
License: GPL/LGPL
Maintainer: Fink Core Group
Homepage: http://www.gnu.org/software/gettext/
diff -ruN gettext-0.14.5/gettext-tools/lib/execute.c gettext-0.14.5-patched/gettext-tools/lib/execute.c
--- gettext-0.14.5/gettext-tools/lib/execute.c 2005-05-20 13:19:48.000000000 -0700
+++ gettext-0.14.5-patched/gettext-tools/lib/execute.c 2006-08-14 05:21:26.000000000 -0700
@@ -62,7 +62,12 @@
#endif
#ifndef HAVE_ENVIRON_DECL
-extern char **environ;
+# ifdef __APPLE__
+# include
+# define environ (*_NSGetEnviron())
+# else
+ extern char **environ;
+# endif
#endif
#ifndef STDIN_FILENO
diff -ruN gettext-0.14.5/gettext-tools/lib/pipe.c gettext-0.14.5-patched/gettext-tools/lib/pipe.c
--- gettext-0.14.5/gettext-tools/lib/pipe.c 2005-05-20 13:25:23.000000000 -0700
+++ gettext-0.14.5-patched/gettext-tools/lib/pipe.c 2006-08-14 05:22:02.000000000 -0700
@@ -61,7 +61,12 @@
#endif
#ifndef HAVE_ENVIRON_DECL
-extern char **environ;
+# ifdef __APPLE__
+# include
+# define environ (*_NSGetEnviron())
+# else
+ extern char **environ;
+# endif
#endif
#ifndef STDIN_FILENO