gettext, add version 1.0 (#13692)

drop obsolete versions
This commit is contained in:
Schrijvers Luc
2026-02-01 16:39:06 +01:00
committed by GitHub
parent 43d5ac828a
commit c898b139eb
5 changed files with 24 additions and 159 deletions

View File

@@ -1,127 +0,0 @@
SUMMARY="GNU tools for native language support"
DESCRIPTION="
GNU 'gettext' is an important step for the GNU Translation Project, as it is \
an asset on which we may build many other steps. This package offers to \
programmers, translators, and even users, a well integrated set of tools and \
documentation. Specifically, the GNU 'gettext' utilities are a set of tools \
that provides a framework to help other GNU packages produce multi-lingual \
messages.
These tools include a set of conventions about how programs should \
be written to support message catalogs, a directory and file naming \
organization for the message catalogs themselves, a runtime library supporting \
the retrieval of translated messages, and a few stand-alone programs to \
massage in various ways the sets of translatable strings, or already \
translated strings. A special GNU Emacs mode also helps interested parties in \
preparing these sets, or bringing them up to date.
"
HOMEPAGE="http://www.gnu.org/software/gettext/"
COPYRIGHT="1998, 2010 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
REVISION="8"
SOURCE_URI="http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.1.1.tar.gz"
CHECKSUM_SHA256="93ac71a7afa5b70c1b1032516663658c51e653087f42a3fc8044752c026443e9"
PATCHES="gettext-0.18.1.1.patch"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
gettext$secondaryArchSuffix = $portVersion compat >= 0.18.1
cmd:autopoint$secondaryArchSuffix = $portVersion compat >= 0
cmd:envsubst$secondaryArchSuffix = $portVersion compat >= 0
cmd:gettext$secondaryArchSuffix = $portVersion compat >= 0
cmd:gettext.sh$secondaryArchSuffix = $portVersion compat >= 0
cmd:gettextize$secondaryArchSuffix = $portVersion compat >= 0
cmd:msgattrib$secondaryArchSuffix = $portVersion compat >= 0
cmd:msgcat$secondaryArchSuffix = $portVersion compat >= 0
cmd:msgcmp$secondaryArchSuffix = $portVersion compat >= 0
cmd:msgcomm$secondaryArchSuffix = $portVersion compat >= 0
cmd:msgconv$secondaryArchSuffix = $portVersion compat >= 0
cmd:msgen$secondaryArchSuffix = $portVersion compat >= 0
cmd:msgexec$secondaryArchSuffix = $portVersion compat >= 0
cmd:msgfilter$secondaryArchSuffix = $portVersion compat >= 0
cmd:msgfmt$secondaryArchSuffix = $portVersion compat >= 0
cmd:msggrep$secondaryArchSuffix = $portVersion compat >= 0
cmd:msginit$secondaryArchSuffix = $portVersion compat >= 0
cmd:msgmerge$secondaryArchSuffix = $portVersion compat >= 0
cmd:msgunfmt$secondaryArchSuffix = $portVersion compat >= 0
cmd:msguniq$secondaryArchSuffix = $portVersion compat >= 0
cmd:ngettext$secondaryArchSuffix = $portVersion compat >= 0
cmd:recode_sr_latin$secondaryArchSuffix = $portVersion compat >= 0
cmd:xgettext$secondaryArchSuffix = $portVersion compat >= 0
devel:libasprintf$secondaryArchSuffix = 0.0.0 compat >= 0
devel:libgettextlib$secondaryArchSuffix = $portVersion
devel:libgettextlib_0.18.1$secondaryArchSuffix = $portVersion
devel:libgettextpo$secondaryArchSuffix = 0.5.1 compat >= 0
devel:libgettextsrc$secondaryArchSuffix = $portVersion
devel:libgettextsrc_0.18.1$secondaryArchSuffix = $portVersion
devel:libintl$secondaryArchSuffix = 8.1.1 compat >= 8
lib:libasprintf$secondaryArchSuffix = 0.0.0 compat >= 0
lib:libgettextlib_0.18.1$secondaryArchSuffix = $portVersion
lib:libgettextpo$secondaryArchSuffix = 0.5.1 compat >= 0
lib:libgettextsrc_0.18.1$secondaryArchSuffix = $portVersion
"
REQUIRES="
gettext${secondaryArchSuffix}_libintl == $portVersion base
haiku$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
"
SUMMARY_libintl="The gettext internationalization library"
PROVIDES_libintl="
gettext${secondaryArchSuffix}_libintl = $portVersion compat >= 0.18.1
lib:libintl${secondaryArchSuffix} = 8.1.1 compat >= 8
"
REQUIRES_libintl="
haiku${secondaryArchSuffix}
lib:libiconv${secondaryArchSuffix}
"
BUILD_REQUIRES="
devel:libiconv$secondaryArchSuffix
devel:libncurses$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:makeinfo
"
BUILD()
{
libtoolize --force --copy --install
./autogen.sh --quick --skip-gnulib
runConfigure ./configure \
--disable-java --without-git
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/charset.alias
prepareInstalledDevelLibs libasprintf libgettextpo libintl
prepareInstalledDevelLib libgettextlib '*.so' '*'
prepareInstalledDevelLib libgettextsrc '*.so' '*'
# libintl package
packageEntries libintl \
$libDir/libintl*
}
TEST()
{
cd gettext-runtime/tests
make check
}

View File

@@ -20,8 +20,8 @@ SOURCE_URI="http://ftpmirror.gnu.org/gettext/gettext-$portVersion.tar.gz"
CHECKSUM_SHA256="ff942af0e438ced4a8b0ea4b0b6e0d6d657157c5e2364de57baa279c1c125c43"
PATCHES="gettext-$portVersion.patchset"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
ARCHITECTURES="?ALL x86_gcc2"
SECONDARY_ARCHITECTURES="x86_gcc2 ?x86"
PROVIDES="
gettext$secondaryArchSuffix = $portVersion compat >= 0.19

View File

@@ -16,18 +16,18 @@ COPYRIGHT="1998-2020 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://ftpmirror.gnu.org/gettext/gettext-$portVersion.tar.gz"
CHECKSUM_SHA256="ec1705b1e969b83a9f073144ec806151db88127f5e40fe5a94cb6c8fa48996a0"
CHECKSUM_SHA256="85d99b79c981a404874c02e0342176cf75c7698e2b51fe41031cf6526d974f1a"
ARCHITECTURES="all !x86_gcc2"
ARCHITECTURES="ALL !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libasprintfVersion="0.0.0"
libasprintfVersionCompat="$libasprintfVersion compat >= ${libasprintfVersion%%.*}"
libgettextpoVersion="0.5.10"
libgettextpoVersion="0.6.0"
libgettextpoVersionCompat="$libgettextpoVersion compat >= ${libgettextpoVersion%%.*}"
libtextstyleVersion="0.2.1"
libtextstyleVersion="0.2.7"
libtextstyleVersionCompat="$libtextstyleVersion compat >= ${libtextstyleVersion%%.*}"
libintlVersion="8.4.0"
libintlVersion="8.4.6"
libintlVersionCompat="$libintlVersion compat >= ${libintlVersion%%.*}"
PROVIDES="
@@ -49,10 +49,15 @@ PROVIDES="
cmd:msggrep$secondaryArchSuffix = $portVersion compat >= 0
cmd:msginit$secondaryArchSuffix = $portVersion compat >= 0
cmd:msgmerge$secondaryArchSuffix = $portVersion compat >= 0
cmd:msgpre$secondaryArchSuffix = $portVersion compat >= 0
cmd:po_fetch$secondaryArchSuffix = $portVersion compat >= 0
cmd:printf_gettext$secondaryArchSuffix = $portVersion compat >= 0
cmd:printf_ngettext$secondaryArchSuffix = $portVersion compat >= 0
cmd:msgunfmt$secondaryArchSuffix = $portVersion compat >= 0
cmd:msguniq$secondaryArchSuffix = $portVersion compat >= 0
cmd:ngettext$secondaryArchSuffix = $portVersion compat >= 0
cmd:recode_sr_latin$secondaryArchSuffix = $portVersion compat >= 0
cmd:spit$secondaryArchSuffix = $portVersion compat >= 0
cmd:xgettext$secondaryArchSuffix = $portVersion compat >= 0
lib:libasprintf$secondaryArchSuffix = $libasprintfVersionCompat
lib:libgettextlib_$portVersion$secondaryArchSuffix
@@ -104,6 +109,11 @@ REQUIRES_devel="
gettext$secondaryArchSuffix == $portVersion base
"
ARCHITECTURES_doc="any"
PROVIDES_doc="
gettext_doc
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libiconv$secondaryArchSuffix
@@ -125,7 +135,8 @@ BUILD_PREREQUIRES="
BUILD()
{
runConfigure ./configure \
runConfigure --omit-dirs docDir ./configure \
--docdir=$documentationDir/packages/gettext \
--disable-java \
--without-git \
--disable-rpath \
@@ -165,11 +176,14 @@ INSTALL()
# devel package
packageEntries devel \
$developDir \
$docDir \
$manDir/man3
# documentation package
packageEntries doc \
$documentationDir/packages
# cleanup
rmdir $documentationDir/packages
# rmdir $documentationDir/packages
}
TEST()

View File

@@ -1,11 +0,0 @@
--- gettext-0.18.1.1-orig/gettext-tools/gnulib-lib/binary-io.h 2010-05-24 09:42:36.028573696 +0000
+++ gettext-0.18.1.1/gettext-tools/gnulib-lib/binary-io.h 2012-08-03 20:17:21.155189248 +0000
@@ -31,7 +31,7 @@
# define O_BINARY _O_BINARY
# define O_TEXT _O_TEXT
#endif
-#if defined __BEOS__ || defined __HAIKU__
+#if defined __BEOS__
/* BeOS 5 and Haiku have O_BINARY and O_TEXT, but they have no effect. */
# undef O_BINARY
# undef O_TEXT

View File

@@ -1,11 +0,0 @@
--- gettext-0.18.1.1-orig/gettext-tools/gnulib-lib/binary-io.h 2010-05-24 09:42:36.028573696 +0000
+++ gettext-0.18.1.1/gettext-tools/gnulib-lib/binary-io.h 2012-08-03 20:17:21.155189248 +0000
@@ -31,7 +31,7 @@
# define O_BINARY _O_BINARY
# define O_TEXT _O_TEXT
#endif
-#if defined __BEOS__ || defined __HAIKU__
+#if defined __BEOS__
/* BeOS 5 and Haiku have O_BINARY and O_TEXT, but they have no effect. */
# undef O_BINARY
# undef O_TEXT