1SUMMARY="A strictly RFC 3986 compliant URI parsing library in C" 2DESCRIPTION="uriparser is a strictly RFC 3986 compliant URI parsing and handling library written \ 3in C89 (ANSI C). 4uriparser is cross-platform, fast, supports both char and wchar_t." 5HOMEPAGE="https://uriparser.github.io/" 6COPYRIGHT="2007 Weijia Song 7 2013 Radu Hociung 8 2007-2022 Sebastian Pipping" 9LICENSE="BSD (3-clause)" 10REVISION="1" 11SOURCE_URI="https://github.com/uriparser/uriparser/releases/download/uriparser-$portVersion/uriparser-$portVersion.tar.bz2" 12CHECKSUM_SHA256="d27dea0c8b6f6fb9798f07caedef1cd96a6e3fc5c6189596774e19afa7ddded7" 13SOURCE_FILENAME="uriparser-$portVersion.tar.gz" 14SOURCE_DIR="uriparser-$portVersion" 15 16ARCHITECTURES="all !x86_gcc2" 17SECONDARY_ARCHITECTURES="x86" 18 19libVersion="1.0.30" 20libVersionCompat="$libVersion compat >= ${libVersion%%.*}" 21 22PROVIDES=" 23 uriparser$secondaryArchSuffix = $portVersion 24 cmd:uriparse$secondaryArchSuffix = $portVersion 25 lib:liburiparser$secondaryArchSuffix = $libVersionCompat 26 " 27REQUIRES=" 28 haiku$secondaryArchSuffix 29 lib:libgtest$secondaryArchSuffix 30 " 31 32PROVIDES_devel=" 33 uriparser${secondaryArchSuffix}_devel = $portVersion 34 devel:liburiparser$secondaryArchSuffix = $libVersionCompat 35 " 36REQUIRES_devel=" 37 uriparser$secondaryArchSuffix == $portVersion base 38 " 39 40BUILD_REQUIRES=" 41 haiku${secondaryArchSuffix}_devel 42 devel:libgtest$secondaryArchSuffix 43 " 44BUILD_PREREQUIRES=" 45 cmd:cmake 46 cmd:dot 47 cmd:doxygen 48 cmd:gcc$secondaryArchSuffix 49 cmd:libtoolize$secondaryArchSuffix 50 cmd:make 51 cmd:pkg_config$secondaryArchSuffix 52 cmd:qhelpgenerator$secondaryArchSuffix 53 " 54 55defineDebugInfoPackage uriparser$secondaryArchSuffix \ 56 "$libDir"/liburiparser.so.$libVersion 57 58BUILD() 59{ 60 cmake -B build -S . \ 61 $cmakeDirArgs \ 62 -DCMAKE_BUILD_TYPE=Release 63 make -C build $jobArgs 64} 65 66INSTALL() 67{ 68 make -C build install 69 70 rm -f "$libDir"/liburiparser.la 71 72 prepareInstalledDevelLib liburiparser 73 fixPkgconfig 74 75 packageEntries devel \ 76 "$developDir" \ 77 "$libDir"/cmake 78} 79 80TEST() 81{ 82 make -C build test 83} 84