diff options
Diffstat (limited to 'dev-libs/uriparser')
-rw-r--r-- | dev-libs/uriparser/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/uriparser/files/uriparser-0.9.8-docs-compilation.patch | 13 | ||||
-rw-r--r-- | dev-libs/uriparser/uriparser-0.9.8-r1.ebuild | 61 |
3 files changed, 76 insertions, 0 deletions
diff --git a/dev-libs/uriparser/Manifest b/dev-libs/uriparser/Manifest index 06dab42ee371..f5eeba3820ea 100644 --- a/dev-libs/uriparser/Manifest +++ b/dev-libs/uriparser/Manifest @@ -1,5 +1,7 @@ +AUX uriparser-0.9.8-docs-compilation.patch 486 BLAKE2B 6e2103b365cd05ab499a48f4d7445a7ec1d90328a4cfd2f753196228afc5f16a3600212c1febba3a536fd88428294269e7331110e936d748d8a4ede65e4dffeb SHA512 25503b7a4476a5cbdfeac7e90d8477ee0965ca3fc17bc14f32e064a31ad4fd2f10c57753895bc2ab0d72681184ecf8d38e6c7a879b5fedc620775e477b49cb83 DIST uriparser-0.9.7.tar.bz2 179989 BLAKE2B 50d04df0024f2ad926072a06d92066025c12528853e784f28bf311a64eb37b619634fa14265cadf55e514810804adeefb7dea841178f916ccdbd086a897d375b SHA512 7f69c9806665745c1bafe11f818434e27c2da03af387f009ef46c1427af8c008faa45e6f49bece66e0b96fd17b3924ba0af25476e796972c5e4b651f35f74c13 DIST uriparser-0.9.8.tar.bz2 180690 BLAKE2B 75c115fc6d89ffb44a7ff4899b9a89394fdc6e49e9d374836e548cf75d7aed314406ec9abcc29410a66038aa670636e44cf97305c1ca8b6f472af444ffed9167 SHA512 41377e27f92345442cafa4e443485808c286430fcb5ce2354a683344e744786a170f443425f304bdb5a152edf96a3412f203eabe4fb3345a369e6d69f3d97e40 EBUILD uriparser-0.9.7.ebuild 1395 BLAKE2B 1b10f495b8d4fcdf15b3f6df3f9d5314e0070682d63cf2d0752ab42eb754f2a35ec5ddb8035eb63d16e62bc59ba14d8afebb55aee819208ebdff01efbf6b3372 SHA512 2c9e4688ef2ee7585fb29fd07f97f9157af700ea46d618a9513ced8605d303162d4b0bc60b73731e10fb6e464bd49cb01db2b7711acf2207e48c2112f67a25e0 +EBUILD uriparser-0.9.8-r1.ebuild 1457 BLAKE2B 76b1490fc94bbc239ad9bb84e148b157a7a55131fb2e75e9250b42d810b2c89ee57a3b12065f823d3859a4f5145e84815642783d77a93b8e3b5bd2e5efab773c SHA512 f4fde7109778f996f925bb29f6302b2003eab3ff005e621a21faba198229b44c1b233e299acbd14e6a59cdc53a60227ccb2d979ac4de6205795084ce23ecf772 EBUILD uriparser-0.9.8.ebuild 1395 BLAKE2B 1b10f495b8d4fcdf15b3f6df3f9d5314e0070682d63cf2d0752ab42eb754f2a35ec5ddb8035eb63d16e62bc59ba14d8afebb55aee819208ebdff01efbf6b3372 SHA512 2c9e4688ef2ee7585fb29fd07f97f9157af700ea46d618a9513ced8605d303162d4b0bc60b73731e10fb6e464bd49cb01db2b7711acf2207e48c2112f67a25e0 MISC metadata.xml 850 BLAKE2B b9c183dbc3eef48a014ad0f99175e5fff7c3dfb175c99057ab2ebb11763422cc681571b6850d63373ed91e425a91d3ec21f45a69d026368f4d610c9caeec00df SHA512 af788632dc823c16bc0dd5325c468d41c3e4b33b48545adec273f14c23477a6d177c014fdcf8539fda0d222474f6f6362fef5882e1d1f5931d62433fccf8dc28 diff --git a/dev-libs/uriparser/files/uriparser-0.9.8-docs-compilation.patch b/dev-libs/uriparser/files/uriparser-0.9.8-docs-compilation.patch new file mode 100644 index 000000000000..fbf298e6a7cd --- /dev/null +++ b/dev-libs/uriparser/files/uriparser-0.9.8-docs-compilation.patch @@ -0,0 +1,13 @@ +diff --git a/doc/preprocess.sh b/doc/preprocess.sh +index c77bb6a..6ee75f2 100755 +--- a/doc/preprocess.sh ++++ b/doc/preprocess.sh +@@ -1,4 +1,6 @@ + #! /usr/bin/env bash + # Run GCC preprocessor and delete empty lines +-: ${CPP:=cpp} +-"${CPP}" -DURI_DOXYGEN -DURI_NO_UNICODE -C -I ../include "$1" | sed -e '/^$/d' -e 's/COMMENT_HACK//g' ++: ${CC:=cc} ++PS4='doc/preprocess.sh|# ' ++set -x ++"${CC}" -E -DURI_DOXYGEN -DURI_NO_UNICODE -C -I ../include "$1" | sed -e '/^$/d' -e 's/COMMENT_HACK//g' diff --git a/dev-libs/uriparser/uriparser-0.9.8-r1.ebuild b/dev-libs/uriparser/uriparser-0.9.8-r1.ebuild new file mode 100644 index 000000000000..984256a19ba3 --- /dev/null +++ b/dev-libs/uriparser/uriparser-0.9.8-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2024 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 ) + ) +" + +PATCHES=( + "${FILESDIR}"/${P}-docs-compilation.patch +) + +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 +} |