summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Ammann <philipp.ammann@posteo.de>2019-10-26 15:52:44 +0000
committerJoonas Niilola <juippis@gentoo.org>2019-12-04 16:48:33 +0200
commit49eb3719bf08782e897cc585fd62b12790245d0e (patch)
tree74b3c814486c45618a0dc94ba6e19b6f339aae66 /net-libs/libdom
parentdev-libs/libcss: version bump to 0.9.0 (diff)
downloadgentoo-49eb3719bf08782e897cc585fd62b12790245d0e.tar.gz
gentoo-49eb3719bf08782e897cc585fd62b12790245d0e.tar.bz2
gentoo-49eb3719bf08782e897cc585fd62b12790245d0e.zip
net-libs/libdom: version bump to 0.4.0
Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Philipp Ammann <philipp.ammann@posteo.de> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-libs/libdom')
-rw-r--r--net-libs/libdom/Manifest1
-rw-r--r--net-libs/libdom/libdom-0.4.0.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/net-libs/libdom/Manifest b/net-libs/libdom/Manifest
index 08aa28435e01..a632312b99a5 100644
--- a/net-libs/libdom/Manifest
+++ b/net-libs/libdom/Manifest
@@ -1 +1,2 @@
DIST libdom-0.3.3-src.tar.gz 870035 BLAKE2B 6dc77fe0ef31e491810243b461e6e7fbab2d6d2bb56e68730497ed9e0e1acf9dfcc29be024bd0010292e57d25849124153772c24503012fbdf38d24363f35a05 SHA512 3b08b20976b36adf441f088e9feb756b9ce6a43133e57b90fa6d6b8809d74c6d500c7d2a883dd19d520c6ef71d9e04685d9765e6c6a00677a412265ecc6273a8
+DIST libdom-0.4.0-src.tar.gz 871499 BLAKE2B e0ab1a1cf14b532eec1bd68c3ee2557a720a984232ede2f9b0e1d4c68299cc8b39b3d83fa1ff77233d07b8148188ec3012dca64787cfe476b4eb6990f1c71629 SHA512 4d3acb6520619c6c28f20c9fef72b19a879070d0e65d896212c557ada44d35c1fcae4712b901db720ddeb3b1b90832005d63075dcafaddb5f4ba2088fa7a9eef
diff --git a/net-libs/libdom/libdom-0.4.0.ebuild b/net-libs/libdom/libdom-0.4.0.ebuild
new file mode 100644
index 000000000000..6417ef3b98d2
--- /dev/null
+++ b/net-libs/libdom/libdom-0.4.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="implementation of the W3C DOM, written in C"
+HOMEPAGE="http://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 ~ppc ~ppc64 ~m68k-mint"
+IUSE="expat test xml"
+
+RDEPEND="
+ dev-libs/libparserutils
+ dev-libs/libwapcaplet
+ net-libs/libhubbub
+ xml? (
+ expat? ( >=dev-libs/expat-2.1.0-r3 )
+ !expat? ( >=dev-libs/libxml2-2.9.1-r4 )
+ )"
+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() {
+ source /usr/share/netsurf-buildsystem/gentoo-helpers.sh
+ 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="${ED}" install
+}