the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: gettext-tools
Version: 0.17
Revision: 18
Source: mirror:gnu:gettext/gettext-%v.tar.gz
#Source: mirror:sourceforge:fink/gettext-%v.tar.gz
Source-MD5: 58a2bc6d39c0ba57823034d55d65d606
PatchFile: libgettext8-shlibs.patch
PatchFile-MD5: 9db9231d64d3580f367190aeee292ee6
PatchScript: <<
patch -p1 < %{PatchFile}
perl -pi -e 's/.*chmod.*777.*$//g' build-aux/ltmain.sh
perl -pi -e 's/extern char \*stpncpy \(char \*dest, const char \*src, size_t n\)\;//g' gettext-tools/configure
<<
Depends: <<
expat1-shlibs (>= 2.0.1-1),
libgettext8-shlibs (>= %v-1),
libiconv (>= 1.12-3),
libncurses5-shlibs (>= 5.4-20041023-1011)
<<
Suggests: gettext-doc
BuildDepends: <<
expat1 (>= 2.0.1-1),
fink (>= 0.28.0),
libgettext8-dev (>= %v-1),
libiconv-dev (>= 1.12-3),
libncurses5 (>= 5.4-20041023-1011)
<<
BuildConflicts: gcc45, gcc46, gcc47
Conflicts: gettext-tools-0.17
Replaces: gettext-dev (<= 0.10.40-20), gettext (<= 0.10.40-4), gettext-bin (<= 0.10.40-20), libgettext3-shlibs (<< 0.14.5-1), libgettextpo2-shlibs (<< 0.14.5-2), gettext-tools-0.17
NoSetMAKEFLAGS: true
SetMAKEFLAGS: -j1
ConfigureParams: --infodir='${prefix}/share/info' --mandir='${prefix}/share/man' --with-included-gettext --disable-csharp --disable-rpath --disable-java --disable-native-java --with-included-glib --with-included-libcroco --with-included-libxml
CompileScript: <<
#!/bin/sh -ev
# test for Xcode 4.2 compiler
if [[ -n `gcc --version | grep llvm-g` ]]
then
export CXX='clang++ -arch %m'
export CC='clang -arch %m'
fi
cd gettext-tools
env EMACS=no ./configure %c
make
<<
#InfoTest: <<
# TestScript: <<
# # some self-tests fail (see DescPackaging)
# cd gettext-tools; LC_ALL=C make -k check || exit 2
# <<
#<<
InstallScript: <<
cd gettext-tools; make install prefix=%i
rm %i/lib/libgettextlib.*
rm %i/lib/libgettextsrc.*
rm %i/lib/charset.alias
rm %i/lib/libintl*
rm %i/include/libintl.h
rm %i/share/locale/locale.alias
<<
DocFiles: README* AUTHORS COPYING* NEWS THANKS ChangeLog*
InfoDocs: gettext.info
Shlibs: <<
!%p/lib/libgettextlib-0.17.dylib
!%p/lib/libgettextsrc-0.17.dylib
<<
Description: GNU Internationalization utils (shared libs)
Splitoff: <<
Package: libgettextpo2-dev
Replaces: libgettext3-dev (<< 0.14.5-1)
Depends: <<
libgettextpo2-shlibs (= %v-%r),
gettext-bin (>= %v-1),
gettext-tools (>= %v-%r)
<<
BuildDependsOnly: true
DocFiles: README* AUTHORS COPYING* NEWS THANKS ChangeLog*
Description: GNU Internationalization utils (Development Files)
Files: include lib/*.a lib/*.la lib/libgettextpo.dylib
<<
SplitOff2: <<
Package: libgettextpo2-shlibs
Essential: no
Depends: <<
libiconv,
libiconv-bin,
base-files,
libgettext8-shlibs
<<
Conflicts: libgettext3
Replaces: gettext-bin (<< 0.14-1), libgettext3, libgettext3-shlibs (<< 0.14.5-1)
Files: lib/libgettextpo.*.dylib
DocFiles: README* AUTHORS COPYING* NEWS THANKS ChangeLog*
Shlibs: <<
%p/lib/libgettextpo.0.dylib 5.0.0 %n (>= 0.17-15)
<<
<<
#Splitoff3: <<
# Package: gettext-tools-doc
# DocFiles: README* AUTHORS 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.
The two shared libraries libgettextlib-%v.dylib and libgettextsrc-%v.dylib
are intended to only be used by binaries in the gettext-tools package
(to avoid duplication of code in those binaries, apparently). They
are thus private shared libraries in the package with the binaries.
The files used to link against them are removed so that nothing else
can link to those libraries.
We also remove a few stray files related to libintl which 'make install'
installs for us. Cannot scrap the whole libintl build because -tools
uses private parts of libintl (gettext-runtime/intl sources that are
not part of public API). Maybe could force use of installed libintl
and overlay it with shims or a few local sources, but safer to use
consistent set and follow upstream recommendations.
Leaving self-tests disabled because several are failing...
msgmerge: `mm-p-2.po': No such file or directory
FAIL: msgmerge-properties-2
msgmerge: `mm-u-2.po': No such file or directory
FAIL: msgmerge-update-2
prog.cc:16:25: error: autosprintf.h: No such file or directory
prog.cc:17: error: 'gnu' has not been declared
prog.cc: In function 'int main(int, char**)':
prog.cc:34: error: 'autosprintf' was not declared in this scope
FAIL: lang-c++
1c1
[non-ascii-safe strings]
FAIL: lang-bash
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
Doesn't build with llvm-gcc-4.2, so switch to clang if that is the only
"gcc".
<<
License: GPL/LGPL
Maintainer: Fink Core Group
Homepage: http://www.gnu.org/software/gettext/