From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A3ECA15808C for ; Wed, 16 Mar 2022 01:01:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 41C0BE07F0; Wed, 16 Mar 2022 01:01:34 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8BCE5E07F0 for ; Wed, 16 Mar 2022 01:01:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 10D6A34360D for ; Wed, 16 Mar 2022 01:01:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6D3DB324 for ; Wed, 16 Mar 2022 01:01:30 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1647392474.33a835fe4c5824b7d30e825ae445ea59abf79552.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/netsurf/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-client/netsurf/netsurf-3.10-r5.ebuild X-VCS-Directories: www-client/netsurf/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 33a835fe4c5824b7d30e825ae445ea59abf79552 X-VCS-Branch: master Date: Wed, 16 Mar 2022 01:01:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0b8a941b-f3c2-489f-a330-ebbadcc5a830 X-Archives-Hash: 83907632730eae3293cb986bbbb11567 commit: 33a835fe4c5824b7d30e825ae445ea59abf79552 Author: Sam James gentoo org> AuthorDate: Wed Mar 16 00:13:43 2022 +0000 Commit: Sam James gentoo org> CommitDate: Wed Mar 16 01:01:14 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33a835fe www-client/netsurf: enhance desktop files Closes: https://bugs.gentoo.org/823047 Thanks-to: Andrey Volkov ekb-info.ru> Signed-off-by: Sam James gentoo.org> www-client/netsurf/netsurf-3.10-r5.ebuild | 154 ++++++++++++++++++++++++++++++ 1 file changed, 154 insertions(+) diff --git a/www-client/netsurf/netsurf-3.10-r5.ebuild b/www-client/netsurf/netsurf-3.10-r5.ebuild new file mode 100644 index 000000000000..d22096570357 --- /dev/null +++ b/www-client/netsurf/netsurf-3.10-r5.ebuild @@ -0,0 +1,154 @@ +# Copyright 1999-2022 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 ~arm ~arm64 ~ppc ~ppc64 ~x86" +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.4.1-r1 + >=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 )" +DEPEND="${RDEPEND}" +BDEPEND=" + duktape? ( app-editors/vim-core ) + dev-libs/check + dev-perl/HTML-Parser + >=dev-util/netsurf-buildsystem-1.7-r1 + 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_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 %u" \ + 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 %u" \ + 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 %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 +}