mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
libunistring: bump version
keep 1.0 for compatibility
This commit is contained in:
@@ -5,20 +5,19 @@ HOMEPAGE="https://www.gnu.org/software/libunistring/"
|
||||
COPYRIGHT="1998-2018 Free Software Fundation, Inc."
|
||||
LICENSE="GNU GPL v2
|
||||
GNU LGPL v3"
|
||||
REVISION="2"
|
||||
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="3c0184c0e492d7c208ce31d25dd1d2c58f0c3ed6cbbe032c5b248cddad318544"
|
||||
CHECKSUM_SHA256="fd6d5662fa706487c48349a758b57bc149ce94ec6c30624ec9fdc473ceabbc8e"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="2.2.0"
|
||||
libVersion="5.1.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
portVersionCompat="$portVersion compat >= ${portVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
libunistring$secondaryArchSuffix = $portVersionCompat
|
||||
libunistring$secondaryArchSuffix = $portVersion
|
||||
lib:libunistring$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
78
dev-libs/libunistring/libunistring2-1.0.recipe
Normal file
78
dev-libs/libunistring/libunistring2-1.0.recipe
Normal file
@@ -0,0 +1,78 @@
|
||||
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="3c0184c0e492d7c208ce31d25dd1d2c58f0c3ed6cbbe032c5b248cddad318544"
|
||||
SOURCE_DIR="libunistring-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="2.2.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
libunistring2$secondaryArchSuffix = $portVersion
|
||||
lib:libunistring$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:autoreconf
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:gperf
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
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
|
||||
rm -rf \
|
||||
"$developDir" \
|
||||
${maybe_infoDir:+"$maybe_infoDir"}
|
||||
|
||||
strip "$libDir"/libunistring.so.$libVersion
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user