gettext-dev .bep which works on current Haiku nightlies. Significantly

simpler than the previous attempt from Alpha 3, passes as many tests as 
the runtime and appears functional when used by other ports that depend on it.
This commit is contained in:
Cian Duffy
2012-08-03 21:34:38 +00:00
parent f91d9937f0
commit 8448d7fbdf
2 changed files with 19 additions and 38 deletions

View File

@@ -1,50 +1,22 @@
DESCRIPTION="gettext"
DESCRIPTION="gettext-dev - full tools included"
HOMEPAGE="http://www.gnu.org/software/gettext/"
SRC_URI="http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.1.1.tar.gz"
CHECKSUM_MD5="3dd55b952826d2b32f51308f2f91aa89"
REVISION="1"
STATUS_HAIKU="broken"
DEPEND="dev-libs/gnulib = 9999"
REVISION="2"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd gettext-0.18.1.1
if [ ! -e `haikuporter -t`/dev-libs/gnulib/work/gnulib-9999 ] ; then
echo "gnulib not found, so updating it now..."
haikuporter -i gnulib
fi
echo "Copying gnulib to gettext work directory..."
cp -a `haikuporter -t`/dev-libs/gnulib/work/gnulib-9999/lib/binary* gettext-tools/gnulib-lib/
cp -a `haikuporter -t`/dev-libs/gnulib/work/gnulib-9999/lib/fseek* gettext-tools/gnulib-lib/
cp -a `haikuporter -t`/dev-libs/gnulib/work/gnulib-9999/lib/iswblank* gettext-tools/gnulib-lib/
cp -a `haikuporter -t`/dev-libs/gnulib/work/gnulib-9999/lib/fcntl* gettext-tools/gnulib-lib/
cp -a build-aux gettext-tools/
cd gettext-tools
echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.ac
libtoolize --force --copy --install
cd ..
libtoolize --force --copy --install
sed -i 's/AC_INIT/AC_INIT([gettext],[0.18.1.1])/' configure.ac
./autogen.sh --quick --skip-gnulib
cd gettext-runtime
sed -i 's/AC_INIT/AC_INIT([gettext-runtime],[0.18.1.1])/' configure.ac
sed -i 's/gl_INIT_PACKAGE/dnl gl_INIT_PACKAGE was here/' configure.ac
sed -i 's/gl_WOE32_DLL/dnl gl_WOE32_DLL was here/' configure.ac
echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.ac
libtoolize --force --copy --install
autoconf -Wnone
aclocal -I m4 -I gnulib-m4 --install --force
libtoolize --force --copy --install
autoconf -Wnone
export EXTRA_CONF="--disable-java"
cd ../
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--disable-java --without-git \
--datarootdir=`finddir B_COMMON_DATA_DIRECTORY` \
--docdir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/doc \
--docdir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/doc/gettext \
--infodir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/info \
--localedir=`finddir B_COMMON_DATA_DIRECTORY`/locale \
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
make
make
}
INSTALL {
@@ -53,9 +25,7 @@ INSTALL {
}
TEST {
cd gettext-0.18.1.1/gettext-tools
make check
cd ../gettext-0.18.1.1/gettext-runtime
cd gettext-0.18.1.1/gettext-runtime/tests
make check
}

View File

@@ -0,0 +1,11 @@
--- 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