mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
95 lines
2.1 KiB
Bash
95 lines
2.1 KiB
Bash
SUMMARY="A strictly RFC 3986 compliant URI parsing library in C"
|
|
DESCRIPTION="uriparser is a strictly RFC 3986 compliant URI parsing and handling library written \
|
|
in C89 (ANSI C).
|
|
uriparser is cross-platform, fast, supports both char and wchar_t."
|
|
HOMEPAGE="https://uriparser.github.io/"
|
|
COPYRIGHT="2007 Weijia Song
|
|
2013 Radu Hociung
|
|
2007-2022 Sebastian Pipping"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/uriparser/uriparser/releases/download/uriparser-$portVersion/uriparser-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="d27dea0c8b6f6fb9798f07caedef1cd96a6e3fc5c6189596774e19afa7ddded7"
|
|
SOURCE_FILENAME="uriparser-$portVersion.tar.gz"
|
|
SOURCE_DIR="uriparser-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="1.0.30"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
uriparser$secondaryArchSuffix = $portVersion
|
|
cmd:uriparse$secondaryArchSuffix = $portVersion
|
|
lib:liburiparser$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
uriparser${secondaryArchSuffix}_devel = $portVersion
|
|
devel:liburiparser$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
uriparser$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
ARCHITECTURES_doc="any"
|
|
|
|
PROVIDES_doc="
|
|
uriparser_doc
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libgtest$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:dot
|
|
cmd:doxygen
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:qhelpgenerator$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage uriparser$secondaryArchSuffix \
|
|
"$libDir"/liburiparser.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
cmake -B build -S . \
|
|
$cmakeDirArgs \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DCMAKE_INSTALL_DOCDIR=$documentationDir/packages/uriparser \
|
|
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
rm -f "$libDir"/liburiparser.la
|
|
|
|
prepareInstalledDevelLib liburiparser
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
"$developDir" \
|
|
"$libDir"/cmake
|
|
|
|
packageEntries doc \
|
|
$documentationDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make -C build test
|
|
}
|