Files
haikuports/dev-libs/libunistring/libunistring-1.2.recipe
Jerome Duval f9e545b29e libunistring: bump version
keep 1.0 for compatibility
2024-03-13 11:10:36 +01:00

87 lines
2.0 KiB
Bash

SUMMARY="A library for manipulating Unicode strings"
DESCRIPTION="libunistring provides functions for manipulating Unicode strings \
and for manipulating C strings according to the Unicode standard."
HOMEPAGE="https://www.gnu.org/software/libunistring/"
COPYRIGHT="1998-2018 Free Software Fundation, Inc."
LICENSE="GNU GPL v2
GNU LGPL v3"
REVISION="1"
SOURCE_URI="https://ftpmirror.gnu.org/libunistring/libunistring-$portVersion.tar.gz
https://ftp.gnu.org/gnu/libunistring/libunistring-$portVersion.tar.gz"
CHECKSUM_SHA256="fd6d5662fa706487c48349a758b57bc149ce94ec6c30624ec9fdc473ceabbc8e"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="5.1.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libunistring$secondaryArchSuffix = $portVersion
lib:libunistring$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
"
PROVIDES_devel="
libunistring${secondaryArchSuffix}_devel = $portVersion
devel:libunistring$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libunistring$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libiconv$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoreconf
cmd:gcc$secondaryArchSuffix
cmd:gperf
cmd:libtoolize$secondaryArchSuffix
cmd:make
"
defineDebugInfoPackage libunistring$secondaryArchSuffix \
"$libDir"/libunistring.so.$libVersion
BUILD()
{
autoreconf -fi
if [ -n "$secondaryArchSuffix" ]; then
runConfigure ./configure --disable-static
else
runConfigure --omit-dirs docDir ./configure \
--disable-static \
--docdir="$developDocDir"
fi
make $jobArgs
}
INSTALL()
{
make install
rm -f "$libDir"/libunistring.la "$libDir"/charset.alias
if [ -n "$secondaryArchSuffix" ]; then
rm -rf "$documentationDir"
maybe_infoDir=
else
install -t "$developDocDir" README
maybe_infoDir="$infoDir"
fi
prepareInstalledDevelLib libunistring
packageEntries devel \
"$developDir" \
${maybe_infoDir:+"$maybe_infoDir"}
}
TEST()
{
make check
}