mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
dev-libs/uriparser: 1.0.3
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST uriparser-1.0.2.tar.bz2 222489 BLAKE2B f14b289fca8e0a19a1b04729fde157d85184a0c8e5ab21082906cce3de49c5976fbc927363f37e61c739245c63fe3bd851e61d50119aaafd1263277e27ce7595 SHA512 23cf062e10b70e3cababbbb52e20a7e3ca17ae2cba21125ab0587a3dbee562d12d727703567ce14cba90151712f2c4c9e911eda92245292ea3a1138f88dd09fd
|
||||
DIST uriparser-1.0.3.tar.bz2 224201 BLAKE2B 5dd39c26f22a9c7e66aaef0da4e6548703fad8be857a48e0fa411493eccb7a323643b33147efe37af944c46ee142bde8cafcca1bea9b214abe84215e8cf28c62 SHA512 ee8760b8d99707d32919f222e4348839aa5bf91c16dad86593654f966b0004165cf74f6c0044203a49f0175cd7e212008cefc329f831cff936d884c18de72407
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake qt-utils
|
||||
|
||||
DESCRIPTION="Strictly RFC 3986 compliant URI parsing library in C"
|
||||
HOMEPAGE="https://uriparser.github.io/"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="test? ( LGPL-2.1+ ) BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="doc qt6 test unicode"
|
||||
|
||||
REQUIRED_USE="qt6? ( doc ) test? ( unicode )"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
test? ( >=dev-cpp/gtest-1.8.1 )
|
||||
"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
doc? (
|
||||
>=app-text/doxygen-1.5.8
|
||||
media-gfx/graphviz
|
||||
qt6? ( dev-qt/qttools:6[assistant] )
|
||||
)
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog THANKS )
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DURIPARSER_BUILD_CHAR=ON
|
||||
-DURIPARSER_BUILD_DOCS=$(usex doc ON OFF)
|
||||
-DURIPARSER_BUILD_TESTS=$(usex test ON OFF)
|
||||
-DURIPARSER_BUILD_TOOLS=ON
|
||||
-DURIPARSER_BUILD_WCHAR_T=$(usex unicode ON OFF)
|
||||
)
|
||||
|
||||
if use doc; then
|
||||
if use qt6; then # bug #979154
|
||||
mycmakeargs+=( -DQHG_LOCATION="$(qt_get_broot_binary 6 qhelpgenerator)" )
|
||||
else
|
||||
mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Help=ON )
|
||||
fi
|
||||
fi
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
if use doc && use qt6; then
|
||||
dodoc "${BUILD_DIR}"/doc/*.qch
|
||||
docompress -x /usr/share/doc/${PF}/${P}.qch
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user