diff options
author | Michael Orlitzky <mjo@gentoo.org> | 2024-01-18 15:01:39 -0500 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2024-01-19 04:29:37 -0500 |
commit | abd590406c0cb92cfba822928873ed6f26378c67 (patch) | |
tree | 86c47b33f37e8ef0698a4f21a80aefdf1635c45b /net-libs/libdom | |
parent | dev-libs/libcss: add 0.9.2 (diff) | |
download | gentoo-abd590406c0cb92cfba822928873ed6f26378c67.tar.gz gentoo-abd590406c0cb92cfba822928873ed6f26378c67.tar.bz2 gentoo-abd590406c0cb92cfba822928873ed6f26378c67.zip |
net-libs/libdom: add 0.4.2
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'net-libs/libdom')
-rw-r--r-- | net-libs/libdom/Manifest | 1 | ||||
-rw-r--r-- | net-libs/libdom/libdom-0.4.2.ebuild | 57 |
2 files changed, 58 insertions, 0 deletions
diff --git a/net-libs/libdom/Manifest b/net-libs/libdom/Manifest index a7fb9819ea48..1e56416c539e 100644 --- a/net-libs/libdom/Manifest +++ b/net-libs/libdom/Manifest @@ -1 +1,2 @@ DIST libdom-0.4.1-src.tar.gz 872954 BLAKE2B 7a6d15fbb4bb7046b8ee9670a14c89f5da2ea0eac10631274d9b47eb0ee1181a85eb62aea326d293c407a006091452fba174dddfbb8cd0297a224850159ff9b1 SHA512 8927b294c98dcb424a454036b20981963ba9982c1aad95b07fc0ca1efc58756b7d85373ed4cde0dcff6281b518a2b5993358494f432d85f7ac7ebd51230a6c22 +DIST libdom-0.4.2-src.tar.gz 878706 BLAKE2B 2a320452b50c3da719ef76683e133582bb0f657ceb8552a252204bbab89d85076af596cd615770dd357aaa9dbec31fabf39b2946019d004352b2273585134914 SHA512 85ce95a545c48af2cc082896d8153f016f7452315c67390884181cde19c999c7122c913846d404e40957d07abedc22c5ef8342d69eee139309e7c221d0580bb6 diff --git a/net-libs/libdom/libdom-0.4.2.ebuild b/net-libs/libdom/libdom-0.4.2.ebuild new file mode 100644 index 000000000000..547bc6cbbf23 --- /dev/null +++ b/net-libs/libdom/libdom-0.4.2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2024 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/${P}-src.tar.gz" + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~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 )" + +_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 +} |