summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-libs/gumbo/Manifest1
-rw-r--r--dev-libs/gumbo/gumbo-0.13.2.ebuild44
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-libs/gumbo/Manifest b/dev-libs/gumbo/Manifest
index 52cecfec9f49..002c61e8a6d2 100644
--- a/dev-libs/gumbo/Manifest
+++ b/dev-libs/gumbo/Manifest
@@ -1 +1,2 @@
DIST gumbo-0.13.1.tar.gz 2115080 BLAKE2B f6fd8fa818b58adbf6ed9d7ffe1d44a2d9902570addd6fe1c384273c965d345ba04f7a09ccb7860c2d065f5ee2a9193140ea753b08261bf8f3077d69a90bfc85 SHA512 22bdaac728e79fb176ea82d40bfab77500a85952d731f832ffa6defb48264a1f108a9bbde19fd60e9d829d23059feab0744b4dabf887997596892b815cb26f17
+DIST gumbo-0.13.2.tar.gz 2145403 BLAKE2B 543b40f70707fa8c4325312b2e7f0d47e7fe579446532a52ccc5d163a69d43f783a279d84969a663422794b33fb669ca3839649d77095cd2886ba9d19a176e02 SHA512 1513e88acfc3240081039b30ab63ca6fc23a85b7d1415cb8e90e9c43f9c3d99d37634a7a50d81ef7f6d43a4facac3802feea6959256a2330b26b16523a288568
diff --git a/dev-libs/gumbo/gumbo-0.13.2.ebuild b/dev-libs/gumbo/gumbo-0.13.2.ebuild
new file mode 100644
index 000000000000..6502d7a70e18
--- /dev/null
+++ b/dev-libs/gumbo/gumbo-0.13.2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson
+
+DESCRIPTION="The HTML5 parsing algorithm implemented as a pure C99 library"
+HOMEPAGE="https://codeberg.org/gumbo-parser/gumbo-parser"
+SRC_URI="https://codeberg.org/grisha/gumbo-parser/archive/${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/gumbo-parser"
+
+LICENSE="Apache-2.0"
+SLOT="0/3" # gumbo SONAME
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
+
+DEPEND="test? ( dev-cpp/gtest )"
+BDEPEND="doc? ( app-text/doxygen )"
+
+src_configure() {
+ local emesonargs=(
+ $(meson_use test tests)
+ -Ddefault_library=shared
+ )
+
+ meson_src_configure
+}
+
+src_compile() {
+ meson_src_compile
+
+ if use doc; then
+ doxygen || die "doxygen failed"
+ HTML_DOCS=( docs/html/. )
+ fi
+}
+
+src_install() {
+ meson_src_install
+
+ use doc && doman docs/man/man3/*
+}