mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
84 lines
1.9 KiB
Bash
84 lines
1.9 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="8ea8ccf86c09dd801c8cac19878e804e54f707cf69884371130d20bde68386b7"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="5.2.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
|
|
"
|
|
|
|
ARCHITECTURES_doc="any"
|
|
|
|
PROVIDES_doc="
|
|
libunistring_doc = $portVersion
|
|
"
|
|
|
|
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()
|
|
{
|
|
runConfigure --omit-dirs docDir ./configure \
|
|
--disable-static \
|
|
--docdir=$developDir/documentation/libunistring
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
rm -f "$libDir"/libunistring.la "$libDir"/charset.alias
|
|
|
|
prepareInstalledDevelLib libunistring
|
|
|
|
packageEntries doc \
|
|
$developDir/documentation
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$infoDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|