summaryrefslogtreecommitdiff
path: root/dev-libs/gumbo
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-09-11 01:41:34 -0500
committerroot <root@alpha.trunkmasters.com>2026-09-11 01:41:34 -0500
commitfc39c62a8944e95c0ecccfc9781763822b23e66c (patch)
tree11feafa0dbddccf6fcd9dabb290b0ce5faafec36 /dev-libs/gumbo
parent98068fb4a1502cade02134b1834439134ca4eed1 (diff)
downloadbaldeagleos-repo-fc39c62a8944e95c0ecccfc9781763822b23e66c.tar.gz
baldeagleos-repo-fc39c62a8944e95c0ecccfc9781763822b23e66c.tar.xz
baldeagleos-repo-fc39c62a8944e95c0ecccfc9781763822b23e66c.zip
Adding metadata
Diffstat (limited to 'dev-libs/gumbo')
-rw-r--r--dev-libs/gumbo/Manifest2
-rw-r--r--dev-libs/gumbo/files/gumbo-0.13.1-PR12-default_library.patch37
-rw-r--r--dev-libs/gumbo/files/gumbo-0.13.1-gtest.patch52
-rw-r--r--dev-libs/gumbo/gumbo-0.13.1.ebuild49
-rw-r--r--dev-libs/gumbo/gumbo-0.14.0.ebuild96
5 files changed, 97 insertions, 139 deletions
diff --git a/dev-libs/gumbo/Manifest b/dev-libs/gumbo/Manifest
index 52d902fe08f1..a83db7f2a9bd 100644
--- a/dev-libs/gumbo/Manifest
+++ b/dev-libs/gumbo/Manifest
@@ -1,3 +1,3 @@
-DIST gumbo-0.13.1.tar.gz 2115080 BLAKE2B f6fd8fa818b58adbf6ed9d7ffe1d44a2d9902570addd6fe1c384273c965d345ba04f7a09ccb7860c2d065f5ee2a9193140ea753b08261bf8f3077d69a90bfc85 SHA512 22bdaac728e79fb176ea82d40bfab77500a85952d731f832ffa6defb48264a1f108a9bbde19fd60e9d829d23059feab0744b4dabf887997596892b815cb26f17
DIST gumbo-0.13.2.tar.gz 2145403 BLAKE2B 543b40f70707fa8c4325312b2e7f0d47e7fe579446532a52ccc5d163a69d43f783a279d84969a663422794b33fb669ca3839649d77095cd2886ba9d19a176e02 SHA512 1513e88acfc3240081039b30ab63ca6fc23a85b7d1415cb8e90e9c43f9c3d99d37634a7a50d81ef7f6d43a4facac3802feea6959256a2330b26b16523a288568
+DIST gumbo-0.14.0.tar.gz 2183950 BLAKE2B 1c315f41286fdc92a1e5ac1a0a0ae3889b58994acd811f2c2dcf453c0e1f5be1fb419bcc96b10e1e69b215ee0d3065344bd4f2cebf47a2acbad571eb207bf7e8 SHA512 612b570bfa4029272bc4b8d4ff43f6023e03a2a2ac6ba299fa6d0818dc112df84ef98908ef9102801dbf847e93cc6e1f8c976e2f9f782199d6785cb28db8dbb5
DIST html5lib-tests-a9f44960a9fedf265093d22b2aa3c7ca123727b9.tar.gz 160357 BLAKE2B 95ce3ed28d81c3ce63eab972127232924dcdb5b0185b59e88469e615c442a4757d7f332f26cf5687a98bdf4fcd114fc9b7a5bfd10a9f90b378eb4211fd52a3a1 SHA512 03fc450a5298d7ee41189576d7cea493cefca491e32a26f6ea5b7e701c1ba41e50c6472130aa3e2191498c0e26f0c69bffa08e3f9ae12b2df11650cefa83a5b8
diff --git a/dev-libs/gumbo/files/gumbo-0.13.1-PR12-default_library.patch b/dev-libs/gumbo/files/gumbo-0.13.1-PR12-default_library.patch
deleted file mode 100644
index cff11c61287e..000000000000
--- a/dev-libs/gumbo/files/gumbo-0.13.1-PR12-default_library.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 3cd89bccda2b2e788f6489dcc84bc7e331caf800 Mon Sep 17 00:00:00 2001
-From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
-Date: Mon, 12 May 2025 22:38:56 +0200
-Subject: [PATCH] meson.build: Use default_library=both instead of
- both_libraries
-
-Allows distros to set -Ddefault_library=shared when a static
-library isn't warranted.
----
- meson.build | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/meson.build b/meson.build
-index 1f79aae..39a6c9a 100644
---- a/meson.build
-+++ b/meson.build
-@@ -2,7 +2,7 @@ project(
- 'gumbo-parser',
- 'c',
- version: '0.13.1',
-- default_options: ['c_std=c99', 'cpp_std=c++14']
-+ default_options: ['c_std=c99', 'cpp_std=c++14', 'default_library=both']
- )
-
- gumbo_src = files(
-@@ -19,7 +19,7 @@ gumbo_src = files(
- 'src/vector.c',
- )
-
--libgumbo = both_libraries('gumbo', gumbo_src, version: '3.0.0', install: true)
-+libgumbo = library('gumbo', gumbo_src, version: '3.0.0', install: true)
-
- install_headers('src/gumbo.h', 'src/tag_enum.h')
-
---
-2.45.2
-
diff --git a/dev-libs/gumbo/files/gumbo-0.13.1-gtest.patch b/dev-libs/gumbo/files/gumbo-0.13.1-gtest.patch
deleted file mode 100644
index 2e5164b8e630..000000000000
--- a/dev-libs/gumbo/files/gumbo-0.13.1-gtest.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-https://codeberg.org/gumbo-parser/gumbo-parser/commit/22182be87a5bcb2e9ab46562ccf59d30e7771b92
-
-From 22182be87a5bcb2e9ab46562ccf59d30e7771b92 Mon Sep 17 00:00:00 2001
-From: Grigory Kirillov <txgk@bk.ru>
-Date: Wed, 28 May 2025 09:25:40 +0300
-Subject: [PATCH] meson.build: fix compilation with gtest which requires C++17
- now
-
----
- meson.build | 7 ++++---
- 1 file changed, 4 insertions(+), 3 deletions(-)
-
-diff --git a/meson.build b/meson.build
-index 39a6c9a..6615119 100644
---- a/meson.build
-+++ b/meson.build
-@@ -2,7 +2,7 @@ project(
- 'gumbo-parser',
- 'c',
- version: '0.13.1',
-- default_options: ['c_std=c99', 'cpp_std=c++14', 'default_library=both']
-+ default_options: ['c_std=c99', 'default_library=both']
- )
-
- gumbo_src = files(
-@@ -27,7 +27,7 @@ pkg = import('pkgconfig')
- pkg.generate(libgumbo, filebase: 'gumbo', name: 'Gumbo', description: 'A fully-compliant HTML5 parser.')
-
- if get_option('tests')
-- add_languages('cpp')
-+ add_languages('cpp', native: false)
-
- # TODO: Fallback in case gtest isn't installed
- gtest_main = dependency('gtest_main')
-@@ -47,6 +47,7 @@ if get_option('tests')
- gumbo_test = executable(
- 'gumbo_test',
- gumbo_test_src,
-+ cpp_args: ['-std=c++17'],
- link_with: [libgumbo],
- include_directories: ['src'],
- dependencies: [gtest_main],
-@@ -57,7 +58,7 @@ if get_option('tests')
- endif
-
- if get_option('examples')
-- add_languages('cpp')
-+ add_languages('cpp', native: false)
-
- example_src = files(
- 'examples/clean_text.cc',
-
diff --git a/dev-libs/gumbo/gumbo-0.13.1.ebuild b/dev-libs/gumbo/gumbo-0.13.1.ebuild
deleted file mode 100644
index 92517d769b11..000000000000
--- a/dev-libs/gumbo/gumbo-0.13.1.ebuild
+++ /dev/null
@@ -1,49 +0,0 @@
-# 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 ~x64-macos ~x64-solaris"
-IUSE="doc test"
-RESTRICT="!test? ( test )"
-
-DEPEND="test? ( dev-cpp/gtest )"
-BDEPEND="doc? ( app-text/doxygen )"
-
-PATCHES=(
- "${FILESDIR}/gumbo-0.13.1-PR12-default_library.patch"
- "${FILESDIR}/gumbo-0.13.1-gtest.patch"
-)
-
-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/*
-}
diff --git a/dev-libs/gumbo/gumbo-0.14.0.ebuild b/dev-libs/gumbo/gumbo-0.14.0.ebuild
new file mode 100644
index 000000000000..32eed024aab6
--- /dev/null
+++ b/dev-libs/gumbo/gumbo-0.14.0.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{13..14} )
+DISTUTILS_USE_PEP517=setuptools
+DISTUTILS_OPTIONAL=1
+DISTUTILS_SINGLE_IMPL=1
+inherit meson distutils-r1
+
+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/4" # gumbo SONAME
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos ~x64-solaris"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="test? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="test? ( ${PYTHON_DEPS} )"
+DEPEND="test? ( dev-cpp/gtest )"
+BDEPEND="
+ doc? ( app-text/doxygen )
+ test? (
+ ${PYTHON_DEPS}
+ ${DISTUTILS_DEPS}
+ $(python_gen_cond_dep 'dev-python/beautifulsoup4[${PYTHON_USEDEP}]')
+ )
+"
+
+distutils_enable_tests unittest
+
+pkg_setup() {
+ use test && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ use test && distutils-r1_src_prepare
+}
+
+src_configure() {
+ # -Dpython= controls whether meson should install the python module
+ # Which right now has issues over the location of libgumbo.so without
+ # duplicating it into each /site-packages/gumbo/
+ # (low-priority issue, no known consumer)
+ local emesonargs=(
+ $(meson_use test tests)
+ -Ddefault_library=shared
+ -Dpython=false
+ )
+
+ meson_src_configure
+
+ use test && distutils-r1_src_configure
+}
+
+src_compile() {
+ meson_src_compile
+
+ if use test; then
+ # So the python tests can find the libgumbo.so which just got built
+ ln -s "${BUILD_DIR}/libgumbo.so" "${S}/python/gumbo/libgumbo.so" || die
+
+ distutils-r1_src_compile
+ fi
+
+ if use doc; then
+ doxygen || die "doxygen failed"
+ HTML_DOCS=( docs/html/. )
+ fi
+}
+
+python_test() {
+ pushd python/gumbo >/dev/null || die
+
+ eunittest -p '*_test.py'
+
+ popd >/dev/null
+}
+
+src_test() {
+ meson_src_test
+ distutils-r1_src_test
+}
+
+src_install() {
+ meson_src_install
+
+ use doc && doman docs/man/man3/*
+}