summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-libs/libcss/libcss-0.8.0-r2.ebuild49
-rw-r--r--dev-libs/libcss/libcss-0.9.0-r1.ebuild51
-rw-r--r--dev-libs/libcss/libcss-0.9.1-r1.ebuild51
-rw-r--r--dev-libs/libnsfb/libnsfb-0.2.0-r2.ebuild50
-rw-r--r--dev-libs/libnsfb/libnsfb-0.2.1-r1.ebuild51
-rw-r--r--dev-libs/libnsfb/libnsfb-0.2.2-r1.ebuild50
-rw-r--r--dev-libs/libnsutils/libnsutils-0.0.5-r2.ebuild30
-rw-r--r--dev-libs/libnsutils/libnsutils-0.1.0-r1.ebuild30
-rw-r--r--dev-libs/libparserutils/libparserutils-0.2.4-r3.ebuild43
-rw-r--r--dev-libs/libwapcaplet/libwapcaplet-0.4.1-r2.ebuild42
-rw-r--r--dev-libs/libwapcaplet/libwapcaplet-0.4.2-r1.ebuild44
-rw-r--r--dev-libs/libwapcaplet/libwapcaplet-0.4.3-r1.ebuild44
-rw-r--r--dev-libs/nsgenbind/nsgenbind-0.6-r2.ebuild32
-rw-r--r--dev-libs/nsgenbind/nsgenbind-0.7-r1.ebuild32
-rw-r--r--dev-libs/nsgenbind/nsgenbind-0.8-r1.ebuild32
-rw-r--r--media-libs/libnsbmp/libnsbmp-0.1.6-r1.ebuild32
-rw-r--r--media-libs/libnsgif/libnsgif-0.2.1-r3.ebuild39
-rw-r--r--media-libs/libnspsl/libnspsl-0.1.3-r2.ebuild32
-rw-r--r--media-libs/libnspsl/libnspsl-0.1.5-r1.ebuild32
-rw-r--r--media-libs/libnspsl/libnspsl-0.1.6-r1.ebuild32
-rw-r--r--media-libs/librosprite/librosprite-0.1.3-r2.ebuild32
-rw-r--r--media-libs/libsvgtiny/libsvgtiny-0.1.7-r2.ebuild38
-rw-r--r--net-libs/libdom/libdom-0.3.3-r2.ebuild55
-rw-r--r--net-libs/libdom/libdom-0.4.0-r1.ebuild57
-rw-r--r--net-libs/libdom/libdom-0.4.1-r1.ebuild57
-rw-r--r--net-libs/libhubbub/libhubbub-0.3.6-r2.ebuild56
-rw-r--r--www-client/netsurf/netsurf-3.10-r3.ebuild148
27 files changed, 1241 insertions, 0 deletions
diff --git a/dev-libs/libcss/libcss-0.8.0-r2.ebuild b/dev-libs/libcss/libcss-0.8.0-r2.ebuild
new file mode 100644
index 00000000000..b388f262e7d
--- /dev/null
+++ b/dev-libs/libcss/libcss-0.8.0-r2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+DESCRIPTION="CSS parser and selection engine, written in C"
+HOMEPAGE="http://www.netsurf-browser.org/projects/libcss/"
+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="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=dev-libs/libparserutils-0.2.1-r1
+ >=dev-libs/libwapcaplet-0.4.0"
+DEPEND="${RDEPEND}
+ >=dev-util/netsurf-buildsystem-1.7-r1
+ virtual/pkgconfig
+ test? ( dev-lang/perl )"
+
+src_prepare() {
+ default
+ sed -e '1i#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"' \
+ -i src/parse/parse.c src/select/arena_hash.h || die
+ sed -e '1i#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"' \
+ -i src/parse/parse.c src/select/computed.c || die
+}
+
+_emake() {
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_test() {
+ _emake test
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}
diff --git a/dev-libs/libcss/libcss-0.9.0-r1.ebuild b/dev-libs/libcss/libcss-0.9.0-r1.ebuild
new file mode 100644
index 00000000000..03d454f9107
--- /dev/null
+++ b/dev-libs/libcss/libcss-0.9.0-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+DESCRIPTION="CSS parser and selection engine, written in C"
+HOMEPAGE="http://www.netsurf-browser.org/projects/libcss/"
+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="test"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-libs/libparserutils
+ dev-libs/libwapcaplet"
+DEPEND="${RDEPEND}
+ test? ( dev-lang/perl )"
+BDEPEND="
+ >=dev-util/netsurf-buildsystem-1.7-r1
+ virtual/pkgconfig"
+
+src_prepare() {
+ default
+ sed -e '1i#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"' \
+ -i src/parse/parse.c src/select/arena_hash.h || die
+ sed -e '1i#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"' \
+ -i src/parse/parse.c src/select/computed.c || die
+}
+
+_emake() {
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_test() {
+ _emake test
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}
diff --git a/dev-libs/libcss/libcss-0.9.1-r1.ebuild b/dev-libs/libcss/libcss-0.9.1-r1.ebuild
new file mode 100644
index 00000000000..03d454f9107
--- /dev/null
+++ b/dev-libs/libcss/libcss-0.9.1-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+DESCRIPTION="CSS parser and selection engine, written in C"
+HOMEPAGE="http://www.netsurf-browser.org/projects/libcss/"
+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="test"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-libs/libparserutils
+ dev-libs/libwapcaplet"
+DEPEND="${RDEPEND}
+ test? ( dev-lang/perl )"
+BDEPEND="
+ >=dev-util/netsurf-buildsystem-1.7-r1
+ virtual/pkgconfig"
+
+src_prepare() {
+ default
+ sed -e '1i#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"' \
+ -i src/parse/parse.c src/select/arena_hash.h || die
+ sed -e '1i#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"' \
+ -i src/parse/parse.c src/select/computed.c || die
+}
+
+_emake() {
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_test() {
+ _emake test
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}
diff --git a/dev-libs/libnsfb/libnsfb-0.2.0-r2.ebuild b/dev-libs/libnsfb/libnsfb-0.2.0-r2.ebuild
new file mode 100644
index 00000000000..ce5964414d8
--- /dev/null
+++ b/dev-libs/libnsfb/libnsfb-0.2.0-r2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+DESCRIPTION="framebuffer abstraction library, written in C"
+HOMEPAGE="http://www.netsurf-browser.org/projects/libnsfb/"
+SRC_URI="https://download.netsurf-browser.org/libs/releases/${P}-src.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64"
+IUSE="sdl test vnc wayland X"
+RESTRICT="!test? ( test )"
+
+RDEPEND="sdl? ( >=media-libs/libsdl-1.2.15-r4 )
+ vnc? ( >=net-libs/libvncserver-0.9.9-r2 )
+ wayland? ( >=dev-libs/wayland-1.0.6 )
+ X? (
+ >=x11-libs/libxcb-1.9.1
+ >=x11-libs/xcb-util-0.3.9-r1
+ >=x11-libs/xcb-util-image-0.3.9-r1
+ >=x11-libs/xcb-util-keysyms-0.3.9-r1
+ )"
+DEPEND="${RDEPEND}
+ dev-util/netsurf-buildsystem"
+
+PATCHES=( "${FILESDIR}"/${PN}-0.1.0-autodetect.patch )
+
+DOCS=( usage )
+
+_emake() {
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared \
+ WITH_VNC=$(usex vnc) \
+ WITH_SDL=$(usex sdl) \
+ WITH_XCB=$(usex X) \
+ WITH_WLD=$(usex wayland) \
+ $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}
diff --git a/dev-libs/libnsfb/libnsfb-0.2.1-r1.ebuild b/dev-libs/libnsfb/libnsfb-0.2.1-r1.ebuild
new file mode 100644
index 00000000000..354ba28b0bb
--- /dev/null
+++ b/dev-libs/libnsfb/libnsfb-0.2.1-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+DESCRIPTION="framebuffer abstraction library, written in C"
+HOMEPAGE="http://www.netsurf-browser.org/projects/libnsfb/"
+SRC_URI="https://download.netsurf-browser.org/libs/releases/${P}-src.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64"
+IUSE="sdl test vnc wayland X"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="sdl? ( >=media-libs/libsdl-1.2.15-r4 )
+ vnc? ( >=net-libs/libvncserver-0.9.9-r2 )
+ wayland? ( >=dev-libs/wayland-1.0.6 )
+ X? (
+ >=x11-libs/libxcb-1.9.1
+ >=x11-libs/xcb-util-0.3.9-r1
+ >=x11-libs/xcb-util-image-0.3.9-r1
+ >=x11-libs/xcb-util-keysyms-0.3.9-r1
+ )"
+BDEPEND="
+ dev-util/netsurf-buildsystem"
+
+PATCHES=( "${FILESDIR}"/${PN}-0.1.0-autodetect.patch )
+
+DOCS=( usage )
+
+_emake() {
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared \
+ WITH_VNC=$(usex vnc) \
+ WITH_SDL=$(usex sdl) \
+ WITH_XCB=$(usex X) \
+ WITH_WLD=$(usex wayland) \
+ $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}
diff --git a/dev-libs/libnsfb/libnsfb-0.2.2-r1.ebuild b/dev-libs/libnsfb/libnsfb-0.2.2-r1.ebuild
new file mode 100644
index 00000000000..0e4bb3ed254
--- /dev/null
+++ b/dev-libs/libnsfb/libnsfb-0.2.2-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+DESCRIPTION="C library for framebuffer abstraction"
+HOMEPAGE="http://www.netsurf-browser.org/projects/libnsfb/"
+SRC_URI="https://download.netsurf-browser.org/libs/releases/${P}-src.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64"
+IUSE="sdl test vnc wayland X"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="sdl? ( >=media-libs/libsdl-1.2.15-r4 )
+ vnc? ( >=net-libs/libvncserver-0.9.9-r2 )
+ wayland? ( >=dev-libs/wayland-1.0.6 )
+ X? (
+ >=x11-libs/libxcb-1.9.1
+ >=x11-libs/xcb-util-0.3.9-r1
+ >=x11-libs/xcb-util-image-0.3.9-r1
+ >=x11-libs/xcb-util-keysyms-0.3.9-r1
+ )"
+BDEPEND="dev-util/netsurf-buildsystem"
+
+PATCHES=( "${FILESDIR}/${PN}-0.1.0-autodetect.patch" )
+
+DOCS=( usage )
+
+_emake() {
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared \
+ WITH_VNC=$(usex vnc) \
+ WITH_SDL=$(usex sdl) \
+ WITH_XCB=$(usex X) \
+ WITH_WLD=$(usex wayland) \
+ $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}
diff --git a/dev-libs/libnsutils/libnsutils-0.0.5-r2.ebuild b/dev-libs/libnsutils/libnsutils-0.0.5-r2.ebuild
new file mode 100644
index 00000000000..13f403c3edb
--- /dev/null
+++ b/dev-libs/libnsutils/libnsutils-0.0.5-r2.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+DESCRIPTION="base64 and time library, written in C"
+HOMEPAGE="http://www.netsurf-browser.org/"
+SRC_URI="https://download.netsurf-browser.org/libs/releases/${P}-src.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64"
+IUSE=""
+
+DEPEND="dev-util/netsurf-buildsystem"
+
+_emake() {
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}
diff --git a/dev-libs/libnsutils/libnsutils-0.1.0-r1.ebuild b/dev-libs/libnsutils/libnsutils-0.1.0-r1.ebuild
new file mode 100644
index 00000000000..84b713406a9
--- /dev/null
+++ b/dev-libs/libnsutils/libnsutils-0.1.0-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+DESCRIPTION="C library for base64 and time"
+HOMEPAGE="http://www.netsurf-browser.org/"
+SRC_URI="https://download.netsurf-browser.org/libs/releases/${P}-src.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64"
+IUSE=""
+
+BDEPEND="dev-util/netsurf-buildsystem"
+
+_emake() {
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}
diff --git a/dev-libs/libparserutils/libparserutils-0.2.4-r3.ebuild b/dev-libs/libparserutils/libparserutils-0.2.4-r3.ebuild
new file mode 100644
index 00000000000..ea49dbb1c05
--- /dev/null
+++ b/dev-libs/libparserutils/libparserutils-0.2.4-r3.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic netsurf
+
+DESCRIPTION="C library for building efficient parsers"
+HOMEPAGE="http://www.netsurf-browser.org/projects/libparserutils/"
+SRC_URI="https://download.netsurf-browser.org/libs/releases/${P}-src.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~m68k-mint"
+IUSE="iconv test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ >=dev-util/netsurf-buildsystem-1.7-r1
+ test? ( dev-lang/perl )"
+
+DOCS=( README docs/Todo )
+
+src_configure() {
+ append-cflags "-D$(usex iconv WITH WITHOUT)_ICONV_FILTER"
+}
+
+_emake() {
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_test() {
+ _emake test
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}
diff --git a/dev-libs/libwapcaplet/libwapcaplet-0.4.1-r2.ebuild b/dev-libs/libwapcaplet/libwapcaplet-0.4.1-r2.ebuild
new file mode 100644
index 00000000000..d553e7e2201
--- /dev/null
+++ b/dev-libs/libwapcaplet/libwapcaplet-0.4.1-r2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+DESCRIPTION="string internment library, written in C"
+HOMEPAGE="http://www.netsurf-browser.org/projects/libwapcaplet/"
+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="test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ >=dev-util/netsurf-buildsystem-1.7-r1
+ test? ( >=dev-libs/check-0.9.11 )"
+
+PATCHES=(
+ # bug 664288
+ "${FILESDIR}/${PN}-0.4.1-makefile.patch"
+)
+
+_emake() {
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_test() {
+ _emake test
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}
diff --git a/dev-libs/libwapcaplet/libwapcaplet-0.4.2-r1.ebuild b/dev-libs/libwapcaplet/libwapcaplet-0.4.2-r1.ebuild
new file mode 100644
index 00000000000..cb74894bb4b
--- /dev/null
+++ b/dev-libs/libwapcaplet/libwapcaplet-0.4.2-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+DESCRIPTION="string internment library, written in C"
+HOMEPAGE="http://www.netsurf-browser.org/projects/libwapcaplet/"
+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="test"
+
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ test? ( >=dev-libs/check-0.9.11 )"
+BDEPEND="
+ >=dev-util/netsurf-buildsystem-1.7-r1"
+
+PATCHES=(
+ # bug 664288
+ "${FILESDIR}/${PN}-0.4.1-makefile.patch"
+)
+
+_emake() {
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_test() {
+ _emake test
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}
diff --git a/dev-libs/libwapcaplet/libwapcaplet-0.4.3-r1.ebuild b/dev-libs/libwapcaplet/libwapcaplet-0.4.3-r1.ebuild
new file mode 100644
index 00000000000..cb74894bb4b
--- /dev/null
+++ b/dev-libs/libwapcaplet/libwapcaplet-0.4.3-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+DESCRIPTION="string internment library, written in C"
+HOMEPAGE="http://www.netsurf-browser.org/projects/libwapcaplet/"
+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="test"
+
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ test? ( >=dev-libs/check-0.9.11 )"
+BDEPEND="
+ >=dev-util/netsurf-buildsystem-1.7-r1"
+
+PATCHES=(
+ # bug 664288
+ "${FILESDIR}/${PN}-0.4.1-makefile.patch"
+)
+
+_emake() {
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_test() {
+ _emake test
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}
diff --git a/dev-libs/nsgenbind/nsgenbind-0.6-r2.ebuild b/dev-libs/nsgenbind/nsgenbind-0.6-r2.ebuild
new file mode 100644
index 00000000000..fd95f03f94f
--- /dev/null
+++ b/dev-libs/nsgenbind/nsgenbind-0.6-r2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+DESCRIPTION="generate javascript to dom bindings from w3c webidl files"
+HOMEPAGE="http://www.netsurf-browser.org/"
+SRC_URI="https://download.netsurf-browser.org/libs/releases/${P}-src.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64"
+IUSE=""
+
+DEPEND="
+ dev-util/netsurf-buildsystem
+ virtual/yacc"
+
+_emake() {
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=binary $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}
diff --git a/dev-libs/nsgenbind/nsgenbind-0.7-r1.ebuild b/dev-libs/nsgenbind/nsgenbind-0.7-r1.ebuild
new file mode 100644
index 00000000000..fd95f03f94f
--- /dev/null
+++ b/dev-libs/nsgenbind/nsgenbind-0.7-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+DESCRIPTION="generate javascript to dom bindings from w3c webidl files"
+HOMEPAGE="http://www.netsurf-browser.org/"
+SRC_URI="https://download.netsurf-browser.org/libs/releases/${P}-src.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64"
+IUSE=""
+
+DEPEND="
+ dev-util/netsurf-buildsystem
+ virtual/yacc"
+
+_emake() {
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=binary $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}
diff --git a/dev-libs/nsgenbind/nsgenbind-0.8-r1.ebuild b/dev-libs/nsgenbind/nsgenbind-0.8-r1.ebuild
new file mode 100644
index 00000000000..353b0a1d972
--- /dev/null
+++ b/dev-libs/nsgenbind/nsgenbind-0.8-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+DESCRIPTION="Generate Javascript-to-DOM bindings from w3c webidl files"
+HOMEPAGE="http://www.netsurf-browser.org/"
+SRC_URI="https://download.netsurf-browser.org/libs/releases/${P}-src.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64"
+IUSE=""
+
+BDEPEND="
+ dev-util/netsurf-buildsystem
+ virtual/yacc"
+
+_emake() {
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=binary $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}
diff --git a/media-libs/libnsbmp/libnsbmp-0.1.6-r1.ebuild b/media-libs/libnsbmp/libnsbmp-0.1.6-r1.ebuild
new file mode 100644
index 00000000000..81c8075d558
--- /dev/null
+++ b/media-libs/libnsbmp/libnsbmp-0.1.6-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+DESCRIPTION="decoding library for BMP and ICO image file formats, written in C"
+HOMEPAGE="http://www.netsurf-browser.org/projects/libnsbmp/"
+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=""
+
+BDEPEND="
+ dev-util/netsurf-buildsystem
+ virtual/pkgconfig"
+
+_emake() {
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}
diff --git a/media-libs/libnsgif/libnsgif-0.2.1-r3.ebuild b/media-libs/libnsgif/libnsgif-0.2.1-r3.ebuild
new file mode 100644
index 00000000000..8478ddc0090
--- /dev/null
+++ b/media-libs/libnsgif/libnsgif-0.2.1-r3.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+DESCRIPTION="decoding library for the GIF image file format, written in C"
+HOMEPAGE="https://www.netsurf-browser.org/projects/libnsgif/"
+SRC_URI="https://download.netsurf-browser.org/libs/releases/${P}-src.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~m68k-mint"
+IUSE=""
+
+BDEPEND="
+ >=dev-util/netsurf-buildsystem-1.7-r1
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ default
+ sed -e '1i#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"' \
+ -i src/lzw.c || die
+}
+
+_emake() {
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}
diff --git a/media-libs/libnspsl/libnspsl-0.1.3-r2.ebuild b/media-libs/libnspsl/libnspsl-0.1.3-r2.ebuild
new file mode 100644
index 00000000000..2d2bcaa165a
--- /dev/null
+++ b/media-libs/libnspsl/libnspsl-0.1.3-r2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+DESCRIPTION="decoding library for BMP and ICO image file formats, written in C"
+HOMEPAGE="http://www.netsurf-browser.org/projects/"
+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=""
+
+DEPEND="
+ dev-util/netsurf-buildsystem
+ virtual/pkgconfig"
+
+_emake() {
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}
diff --git a/media-libs/libnspsl/libnspsl-0.1.5-r1.ebuild b/media-libs/libnspsl/libnspsl-0.1.5-r1.ebuild
new file mode 100644
index 00000000000..01b50983133
--- /dev/null
+++ b/media-libs/libnspsl/libnspsl-0.1.5-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+DESCRIPTION="decoding library for BMP and ICO image file formats, written in C"
+HOMEPAGE="http://www.netsurf-browser.org/projects/"
+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=""
+
+BDEPEND="
+ dev-util/netsurf-buildsystem
+ virtual/pkgconfig"
+
+_emake() {
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}
diff --git a/media-libs/libnspsl/libnspsl-0.1.6-r1.ebuild b/media-libs/libnspsl/libnspsl-0.1.6-r1.ebuild
new file mode 100644
index 00000000000..c6381ffa9d9
--- /dev/null
+++ b/media-libs/libnspsl/libnspsl-0.1.6-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+DESCRIPTION="C library for decoding BMP and ICO images"
+HOMEPAGE="http://www.netsurf-browser.org/projects/"
+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=""
+
+BDEPEND="
+ dev-util/netsurf-buildsystem
+ virtual/pkgconfig"
+
+_emake() {
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}
diff --git a/media-libs/librosprite/librosprite-0.1.3-r2.ebuild b/media-libs/librosprite/librosprite-0.1.3-r2.ebuild
new file mode 100644
index 00000000000..d412b3c188e
--- /dev/null
+++ b/media-libs/librosprite/librosprite-0.1.3-r2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+DESCRIPTION="framebuffer abstraction library, written in C"
+HOMEPAGE="http://www.netsurf-browser.org/projects/librosprite/"
+SRC_URI="https://download.netsurf-browser.org/libs/releases/${P}-src.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~m68k-mint"
+IUSE=""
+
+DEPEND="dev-util/netsurf-buildsystem"
+
+PATCHES=( "${FILESDIR}"/${PN}-0.1.2-Werror.patch )
+
+_emake() {
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}
diff --git a/media-libs/libsvgtiny/libsvgtiny-0.1.7-r2.ebuild b/media-libs/libsvgtiny/libsvgtiny-0.1.7-r2.ebuild
new file mode 100644
index 00000000000..062d7f57930
--- /dev/null
+++ b/media-libs/libsvgtiny/libsvgtiny-0.1.7-r2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+DESCRIPTION="framebuffer abstraction library, written in C"
+HOMEPAGE="http://www.netsurf-browser.org/projects/libsvgtiny/"
+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=""
+
+RDEPEND="
+ >=net-libs/libdom-0.1.2-r1[xml]
+ >=dev-libs/libwapcaplet-0.2.2-r1"
+DEPEND="${RDEPEND}
+ dev-util/gperf
+ dev-util/netsurf-buildsystem
+ virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${PN}-0.1.3-parallel-build.patch )
+
+_emake() {
+ netsurf_define_makeconf
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@
+}
+
+src_compile() {
+ _emake
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+}
diff --git a/net-libs/libdom/libdom-0.3.3-r2.ebuild b/net-libs/libdom/libdom-0.3.3-r2.ebuild
new file mode 100644
index 00000000000..b5e782a5b83
--- /dev/null
+++ b/net-libs/libdom/libdom-0.3.3-r2.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+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"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=dev-libs/libparserutils-0.2.1-r1
+ >=dev-libs/libwapcaplet-0.3.0
+ >=net-libs/libhubbub-0.3.1-r1
+ xml? (
+ expat? ( >=dev-libs/expat-2.1.0-r3 )
+ !expat? ( >=dev-libs/libxml2-2.9.1-r4 )
+ )"
+DEPEND="${RDEPEND}
+ dev-util/netsurf-buildsystem
+ virtual/pkgconfig
+ test? (
+ dev-perl/XML-XPath
+ dev-perl/libxml-perl
+ dev-perl/Switch
+ )"
+
+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
+}
diff --git a/net-libs/libdom/libdom-0.4.0-r1.ebuild b/net-libs/libdom/libdom-0.4.0-r1.ebuild
new file mode 100644
index 00000000000..d5902a58630
--- /dev/null
+++ b/net-libs/libdom/libdom-0.4.0-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+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"
+
+RESTRICT="!test? ( test )"
+
+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() {
+ 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
+}
diff --git a/net-libs/libdom/libdom-0.4.1-r1.ebuild b/net-libs/libdom/libdom-0.4.1-r1.ebuild
new file mode 100644
index 00000000000..d5902a58630
--- /dev/null
+++ b/net-libs/libdom/libdom-0.4.1-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf
+
+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"
+
+RESTRICT="!test? ( test )"
+
+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() {
+ 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
+}
diff --git a/net-libs/libhubbub/libhubbub-0.3.6-r2.ebuild b/net-libs/libhubbub/libhubbub-0.3.6-r2.ebuild
new file mode 100644
index 00000000000..37c534bcee4
--- /dev/null
+++ b/net-libs/libhubbub/libhubbub-0.3.6-r2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf flag-o-matic
+
+DESCRIPTION="HTML5 compliant parsing library, written in C"
+HOMEPAGE="https://www.netsurf-browser.org/projects/hubbub/"
+SRC_URI="https://download.netsurf-browser.org/libs/releases/${P}-src.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~m68k-mint"
+IUSE="doc test"
+
+BDEPEND="
+ dev-util/netsurf-buildsystem
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )
+ test? ( dev-lang/perl )
+"
+RDEPEND="dev-libs/libparserutils:="
+DEPEND="${RDEPEND}
+ test? ( dev-libs/json-c )"
+RESTRICT="!test? ( test )"
+
+DOCS=( README docs/{Architecture,Macros,Todo,Treebuilder,Updated} )
+PATCHES=( "${FILESDIR}/libhubbub-0.3.6-json-c.patch" )
+
+src_prepare() {
+ default
+ sed -e '1i#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"' \
+ -i test/tree2.c || die
+}
+
+_emake() {
+ netsurf_define_makeconf
+ append-cflags -Wno-error
+ emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@
+}
+
+src_compile() {
+ _emake
+ use doc && _emake docs
+}
+
+src_test() {
+ _emake test
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+ use doc && HTML_DOCS=( docs/html/. )
+ einstalldocs
+}
diff --git a/www-client/netsurf/netsurf-3.10-r3.ebuild b/www-client/netsurf/netsurf-3.10-r3.ebuild
new file mode 100644
index 00000000000..80ac0b1a011
--- /dev/null
+++ b/www-client/netsurf/netsurf-3.10-r3.ebuild
@@ -0,0 +1,148 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit netsurf desktop
+
+DESCRIPTION="a free, open source web browser"
+HOMEPAGE="https://www.netsurf-browser.org/"
+SRC_URI="http://download.netsurf-browser.org/netsurf/releases/source/${P}-src.tar.gz"
+
+LICENSE="GPL-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64"
+IUSE="bmp +duktape fbcon truetype +gif +gtk gtk2 +javascript +jpeg mng
+ +png +psl rosprite +svg +svgtiny +webp"
+
+REQUIRED_USE="|| ( fbcon gtk gtk2 )
+ duktape? ( javascript )"
+
+RDEPEND="
+ >=dev-libs/libcss-0.9
+ >=net-libs/libdom-0.3
+ >=net-libs/libhubbub-0.3
+ >=dev-libs/libnsutils-0.1.0
+ >=dev-libs/libutf8proc-2.4
+ dev-libs/libxml2:2
+ net-misc/curl
+ bmp? ( >=media-libs/libnsbmp-0.1 )
+ fbcon? ( >=dev-libs/libnsfb-0.2.2
+ truetype? ( media-fonts/dejavu
+ >=media-libs/freetype-2.5.0.1 )
+ )
+ gif? ( >=media-libs/libnsgif-0.1 )
+ gtk? ( dev-libs/glib:2
+ x11-libs/gtk+:3 )
+ gtk2? ( dev-libs/glib:2
+ x11-libs/gtk+:2 )
+ javascript? (
+ >=dev-libs/nsgenbind-0.7
+ duktape? ( dev-lang/duktape )
+ !duktape? ( dev-lang/spidermonkey:0= )
+ )
+ jpeg? ( >=virtual/jpeg-0-r2:0 )
+ mng? ( >=media-libs/libmng-1.0.10-r2 )
+ png? ( >=media-libs/libpng-1.2.51:0 )
+ psl? ( media-libs/libnspsl )
+ rosprite? ( >=media-libs/librosprite-0.1.2-r1 )
+ svg? ( svgtiny? ( >=media-libs/libsvgtiny-0.1.3-r1 )
+ !svgtiny? ( gnome-base/librsvg:2 ) )
+ webp? ( >=media-libs/libwebp-0.3.0 )"
+BDEPEND="
+ duktape? ( app-editors/vim-core )
+ dev-libs/check
+ dev-perl/HTML-Parser
+ >=dev-util/netsurf-buildsystem-1.7-r1"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-3.9-conditionally-include-image-headers.patch"
+ "${FILESDIR}/${PN}-3.10-julia-libutf8proc-header-location.patch"
+ "${FILESDIR}/${PN}-3.10-disable-failing-tests.patch"
+)
+
+DOCS=( README docs/using-framebuffer.md
+ docs/ideas/{cache,css-engine,render-library}.txt )
+
+src_prepare() {
+ default
+ rm -r frontends/{amiga,atari,beos,monkey,riscos,windows} || die
+}
+
+_emake() {
+ netsurf_define_makeconf
+ local netsurf_makeconf=(
+ "${NETSURF_MAKECONF[@]}"
+ COMPONENT_TYPE=binary
+ NETSURF_USE_BMP=$(usex bmp YES NO)
+ NETSURF_USE_GIF=$(usex gif YES NO)
+ NETSURF_USE_JPEG=$(usex jpeg YES NO)
+ NETSURF_USE_PNG=$(usex png YES NO)
+ NETSURF_USE_NSPSL=$(usex psl YES NO)
+ NETSURF_USE_MNG=$(usex mng YES NO)
+ NETSURF_USE_WEBP=$(usex webp YES NO)
+ NETSURF_USE_MOZJS=$(usex javascript $(usex duktape NO YES) NO)
+ NETSURF_USE_JS=NO
+ NETSURF_USE_DUKTAPE=$(usex javascript $(usex duktape YES NO) NO)
+ NETSURF_USE_NSSVG=$(usex svg $(usex svgtiny YES NO) NO)
+ NETSURF_USE_RSVG=$(usex svg $(usex svgtiny NO YES) NO)
+ NETSURF_USE_ROSPRITE=$(usex rosprite YES NO)
+ PKG_CONFIG=$(tc-getPKG_CONFIG)
+ NETSURF_FB_FONTLIB=$(usex truetype freetype internal)
+ NETSURF_FB_FONTPATH="${EPREFIX}/usr/share/fonts/dejavu"
+ NETSURF_USE_VIDEO=NO
+ )
+ emake "${netsurf_makeconf[@]}" $@
+}
+
+src_compile() {
+ # The build system only runs pkg-config to find librsvg's include
+ # dir for the gtk targets. So if you try to build the framebuffer
+ # target with NETSURF_USE_RSVG=YES, the build crashes on failing to
+ # find rsvg.h. To work around that, we set NETSURF_USE_RSVG=NO. It
+ # might be possible to fall back to svgtiny with USE="svg -svgtiny"
+ # if svgtiny works in a framebuffer, but then our (R)DEPEND would
+ # need some mangling to ensure that svgtiny is installed.
+ use fbcon && _emake NETSURF_USE_RSVG=NO TARGET=framebuffer
+
+ use gtk2 && _emake TARGET=gtk2
+ use gtk && _emake TARGET=gtk3
+}
+
+src_test() {
+ _emake test
+}
+
+src_install() {
+ sed -e '1iexit;' \
+ -i "${WORKDIR}"/*/utils/git-testament.pl || die
+
+ if use fbcon ; then
+ # See earlier comments about rsvg.h.
+ _emake NETSURF_USE_RSVG=NO TARGET=framebuffer DESTDIR="${D}" install
+ elog "framebuffer binary has been installed as netsurf-fb"
+ make_desktop_entry "${EPREFIX}"/usr/bin/netsurf-fb \
+ NetSurf-framebuffer \
+ netsurf \
+ "Network;WebBrowser"
+ fi
+ if use gtk2 ; then
+ _emake TARGET=gtk2 DESTDIR="${D}" install
+ elog "netsurf gtk2 version has been installed as netsurf-gtk2"
+ make_desktop_entry "${EPREFIX}"/usr/bin/netsurf-gtk2 \
+ NetSurf-gtk2 \
+ netsurf \
+ "Network;WebBrowser"
+ fi
+ if use gtk ; then
+ _emake TARGET=gtk3 DESTDIR="${D}" install
+ elog "netsurf gtk3 version has been installed as netsurf-gtk3"
+ make_desktop_entry "${EPREFIX}"/usr/bin/netsurf-gtk3 \
+ NetSurf-gtk3 \
+ netsurf \
+ "Network;WebBrowser"
+ fi
+
+ insinto /usr/share/pixmaps
+ doins frontends/gtk/res/netsurf.xpm
+}