summaryrefslogtreecommitdiff
path: root/www-client/netsurf
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-05-28 03:13:44 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-05-28 03:13:44 +0100
commit369ea1911997ca4bdb3c70969256af7bbf275699 (patch)
treed248ee5ce2c8e1110a06aec64179104ccd61f67a /www-client/netsurf
parent58363a659e5161822c630bb4e16459a3a838696c (diff)
gentoo auto-resync : 28:05:2023 - 03:13:44
Diffstat (limited to 'www-client/netsurf')
-rw-r--r--www-client/netsurf/Manifest1
-rw-r--r--www-client/netsurf/netsurf-9999.ebuild147
2 files changed, 148 insertions, 0 deletions
diff --git a/www-client/netsurf/Manifest b/www-client/netsurf/Manifest
index efef827563e4..d16828ba504e 100644
--- a/www-client/netsurf/Manifest
+++ b/www-client/netsurf/Manifest
@@ -4,4 +4,5 @@ AUX netsurf-3.10-julia-libutf8proc-header-location.patch 1155 BLAKE2B bd2e04f8b9
AUX netsurf-3.9-conditionally-include-image-headers.patch 775 BLAKE2B 1d62fa92cda9851126b7befbf0b19d28f130a1d165c8ddabecac98b8dee59cf51bede93bf380ba5ce07625f6bf0156a400e8575df418611bda29f9e7f325a696 SHA512 5e866aa56c7959ba5a6ac44d997a12b24bf4cc3ef38e3149a06be178350cf1a14bc27a31b6bf817faf8586f44ecef65cb7633245cdbbe0896e54dbc88e7dd84f
DIST netsurf-3.10-src.tar.gz 4084480 BLAKE2B 267ce1811cbf11d053f721e22b8a6d484e796102a4c9baaa10580d92cc1eecfe3f126fb97456262675c962ec88a5235e48dc85f2a5168631f6c9dd5b5082b43b SHA512 1b1153916438e08146271dc04200aefbdba3b2c4ca9432a43abfc3811b5418df7ed21bbd91767f12d04331a236227379d2c412fcf13f25349685a549723bf13d
EBUILD netsurf-3.10-r6.ebuild 4522 BLAKE2B d9f8f044ac53fde47327b570019c63243042a9308d6849fda08e3be862e449857c0745af2b3a9b980d39a321dacd0415c30511f9a6ad2ce01f1081735f8c1bb5 SHA512 e405ecacbcb1efa80515848a9204001f241d1a21ca2f84f4b6063936563577f6a1a064425252b28b53f4679cdc25cd4e47736756ae51f32bbe4c5e6d4a594d7e
+EBUILD netsurf-9999.ebuild 3904 BLAKE2B 207ff02e7a9220324a6d457ce72af1eae31bdd18b02697b6a20c0b6cdd3b0d83ad8f0ba295272bd454d74b02144340a7439e27dd21a51044d18fbbd3c9fa92aa SHA512 1c9e5da740ccdf816a252f7047f3a24b3249f1606e2e8fc5e7a97e5ad39788888ea05df93e99280c476afb095d6b75daac65ff5d8282f398718eaa9e554605ad
MISC metadata.xml 1573 BLAKE2B 9f18bc86b6f86be500f20fe857ffad4c6f7720af27766c8b5bdeb29eb02a7831ce3f8fd38f958507cfaf0a7d18e5cd139cc2d771d0ba6153bb76b343c6b01448 SHA512 411479884291b97a164bbaf434ce486354bb3525ad4cab408b46069235ed8ee9af89fff30ee837d14aae79a9b7d8f84206a1ee381afebd5ade4111e2ded8fbc4
diff --git a/www-client/netsurf/netsurf-9999.ebuild b/www-client/netsurf/netsurf-9999.ebuild
new file mode 100644
index 000000000000..0cf6ef50f6e0
--- /dev/null
+++ b/www-client/netsurf/netsurf-9999.ebuild
@@ -0,0 +1,147 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit desktop git-r3 netsurf toolchain-funcs
+
+DESCRIPTION="A free, open source web browser"
+HOMEPAGE="https://www.netsurf-browser.org/"
+
+EGIT_REPO_URI="https://git.netsurf-browser.org/${PN}.git"
+LICENSE="GPL-2 MIT"
+SLOT="0"
+KEYWORDS=""
+IUSE="bmp fbcon truetype +gif +gtk +javascript +jpeg mng
+ +png +psl rosprite +svg +svgtiny +webp"
+
+REQUIRED_USE="|| ( fbcon gtk )"
+
+RDEPEND="
+ >=dev-libs/libcss-9999
+ >=net-libs/libdom-9999
+ net-libs/libhubbub
+ >=dev-libs/libnsutils-9999
+ dev-libs/libutf8proc
+ dev-libs/libxml2:2
+ net-misc/curl
+ bmp? ( media-libs/libnsbmp )
+ fbcon? (
+ dev-libs/libnsfb
+ truetype? (
+ media-fonts/dejavu
+ media-libs/freetype
+ )
+ )
+ gif? ( >=media-libs/libnsgif-9999 )
+ gtk? (
+ dev-libs/glib:2
+ x11-libs/gtk+:3
+ )
+ javascript? (
+ dev-libs/nsgenbind
+ dev-lang/duktape:=
+ )
+ jpeg? ( media-libs/libjpeg-turbo:= )
+ mng? ( media-libs/libmng:= )
+ png? ( media-libs/libpng:0= )
+ psl? ( media-libs/libnspsl )
+ rosprite? ( media-libs/librosprite )
+ svg? (
+ svgtiny? ( media-libs/libsvgtiny )
+ !svgtiny? ( gnome-base/librsvg:2 )
+ )
+ webp? ( media-libs/libwebp )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ javascript? ( app-editors/vim-core )
+ dev-libs/check
+ dev-perl/HTML-Parser
+ dev-util/netsurf-buildsystem
+ virtual/pkgconfig
+"
+
+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_JS=NO
+ NETSURF_USE_DUKTAPE=$(usex javascript YES 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 gtk && _emake TARGET=gtk3
+}
+
+src_test() {
+ _emake test
+}
+
+src_install() {
+ 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 %u" \
+ NetSurf-framebuffer \
+ 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 %u" \
+ NetSurf-gtk3 \
+ netsurf \
+ "Network;WebBrowser"
+ fi
+
+ insinto /usr/share/pixmaps
+ doins frontends/gtk/res/netsurf.xpm
+ doman docs/netsurf-fb.1
+ doman docs/netsurf-gtk.1
+}