summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2023-05-27 14:40:44 -0400
committerMichael Orlitzky <mjo@gentoo.org>2023-05-27 18:01:24 -0400
commitdbaf8ae84492dc8a4f42e5ecb6fe3a56ec9e6d7b (patch)
tree067d2b7af5ea71e387294b806aba1ada6f374f8f /net-libs/libdom
parentdev-libs/libcss: add 9999 (diff)
downloadgentoo-dbaf8ae84492dc8a4f42e5ecb6fe3a56ec9e6d7b.tar.gz
gentoo-dbaf8ae84492dc8a4f42e5ecb6fe3a56ec9e6d7b.tar.bz2
gentoo-dbaf8ae84492dc8a4f42e5ecb6fe3a56ec9e6d7b.zip
net-libs/libdom: add 9999
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'net-libs/libdom')
-rw-r--r--net-libs/libdom/libdom-9999.ebuild57
1 files changed, 57 insertions, 0 deletions
diff --git a/net-libs/libdom/libdom-9999.ebuild b/net-libs/libdom/libdom-9999.ebuild
new file mode 100644
index 000000000000..e4b422d0883c
--- /dev/null
+++ b/net-libs/libdom/libdom-9999.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit git-r3 netsurf
+
+DESCRIPTION="implementation of the W3C DOM, written in C"
+HOMEPAGE="https://www.netsurf-browser.org/projects/libdom/"
+
+EGIT_REPO_URI="https://git.netsurf-browser.org/${PN}.git"
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS=""
+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-util/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
+}