From 98df6634cd261691aa4cd3c13a51074a24647cad Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sat, 3 Oct 2009 22:07:08 +0200 Subject: [PATCH] new package: - add the full gettext package --- packages/devel/gettext/build | 21 ++++++++++++++ packages/devel/gettext/install | 6 ++++ .../devel/gettext/patches/10_gnulib-fix.diff | 29 +++++++++++++++++++ packages/devel/gettext/url | 1 + 4 files changed, 57 insertions(+) create mode 100644 packages/devel/gettext/build create mode 100644 packages/devel/gettext/install create mode 100644 packages/devel/gettext/patches/10_gnulib-fix.diff create mode 100644 packages/devel/gettext/url diff --git a/packages/devel/gettext/build b/packages/devel/gettext/build new file mode 100644 index 0000000000..b9bd49f511 --- /dev/null +++ b/packages/devel/gettext/build @@ -0,0 +1,21 @@ +#!/bin/sh + +. config/options + +$SCRIPTS/build toolchain + +cd $PKG_BUILD/gettext-runtime +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --with-included-gettext \ + --disable-static \ + --enable-shared \ + --disable-dependency-tracking \ + --disable-java \ + --disable-native-java \ + --disable-libasprintf + +make + +$MAKEINSTALL diff --git a/packages/devel/gettext/install b/packages/devel/gettext/install new file mode 100644 index 0000000000..82218cc3f5 --- /dev/null +++ b/packages/devel/gettext/install @@ -0,0 +1,6 @@ +#!/bin/sh + +. config/options + +mkdir -p $INSTALL/usr/lib + cp -PR $PKG_BUILD/gettext-runtime/intl/.libs/libintl.so* $INSTALL/usr/lib diff --git a/packages/devel/gettext/patches/10_gnulib-fix.diff b/packages/devel/gettext/patches/10_gnulib-fix.diff new file mode 100644 index 0000000000..8ee9c15558 --- /dev/null +++ b/packages/devel/gettext/patches/10_gnulib-fix.diff @@ -0,0 +1,29 @@ +diff -Naur gettext-0.17/gettext-runtime/gnulib-lib/mbchar.h gettext-0.17a/gettext-runtime/gnulib-lib/mbchar.h +--- gettext-0.17/gettext-runtime/gnulib-lib/mbchar.h 2007-10-07 22:28:16.000000000 +0200 ++++ gettext-0.17a/gettext-runtime/gnulib-lib/mbchar.h 2009-05-17 10:09:49.000000000 +0200 +@@ -147,6 +147,8 @@ + #include + #include + ++typedef unsigned int wint_t; ++ + /* Tru64 with Desktop Toolkit C has a bug: must be included before + . + BSD/OS 4.1 has a bug: and must be included before +diff -Naur gettext-0.17/gettext-runtime/gnulib-lib/wchar.in.h gettext-0.17a/gettext-runtime/gnulib-lib/wchar.in.h +--- gettext-0.17/gettext-runtime/gnulib-lib/wchar.in.h 2007-10-04 00:23:31.000000000 +0200 ++++ gettext-0.17a/gettext-runtime/gnulib-lib/wchar.in.h 2009-05-17 10:15:26.000000000 +0200 +@@ -41,7 +41,7 @@ + /* The include_next requires a split double-inclusion guard. */ + #if @HAVE_WCHAR_H@ + # @INCLUDE_NEXT@ @NEXT_WCHAR_H@ +-#endif ++#else + + #ifndef _GL_WCHAR_H + #define _GL_WCHAR_H +@@ -80,3 +80,4 @@ + + #endif /* _GL_WCHAR_H */ + #endif /* _GL_WCHAR_H */ ++#endif diff --git a/packages/devel/gettext/url b/packages/devel/gettext/url new file mode 100644 index 0000000000..a972ff72d7 --- /dev/null +++ b/packages/devel/gettext/url @@ -0,0 +1 @@ +http://mirrors.ircam.fr/pub/gnu/gnu/gettext/gettext-0.17.tar.gz