commit: 725255b5eff4f349263a1f59f12623e64459230a Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> AuthorDate: Sat Mar 1 22:08:06 2025 +0000 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> CommitDate: Sat Mar 1 22:13:53 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=725255b5
net-libs/libdom: add 0.4.3_pre20250301 Snapshot release for compatibility with newer libxml2. Bug: https://bugs.gentoo.org/946980 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> net-libs/libdom/Manifest | 1 + net-libs/libdom/libdom-0.4.3_pre20250301.ebuild | 60 +++++++++++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/net-libs/libdom/Manifest b/net-libs/libdom/Manifest index 060cb372dbd8..aaec191a72b5 100644 --- a/net-libs/libdom/Manifest +++ b/net-libs/libdom/Manifest @@ -1 +1,2 @@ DIST libdom-0.4.2-src.tar.gz 878706 BLAKE2B 2a320452b50c3da719ef76683e133582bb0f657ceb8552a252204bbab89d85076af596cd615770dd357aaa9dbec31fabf39b2946019d004352b2273585134914 SHA512 85ce95a545c48af2cc082896d8153f016f7452315c67390884181cde19c999c7122c913846d404e40957d07abedc22c5ef8342d69eee139309e7c221d0580bb6 +DIST libdom-0.4.3_pre20250301.patch.xz 14652 BLAKE2B b180698550f304c4b9fa0bedb0de9bd54c1bf6b816afefe12d60c6d12a15fcafa530fc53534b506ab029c978bf9d9e49d9a0dfd8d993556a4e81a9af3d9fa4ad SHA512 e0c62b73dafd5312ab59b8da5c846c8b1a539670e05a68e355da312d9cd5d8d1cad006a07f242e90f2037ffaf11076f8af1f0f58d9ed8f3b4780215687336dd4 diff --git a/net-libs/libdom/libdom-0.4.3_pre20250301.ebuild b/net-libs/libdom/libdom-0.4.3_pre20250301.ebuild new file mode 100644 index 000000000000..e8cd17a2ae07 --- /dev/null +++ b/net-libs/libdom/libdom-0.4.3_pre20250301.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit netsurf + +DESCRIPTION="implementation of the W3C DOM, written in C" +HOMEPAGE="https://www.netsurf-browser.org/projects/libdom/" +SRC_URI="https://download.netsurf-browser.org/libs/releases/${PN}-0.4.2-src.tar.gz + https://dev.gentoo.org/~mjo/distfiles/${P}.patch.xz" +S="${WORKDIR}/${PN}-0.4.2" +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="expat test xml" + +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/libparserutils + dev-libs/libwapcaplet + net-libs/libhubbub + xml? ( + expat? ( dev-libs/expat ) + !expat? ( dev-libs/libxml2 ) + )" +DEPEND="${RDEPEND} + test? ( + dev-perl/XML-XPath + dev-perl/libxml-perl + dev-perl/Switch + )" +BDEPEND=" + dev-build/netsurf-buildsystem + virtual/pkgconfig" + +REQUIRED_USE="test? ( xml )" + +PATCHES=( "${WORKDIR}/${P}.patch" ) + +_emake() { + netsurf_define_makeconf + emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared \ + WITH_EXPAT_BINDING=$(usex xml $(usex expat yes no) no) \ + WITH_LIBXML_BINDING=$(usex xml $(usex expat no yes) no) \ + $@ +} + +src_compile() { + _emake +} + +src_test() { + _emake test +} + +src_install() { + _emake DESTDIR="${D}" install +}