From 7bc50b4959949318a54355dfedbcc3b82658b1ae Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Thu, 6 Oct 2011 21:12:09 +0200 Subject: [PATCH] new package: add package 'gettext' Signed-off-by: Stephan Raue --- .../toolchain/devel/autotools/autoconf/meta | 2 +- .../toolchain/devel/autotools/gettext/build | 38 +++++++++++++++++++ .../toolchain/devel/autotools/gettext/meta | 36 ++++++++++++++++++ .../gettext-0.18.1.1-non_interactive.patch | 18 +++++++++ 4 files changed, 93 insertions(+), 1 deletion(-) create mode 100755 packages/toolchain/devel/autotools/gettext/build create mode 100644 packages/toolchain/devel/autotools/gettext/meta create mode 100644 packages/toolchain/devel/autotools/gettext/patches/gettext-0.18.1.1-non_interactive.patch diff --git a/packages/toolchain/devel/autotools/autoconf/meta b/packages/toolchain/devel/autotools/autoconf/meta index 7ac89b1cdf..4e42810efa 100644 --- a/packages/toolchain/devel/autotools/autoconf/meta +++ b/packages/toolchain/devel/autotools/autoconf/meta @@ -26,7 +26,7 @@ PKG_LICENSE="GPL" PKG_SITE="http://sources.redhat.com/autoconf/" PKG_URL="http://ftp.gnu.org/gnu/autoconf/$PKG_NAME-$PKG_VERSION.tar.bz2" PKG_DEPENDS="" -PKG_BUILD_DEPENDS="ccache m4 libtool-host" +PKG_BUILD_DEPENDS="ccache m4 gettext libtool-host" PKG_PRIORITY="optional" PKG_SECTION="toolchain/devel" PKG_SHORTDESC="autoconf: A GNU tool for automatically configuring source code" diff --git a/packages/toolchain/devel/autotools/gettext/build b/packages/toolchain/devel/autotools/gettext/build new file mode 100755 index 0000000000..365d30daed --- /dev/null +++ b/packages/toolchain/devel/autotools/gettext/build @@ -0,0 +1,38 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +setup_toolchain host + +cd $PKG_BUILD +./configure --host=$HOST_NAME \ + --build=$HOST_NAME \ + --target=$TARGET_NAME \ + --prefix=$ROOT/$TOOLCHAIN \ + --enable-shared \ + --disable-static \ + --disable-rpath \ + --with-gnu-ld + +make +make install diff --git a/packages/toolchain/devel/autotools/gettext/meta b/packages/toolchain/devel/autotools/gettext/meta new file mode 100644 index 0000000000..ea26fd830c --- /dev/null +++ b/packages/toolchain/devel/autotools/gettext/meta @@ -0,0 +1,36 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="gettext" +PKG_VERSION="0.18.1.1" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://www.gnu.org/s/gettext/" +PKG_URL="http://ftp.gnu.org/pub/gnu/gettext/$PKG_NAME-$PKG_VERSION.tar.gz" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS="ccache" +PKG_PRIORITY="optional" +PKG_SECTION="toolchain/devel" +PKG_SHORTDESC="gettext: A program internationalization library and tools" +PKG_LONGDESC="This is the GNU gettext package. It is interesting for authors or maintainers of other packages or programs which they want to see internationalized. As one step the handling of messages in different languages should be implemented. For this task GNU gettext provides the needed tools and library functions." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no" diff --git a/packages/toolchain/devel/autotools/gettext/patches/gettext-0.18.1.1-non_interactive.patch b/packages/toolchain/devel/autotools/gettext/patches/gettext-0.18.1.1-non_interactive.patch new file mode 100644 index 0000000000..86ca2db57f --- /dev/null +++ b/packages/toolchain/devel/autotools/gettext/patches/gettext-0.18.1.1-non_interactive.patch @@ -0,0 +1,18 @@ +diff -Naur gettext-0.18.1.1-old/gettext-tools/misc/gettextize.in gettext-0.18.1.1-new/gettext-tools/misc/gettextize.in +--- gettext-0.18.1.1-old/gettext-tools/misc/gettextize.in 2010-06-06 05:49:57.000000000 -0700 ++++ gettext-0.18.1.1-new/gettext-tools/misc/gettextize.in 2010-08-18 06:52:51.000000000 -0700 +@@ -1272,10 +1272,10 @@ + 5) count="five paragraphs";; + *) count="$count paragraphs";; + esac +- echo "Press Return to acknowledge the previous $count." +- # Read from /dev/tty, not stdin, so that gettextize cannot be abused by +- # non-interactive tools. +- read dummy < /dev/tty ++# echo "Press Return to acknowledge the previous $count." ++# # Read from /dev/tty, not stdin, so that gettextize cannot be abused by ++# # non-interactive tools. ++# read dummy < /dev/tty + fi + + exit 0