84 lines
1.8 KiB
Bash
84 lines
1.8 KiB
Bash
SUMMARY="A strictly RFC 3986 compliant URI parsing library in C"
|
|
DESCRIPTION="Uriparser is a strictly RFC 3986 compliant URI parsing library \
|
|
written in C."
|
|
HOMEPAGE="https://uriparser.github.io/"
|
|
COPYRIGHT="2007 Weijia Song
|
|
2013 Radu Hociung
|
|
2007-2020 Sebastian Pipping"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/uriparser/uriparser/releases/download/uriparser-$portVersion/uriparser-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="b7cdabe5611408fc2c3a10f8beecb881a0c7e93ff669c578cd9e3e6d64b8f87b"
|
|
SOURCE_FILENAME="uriparser-$portVersion.tar.gz"
|
|
SOURCE_DIR="uriparser-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="1.0.27"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
uriparser$secondaryArchSuffix = $portVersion
|
|
cmd:uriparse$secondaryArchSuffix = $portVersion
|
|
lib:liburiparser$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libgtest$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
uriparser${secondaryArchSuffix}_devel = $portVersion
|
|
devel:liburiparser$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
uriparser$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
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()
|
|
{
|
|
mkdir -p build && cd build
|
|
|
|
cmake .. $cmakeDirArgs
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
make install
|
|
|
|
rm -f "$libDir"/liburiparser.la
|
|
|
|
prepareInstalledDevelLib liburiparser
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
"$developDir"
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
cd build
|
|
make test
|
|
}
|