public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michael Orlitzky" <mjo@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/netsurf/
Date: Fri, 19 Jan 2024 09:31:39 +0000 (UTC)	[thread overview]
Message-ID: <1705656579.c354266f9470b01cd4b047cae88de05f3f7cf504.mjo@gentoo> (raw)

commit:     c354266f9470b01cd4b047cae88de05f3f7cf504
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 18 20:26:34 2024 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Fri Jan 19 09:29:39 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c354266f

www-client/netsurf: add 3.11

Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 www-client/netsurf/Manifest            |   1 +
 www-client/netsurf/netsurf-3.11.ebuild | 144 +++++++++++++++++++++++++++++++++
 2 files changed, 145 insertions(+)

diff --git a/www-client/netsurf/Manifest b/www-client/netsurf/Manifest
index 974348b603a7..721779486c91 100644
--- a/www-client/netsurf/Manifest
+++ b/www-client/netsurf/Manifest
@@ -1 +1,2 @@
 DIST netsurf-3.10-src.tar.gz 4084480 BLAKE2B 267ce1811cbf11d053f721e22b8a6d484e796102a4c9baaa10580d92cc1eecfe3f126fb97456262675c962ec88a5235e48dc85f2a5168631f6c9dd5b5082b43b SHA512 1b1153916438e08146271dc04200aefbdba3b2c4ca9432a43abfc3811b5418df7ed21bbd91767f12d04331a236227379d2c412fcf13f25349685a549723bf13d
+DIST netsurf-3.11-src.tar.gz 4311767 BLAKE2B aa361b44ddb90fe513e0c34ae7d5f320037c439abb2455f50c224db118cf51da8bbeeac1276f0afdb5763287a6ffaba9d8fad460718ab0659871c1fda143513a SHA512 852ed7afe891828e7e594f1906ed5a7af9c62511b61dbe37ff1ca0700e3b08151db952ad47a18f9c8cfd3f6d78fd93485aa8e39de08eca904f5dbfa747af90c3

diff --git a/www-client/netsurf/netsurf-3.11.ebuild b/www-client/netsurf/netsurf-3.11.ebuild
new file mode 100644
index 000000000000..bd02ef430762
--- /dev/null
+++ b/www-client/netsurf/netsurf-3.11.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop netsurf toolchain-funcs
+
+DESCRIPTION="A free, open source web browser"
+HOMEPAGE="https://www.netsurf-browser.org/"
+SRC_URI="https://download.netsurf-browser.org/netsurf/releases/source/${P}-src.tar.gz"
+
+LICENSE="GPL-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
+IUSE="bmp fbcon truetype +gif +gtk +javascript +jpeg
+	+png +psl rosprite +svg +svgtiny +webp"
+
+REQUIRED_USE="|| ( fbcon gtk )"
+
+RDEPEND="
+	dev-libs/libcss
+	dev-libs/libnsutils
+	dev-libs/openssl:=
+	dev-libs/libutf8proc
+	dev-libs/libxml2:2
+	net-misc/curl
+	net-libs/libdom
+	>=net-libs/libhubbub-0.3.8
+	bmp? ( media-libs/libnsbmp )
+	fbcon? (
+		dev-libs/libnsfb
+		truetype? (
+			media-fonts/dejavu
+			media-libs/freetype
+		)
+	)
+	gif? ( >=media-libs/libnsgif-1.0.0 )
+	gtk? (
+		dev-libs/glib:2
+		x11-libs/gtk+:3
+	)
+	javascript? (
+		dev-libs/nsgenbind
+		dev-lang/duktape:=
+	)
+	jpeg? ( media-libs/libjpeg-turbo:= )
+	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="
+	dev-libs/check
+	dev-perl/HTML-Parser
+	dev-build/netsurf-buildsystem
+	virtual/pkgconfig
+"
+
+PATCHES=(
+	"${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_FB_FONTLIB=$(usex truetype freetype internal)
+		NETSURF_FB_FONTPATH="${EPREFIX}/usr/share/fonts/dejavu"
+		NETSURF_USE_BMP=$(usex bmp YES NO)
+		NETSURF_USE_DUKTAPE=$(usex javascript 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_NSSVG=$(usex svg $(usex svgtiny YES NO) NO)
+		NETSURF_USE_OPENSSL=YES
+		NETSURF_USE_ROSPRITE=$(usex rosprite YES NO)
+		NETSURF_USE_RSVG=$(usex svg $(usex svgtiny NO YES) NO)
+		NETSURF_USE_WEBP=$(usex webp YES NO)
+		NETSURF_USE_VIDEO=NO
+		PKG_CONFIG=$(tc-getPKG_CONFIG)
+	)
+
+	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
+}


             reply	other threads:[~2024-01-19  9:31 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-19  9:31 Michael Orlitzky [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-06-09  3:13 [gentoo-commits] repo/gentoo:master commit in: www-client/netsurf/ Sam James
2024-03-04 19:11 Jakov Smolić
2024-02-09 12:24 Michael Orlitzky
2024-01-19  9:31 Michael Orlitzky
2023-08-15  0:26 Michael Orlitzky
2023-08-15  0:26 Michael Orlitzky
2023-08-14 21:15 Michael Orlitzky
2023-07-05 20:43 Michael Orlitzky
2023-07-05 20:43 Michael Orlitzky
2023-05-27 22:02 Michael Orlitzky
2022-08-26 10:46 Sam James
2022-03-22 18:43 Jakov Smolić
2022-03-16 23:46 Sam James
2022-03-16 23:45 Sam James
2022-03-16  2:39 Sam James
2022-03-16  2:23 Sam James
2022-03-16  1:03 Sam James
2022-03-16  1:01 Sam James
2022-03-16  1:01 Sam James
2021-11-20 15:34 Arthur Zamarin
2021-11-10 17:56 Jakov Smolić
2021-03-30 17:38 Sam James
2020-11-13 16:57 Sam James
2020-10-17 11:29 Joonas Niilola
2020-09-29 22:48 Sam James
2020-08-15 12:03 Michael Orlitzky
2020-07-19 10:43 Joonas Niilola
2020-07-15 14:01 Michael Orlitzky
2020-07-05  8:40 Sergei Trofimovich
2020-06-30 13:10 Michael Orlitzky
2020-06-29 17:08 Michael Orlitzky
2020-06-29  1:26 Michael Orlitzky
2020-06-29  1:26 Michael Orlitzky
2019-12-10  8:06 Joonas Niilola
2019-12-10  6:35 Joonas Niilola
2019-12-05  8:03 Joonas Niilola
2019-12-04 14:49 Joonas Niilola
2019-09-23  8:07 Michał Górny
2019-07-05 19:05 Virgil Dupras
2019-02-17 17:46 Sergei Trofimovich
2019-02-07 13:08 Virgil Dupras
2018-11-13 18:13 Virgil Dupras
2018-11-07 19:48 Virgil Dupras
2018-10-21 20:54 Virgil Dupras
2018-10-19  8:51 Michał Górny
2017-01-26  7:35 Michael Weber
2016-07-25 17:45 Chí-Thanh Christopher Nguyễn
2016-05-07 21:44 Michael Weber
2016-03-03  1:03 Michael Weber
2016-03-02 23:24 Michael Weber
2015-08-11 14:15 Michael Weber
2015-08-10 21:38 Sergei Trofimovich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1705656579.c354266f9470b01cd4b047cae88de05f3f7cf504.mjo@gentoo \
    --to=mjo@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox