commit:     efead535a9d1fd0339c64491b834a25bb8c2974e
Author:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
AuthorDate: Wed Sep  3 21:49:39 2025 +0000
Commit:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Wed Sep  3 21:49:56 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efead535

dev-libs/uriparser: 0.9.9

Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>

 dev-libs/uriparser/Manifest               |  1 +
 dev-libs/uriparser/uriparser-0.9.9.ebuild | 57 +++++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+)

diff --git a/dev-libs/uriparser/Manifest b/dev-libs/uriparser/Manifest
index 9921beae525d..bf72ecc2d98b 100644
--- a/dev-libs/uriparser/Manifest
+++ b/dev-libs/uriparser/Manifest
@@ -1 +1,2 @@
 DIST uriparser-0.9.8.tar.bz2 180690 BLAKE2B 
75c115fc6d89ffb44a7ff4899b9a89394fdc6e49e9d374836e548cf75d7aed314406ec9abcc29410a66038aa670636e44cf97305c1ca8b6f472af444ffed9167
 SHA512 
41377e27f92345442cafa4e443485808c286430fcb5ce2354a683344e744786a170f443425f304bdb5a152edf96a3412f203eabe4fb3345a369e6d69f3d97e40
+DIST uriparser-0.9.9.tar.bz2 215434 BLAKE2B 
15316a21bab5edd1cea0d2c5057ff62bce609b44a64ec7c3369696dc18b741cb460d645c1eb4bbbe0b924a99918016dee6b1739e0d11f6f48b36809545aa0500
 SHA512 
1c4ac63e7a872fdc7ce84ee5e8736dcafe58242b80218a3457bdcd1b358bfec5437658e2ad99427c6d94b14b30c7f7c3d059b9d106cd1a7149adf23e77072de6

diff --git a/dev-libs/uriparser/uriparser-0.9.9.ebuild 
b/dev-libs/uriparser/uriparser-0.9.9.ebuild
new file mode 100644
index 000000000000..a10eafbc568f
--- /dev/null
+++ b/dev-libs/uriparser/uriparser-0.9.9.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+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="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux 
~ppc-macos"
+IUSE="+doc qt5 test unicode"  # +doc to address warning RequiredUseDefaults
+
+REQUIRED_USE="qt5? ( 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
+               qt5? ( dev-qt/qthelp:5 )
+       )
+"
+
+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)
+
+               # The usex wrapper is here to address this warning:
+               #   One or more CMake variables were not used by the project:
+               #   CMAKE_DISABLE_FIND_PACKAGE_Qt5Help
+               $(usex doc "$(cmake_use_find_package qt5 Qt5Help)")
+       )
+       cmake_src_configure
+}
+
+src_install() {
+       cmake_src_install
+
+       if use doc && use qt5; then
+               dodoc "${BUILD_DIR}"/doc/*.qch
+               docompress -x /usr/share/doc/${PF}/${P}.qch
+       fi
+}

Reply via email to