From b8b47694b2a0e025e3c2d86e01767eaee6addf8e Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Thu, 14 Apr 2011 10:30:26 +0200 Subject: [PATCH] gettext-stub: Added gettext-stub 1 - A little stub which can be used to replace gettext --- base/gettext-stub/gettext-stub.cache | 19 ++++++++++++++++ base/gettext-stub/gettext-stub.conf | 31 +++++++++++++++++++++++++ base/gettext-stub/gettext-stub.desc | 34 ++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 base/gettext-stub/gettext-stub.cache create mode 100644 base/gettext-stub/gettext-stub.conf create mode 100644 base/gettext-stub/gettext-stub.desc diff --git a/base/gettext-stub/gettext-stub.cache b/base/gettext-stub/gettext-stub.cache new file mode 100644 index 000000000..39a8098a1 --- /dev/null +++ b/base/gettext-stub/gettext-stub.cache @@ -0,0 +1,19 @@ + +[TIMESTAMP] 1302733514 Thu Apr 14 00:25:14 2011 +[BUILDTIME] 0 (5) +[SIZE] 0.01 MB, 6 files + +[DEP] bash +[DEP] binutils +[DEP] bzip2 +[DEP] coreutils +[DEP] diffutils +[DEP] fhs +[DEP] findutils +[DEP] gawk +[DEP] gcc +[DEP] glibc +[DEP] grep +[DEP] sed +[DEP] sysfiles +[DEP] tar diff --git a/base/gettext-stub/gettext-stub.conf b/base/gettext-stub/gettext-stub.conf new file mode 100644 index 000000000..1b960fe8a --- /dev/null +++ b/base/gettext-stub/gettext-stub.conf @@ -0,0 +1,31 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../gettext-stub/gettext-stub.conf +# Copyright (C) 2011 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# 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; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- SDE-COPYRIGHT-NOTE-END --- + +makeopt='' +makeinstopt='' + +hook_add inmake 5 "$CC -shared -o libintl.so libintl-stub.c" + +# function to install gettext-stub +gettext_stub_install() { + cp -vp libintl.so $root$libdir + cp -vp libintl-stub.h $root$includedir/libintl.h + cp -vp msgfmt $root$bindir +} + +if ! pkginstalled gettext; then + hook_add postmake 5 'gettext_stub_install' +else + echo_warning "Not installing gettext-stub! (gettext package detected)" +fi diff --git a/base/gettext-stub/gettext-stub.desc b/base/gettext-stub/gettext-stub.desc new file mode 100644 index 000000000..586a1850f --- /dev/null +++ b/base/gettext-stub/gettext-stub.desc @@ -0,0 +1,34 @@ +[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN --- +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] +[COPY] Filename: package/.../gettext-stub/gettext-stub.desc +[COPY] Copyright (C) 2011 The OpenSDE Project +[COPY] +[COPY] More information can be found in the files COPYING and README. +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; version 2 of the License. A copy of the +[COPY] GNU General Public License can be found in the file COPYING. +[COPY] --- SDE-COPYRIGHT-NOTE-END --- + +[I] A little stub which can be used to replace gettext + +[T] gettext-stub is a little stub which can be used to replace gettext. This is +[T] useful if you are tight on space and do not need fancy stuff like your +[T] computer speaking the oldest dialects of Chinese, yet want to build an +[T] application depending on gettext. + +[U] http://penma.de/code/gettext-stub/ + +[A] Lars Stoltenow +[M] Christian Wiese + +[C] extra/base + +[L] WTFPL +[S] Alpha +[V] 1 +[P] X -1-3-5---9 105.800 + +[D] 1140047823 gettext-stub-1.tar.gz ftp://penma.de/code/gettext-stub/