mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
97 lines
2.3 KiB
Bash
97 lines
2.3 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 13."
|
|
HOMEPAGE="https://julialang.org/utf8proc/"
|
|
COPYRIGHT="2009-2013 Public Software Group e. V., Berlin, Germany
|
|
2014-2021 Steven G. Johnson, Jiahao Chen, Tony Kelman, Jonas Fonseca, \
|
|
and other contributors listed in the git history
|
|
1991-2007 Unicode"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/JuliaStrings/utf8proc/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="abfed50b6d4da51345713661370290f4f4747263ee73dc90356299dfc7990c78"
|
|
SOURCE_FILENAME="utf8proc-$portVersion.tar.gz"
|
|
SOURCE_DIR="utf8proc-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="3.2.3"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libutf8proc$secondaryArchSuffix = $portVersion
|
|
lib:libutf8proc$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
REPLACES="
|
|
libutf8proc2$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libutf8proc${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libutf8proc$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libutf8proc$secondaryArchSuffix == $portVersion base
|
|
"
|
|
CONFLICTS_devel="
|
|
libutf8proc${secondaryArchSuffix}_devel
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
defineDebugInfoPackage libutf8proc$secondaryArchSuffix \
|
|
$libDir/libutf8proc.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
cmake -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
$cmakeDirArgs \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DUTF8PROC_ENABLE_TESTING=OFF
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
prepareInstalledDevelLib \
|
|
libutf8proc
|
|
|
|
# create pkgconfig file
|
|
mkdir -p $developLibDir/pkgconfig
|
|
cat > $developLibDir/pkgconfig/libutf8proc.pc << EOF
|
|
prefix=${prefix}
|
|
exec_prefix=${prefix}
|
|
libdir=${libDir}
|
|
includedir=${includeDir}
|
|
|
|
Name: libutf8proc
|
|
Description: UTF8 processing
|
|
Version: $portVersion
|
|
Libs: -L${developLibDir} -lutf8proc
|
|
Cflags: -I${includeDir} -DUTF8PROC_EXPORTS
|
|
EOF
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
ctest --test-dir build --output-on-failure
|
|
}
|