Files
haikuports/dev-libs/libutf8proc/libutf8proc2-2.4.0.recipe
2019-07-13 19:14:00 -04:00

76 lines
1.9 KiB
Bash

SUMMARY="A library for processing UTF-8 encoded Unicode strings"
DESCRIPTION="utf8proc is a small, clean C library that provides Unicode \
normalization, case-folding, and other operations for data in the UTF-8 \
encoding, supporting Unicode version 7.0."
HOMEPAGE="https://julialang.org/utf8proc/"
COPYRIGHT="2006-2019 Public Software Group
2014-2019 Steven G. Johnson, Jiahao Chen, Tony Kelman, Jonas Fonseca, \
and other contributors listed in the git history"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/JuliaStrings/utf8proc/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="b2e5d547c1d94762a6d03a7e05cea46092aab68636460ff8648f1295e2cdfbd7"
SOURCE_FILENAME="utf8proc-$portVersion.tar.gz"
SOURCE_DIR="utf8proc-$portVersion"
PATCHES="libutf8proc2-$portVersion.patchset"
ARCHITECTURES="?x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
libVersion="2.3.1"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libutf8proc2$secondaryArchSuffix = $portVersion
lib:libutf8proc$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libutf8proc2${secondaryArchSuffix}_devel = $portVersion
devel:libutf8proc$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libutf8proc2$secondaryArchSuffix == $portVersion base
"
CONFLICTS_devel="
libutf8proc${secondaryArchSuffix}_devel
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
"
defineDebugInfoPackage libutf8proc2$secondaryArchSuffix \
$libDir/libutf8proc.so.$libVersion
BUILD()
{
mkdir -p build_haiku && cd build_haiku
cmake .. \
-DBUILD_SHARED_LIBS=ON \
$cmakeDirArgs
}
INSTALL()
{
cd build_haiku
make install
prepareInstalledDevelLib libutf8proc
packageEntries devel $developDir
}
TEST()
{
cd build_haiku
# make check # test cases not supported yet with cmake
}