diff options
author | Michael Orlitzky <mjo@gentoo.org> | 2020-06-21 07:59:02 -0400 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2020-06-21 08:17:07 -0400 |
commit | ea3a0d58c227f32144980fd2039c5948f01493dd (patch) | |
tree | 36994363b99e6449a7819f9dc16392e97ab7dd6c /www-client/netsurf | |
parent | www-client/netsurf: new version 3.10. (diff) | |
download | gentoo-ea3a0d58c227f32144980fd2039c5948f01493dd.tar.gz gentoo-ea3a0d58c227f32144980fd2039c5948f01493dd.tar.bz2 gentoo-ea3a0d58c227f32144980fd2039c5948f01493dd.zip |
www-client/netsurf: remove old "unused" versions.
This drops the keyworded arm, ppc, and ppc64 versions, but somebody
else kind of screwed us on that by simply omitting the javascript
engine as a dependency (???) instead of dealing with the keyword
problem when it first arose. I'll file a re-keyword bug.
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'www-client/netsurf')
-rw-r--r-- | www-client/netsurf/Manifest | 2 | ||||
-rw-r--r-- | www-client/netsurf/files/netsurf-3.6-conditionally-include-image-headers.patch | 31 | ||||
-rw-r--r-- | www-client/netsurf/files/netsurf-3.8-CFLAGS.patch | 79 | ||||
-rw-r--r-- | www-client/netsurf/files/netsurf-3.8-pdf-writer.patch | 86 | ||||
-rw-r--r-- | www-client/netsurf/metadata.xml | 67 | ||||
-rw-r--r-- | www-client/netsurf/netsurf-3.8-r2.ebuild | 129 | ||||
-rw-r--r-- | www-client/netsurf/netsurf-3.9.ebuild | 131 |
7 files changed, 36 insertions, 489 deletions
diff --git a/www-client/netsurf/Manifest b/www-client/netsurf/Manifest index 5581ea1266db..974348b603a7 100644 --- a/www-client/netsurf/Manifest +++ b/www-client/netsurf/Manifest @@ -1,3 +1 @@ DIST netsurf-3.10-src.tar.gz 4084480 BLAKE2B 267ce1811cbf11d053f721e22b8a6d484e796102a4c9baaa10580d92cc1eecfe3f126fb97456262675c962ec88a5235e48dc85f2a5168631f6c9dd5b5082b43b SHA512 1b1153916438e08146271dc04200aefbdba3b2c4ca9432a43abfc3811b5418df7ed21bbd91767f12d04331a236227379d2c412fcf13f25349685a549723bf13d -DIST netsurf-3.8-src.tar.gz 3945752 BLAKE2B 0f4592e53e95cfedb3c34a16ce9df9baeeaed93afb3bac3d68dab1e3d80e67c0498111c123285f6e828d063574e0e5f0cc3aa337ffab066f2283d06d248a308a SHA512 6f4dfdc546cce3b85d32da0dd816adc9a39410ed42bc28f263f4a1db64b35a889a1784a4116715190e756988dd263976933cfac75c9dcd81af01954487ddcaf6 -DIST netsurf-3.9-src.tar.gz 3989742 BLAKE2B a147a99bea00163147cb39b16ff8b7b874c58d386e60eb8aa568b3ce30e4957708c9720a5291a2aa37bc6d8d4bd0eaf4e2dc1a2bc2fff396cb4d972dd887e024 SHA512 061a1c6379b48582d842ed1ca6cea59b87cd84cd13769bdc32b623a56cebc69e94af9d65f4abd959608c98da9d0006f7842f875017569e6a3f7b77cbb928f24a diff --git a/www-client/netsurf/files/netsurf-3.6-conditionally-include-image-headers.patch b/www-client/netsurf/files/netsurf-3.6-conditionally-include-image-headers.patch deleted file mode 100644 index 06754464cb6c..000000000000 --- a/www-client/netsurf/files/netsurf-3.6-conditionally-include-image-headers.patch +++ /dev/null @@ -1,31 +0,0 @@ ---- netsurf-3.6/content/handlers/image/image.c -+++ netsurf-3.6/content/handlers/image/image.c -@@ -27,14 +27,28 @@ - #include "netsurf/content.h" - #include "desktop/gui_internal.h" - -+#ifdef WITH_BMP - #include "image/bmp.h" -+#endif -+#ifdef WITH_GIF - #include "image/gif.h" -+#endif - #include "image/ico.h" -+#ifdef WITH_JPEG - #include "image/jpeg.h" -+#endif -+#ifdef WITH_NSSPRITE - #include "image/nssprite.h" -+#endif -+#ifdef WITH_PNG - #include "image/png.h" -+#endif -+#ifdef WITH_RSVG - #include "image/rsvg.h" -+#endif -+#ifdef WITH_NS_SVG - #include "image/svg.h" -+#endif - #include "image/image.h" - - /** diff --git a/www-client/netsurf/files/netsurf-3.8-CFLAGS.patch b/www-client/netsurf/files/netsurf-3.8-CFLAGS.patch deleted file mode 100644 index c52422dcb92b..000000000000 --- a/www-client/netsurf/files/netsurf-3.8-CFLAGS.patch +++ /dev/null @@ -1,79 +0,0 @@ -diff --git a/Makefile.defaults b/Makefile.defaults -index 51090109e..f1ec46f73 100644 ---- a/Makefile.defaults -+++ b/Makefile.defaults -@@ -114,12 +114,6 @@ NETSURF_USE_SANITIZERS := NO - # But recover after sanitizer failure - NETSURF_RECOVER_SANITIZERS := YES - --# Initial CFLAGS. Optimisation level etc. tend to be target specific. --CFLAGS := -- --# Initial CXXFLAGS. Optimisation level etc. tend to be target specific. --CXXFLAGS := -- - # Default installation/execution prefix - PREFIX ?= /usr/local - -diff --git a/frontends/framebuffer/Makefile b/frontends/framebuffer/Makefile -index bdedd903b..35179138a 100644 ---- a/frontends/framebuffer/Makefile -+++ b/frontends/framebuffer/Makefile -@@ -20,7 +20,7 @@ CFLAGS += '-DNETSURF_FB_FONT_MONOSPACE_BOLD="$(NETSURF_FB_FONT_MONOSPACE_BOLD)"' - CFLAGS += '-DNETSURF_FB_FONT_CURSIVE="$(NETSURF_FB_FONT_CURSIVE)"' - CFLAGS += '-DNETSURF_FB_FONT_FANTASY="$(NETSURF_FB_FONT_FANTASY)"' - --CFLAGS += -std=c99 -g -Dsmall \ -+CFLAGS += -std=c99 -Dsmall \ - -D_BSD_SOURCE \ - -D_DEFAULT_SOURCE \ - -D_XOPEN_SOURCE=600 \ -diff --git a/frontends/framebuffer/Makefile.defaults b/frontends/framebuffer/Makefile.defaults -index cc712e992..f132c97d6 100644 ---- a/frontends/framebuffer/Makefile.defaults -+++ b/frontends/framebuffer/Makefile.defaults -@@ -3,7 +3,7 @@ - # ---------------------------------------------------------------------------- - - # Optimisation levels --CFLAGS += -O2 -+CFLAGS += - - # Framebuffer default surface provider. - # Valid values are: x, sdl, linux, vnc, able, -diff --git a/frontends/gtk/Makefile b/frontends/gtk/Makefile -index ec60ce70c..04af6df8f 100644 ---- a/frontends/gtk/Makefile -+++ b/frontends/gtk/Makefile -@@ -33,7 +33,7 @@ GTKDEPFLAGS += -DGTK_DISABLE_DEPRECATED - endif - - --GTKCFLAGS := -std=c99 -Dgtk -Dnsgtk -g \ -+GTKCFLAGS := -std=c99 -Dgtk -Dnsgtk \ - $(GTKDEPFLAGS) \ - -D_BSD_SOURCE \ - -D_DEFAULT_SOURCE \ -diff --git a/frontends/gtk/Makefile.defaults b/frontends/gtk/Makefile.defaults -index a98043eb9..bb5371230 100644 ---- a/frontends/gtk/Makefile.defaults -+++ b/frontends/gtk/Makefile.defaults -@@ -39,4 +39,4 @@ NETSURF_FS_BACKING_STORE := YES - NETSURF_GTK_MAJOR ?= 2 - - # Optimisation levels --CFLAGS += -O2 -+CFLAGS += -diff --git a/test/Makefile b/test/Makefile -index 4f9dd22c9..8bec9b88a 100644 ---- a/test/Makefile -+++ b/test/Makefile -@@ -134,7 +134,7 @@ ifneq ($(CC_MAJOR),2) - COMMON_WARNFLAGS += -Wno-unused-parameter - endif - --BASE_TESTCFLAGS := -std=c99 -g \ -+BASE_TESTCFLAGS := -std=c99 \ - $(COMMON_WARNFLAGS) \ - -D_DEFAULT_SOURCE \ - -D_POSIX_C_SOURCE=200809L \ diff --git a/www-client/netsurf/files/netsurf-3.8-pdf-writer.patch b/www-client/netsurf/files/netsurf-3.8-pdf-writer.patch deleted file mode 100644 index e9c2420a33fd..000000000000 --- a/www-client/netsurf/files/netsurf-3.8-pdf-writer.patch +++ /dev/null @@ -1,86 +0,0 @@ -diff --git a/desktop/font_haru.c b/desktop/font_haru.c -index 4ee9824f0..3304ba82a 100644 ---- a/desktop/font_haru.c -+++ b/desktop/font_haru.c -@@ -37,7 +37,7 @@ - #include <hpdf.h> - - #include "utils/nsoption.h" --#include "desktop/save_pdf/font_haru.h" -+#include "desktop/font_haru.h" - #include "desktop/font.h" - #include "utils/log.h" - -diff --git a/desktop/save_pdf.c b/desktop/save_pdf.c -index 889190089..9e6265cfb 100644 ---- a/desktop/save_pdf.c -+++ b/desktop/save_pdf.c -@@ -60,6 +60,8 @@ - #include "utils/useragent.h" - #include "content/hlcache.h" - #include "utils/nsoption.h" -+#include "desktop/gui_misc.h" -+#include "desktop/gui_internal.h" - #include "netsurf/bitmap.h" - - #include "netsurf/plotters.h" -@@ -455,11 +457,6 @@ HPDF_Image pdf_extract_image(struct bitmap *bitmap) - - switch(content_get_type(content)){ - /*Handle "embeddable" types of images*/ -- case CONTENT_JPEG: -- image = HPDF_LoadJpegImageFromMem(pdf_doc, -- (const HPDF_BYTE *) source_data, -- source_size); -- break; - - /*Disabled until HARU PNG support will be more stable. - -@@ -706,7 +703,7 @@ bool pdf_begin(struct print_settings *print_settings) - - - #ifndef PDF_DEBUG -- if (option_enable_PDF_compression) -+ if (nsoption_bool(enable_PDF_compression)) - HPDF_SetCompressionMode(pdf_doc, HPDF_COMP_ALL); /*Compression on*/ - #endif - HPDF_SetInfoAttr(pdf_doc, HPDF_INFO_CREATOR, user_agent_string()); -@@ -780,7 +777,7 @@ void pdf_end(void) - assert(settings->output != NULL); - - /*Encryption on*/ -- if (option_enable_PDF_password) -+ if (nsoption_bool(enable_PDF_password)) - guit->misc->pdf_password(&owner_pass, &user_pass, - (void *)settings->output); - else -@@ -795,7 +792,7 @@ nserror save_pdf(const char *path) - { - nserror res = NSERROR_OK; - -- if (option_enable_PDF_password && owner_pass != NULL ) { -+ if (nsoption_bool(enable_PDF_password) && owner_pass != NULL ) { - HPDF_SetPassword(pdf_doc, owner_pass, user_pass); - HPDF_SetEncryptionMode(pdf_doc, HPDF_ENCRYPT_R3, 16); - free(owner_pass); -diff --git a/frontends/gtk/scaffolding.c b/frontends/gtk/scaffolding.c -index 8c46fd884..748518fdc 100644 ---- a/frontends/gtk/scaffolding.c -+++ b/frontends/gtk/scaffolding.c -@@ -853,14 +853,14 @@ MULTIHANDLER(pdf) - - free(url_name); - -- strncpy(dirname, option_downloads_directory, PATH_MAX); -+ strncpy(dirname, nsoption_charp(downloads_directory), PATH_MAX); - strncat(dirname, "/", PATH_MAX - strlen(dirname)); - dirname[PATH_MAX - 1] = '\0'; - - /* this way the scale used by PDF functions is synchronised with that - * used by the all-purpose print interface - */ -- haru_nsfont_set_scale((float)option_export_scale / 100); -+ haru_nsfont_set_scale((float)nsoption_int(export_scale) / 100); - - save_dialog = gtk_file_chooser_dialog_new("Export to PDF", g->window, - GTK_FILE_CHOOSER_ACTION_SAVE, diff --git a/www-client/netsurf/metadata.xml b/www-client/netsurf/metadata.xml index c0afc0380304..4abc84a70da8 100644 --- a/www-client/netsurf/metadata.xml +++ b/www-client/netsurf/metadata.xml @@ -1,36 +1,41 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <maintainer type="person"> - <email>philipp.ammann@posteo.de</email> - <name>Philipp Ammann</name> - </maintainer> - <maintainer type="project"> - <email>proxy-maint@gentoo.org</email> - <name>Proxy Maintainers</name> - </maintainer> - <upstream> - <changelog>http://download.netsurf-browser.org/netsurf/releases/ChangeLog.txt</changelog> - </upstream> - <use> - <flag name="bmp">BMP bitmap image support (media-libs/libnsbmp)</flag> - <flag name="duktape">Use duktape.org javascript engine</flag> - <flag name="gtk">Build GTK3 GUI</flag> - <flag name="gtk2">Build GTK2 GUI</flag> - <flag name="pdf-writer">PDF output support (media-libs/libharu)</flag> - <flag name="psl">Use public suffix list via media-libs/libnspsl</flag> - <flag name="rosprite">RISC OS Sprite bitmap image support (media-libs/librosprite)</flag> - <flag name="svgtiny">SVG image support via media-libs/svgatiny instead of gnome-base/librsvg</flag> - </use> - <longdescription lang="en"> - NetSurf is a free, open source web browser. It is written in C, has - its own layout and rendering engine entirely written from scratch. It - is small and capable of handling many of the web standards in use - today. + <maintainer type="person"> + <email>philipp.ammann@posteo.de</email> + <name>Philipp Ammann</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <changelog> + https://download.netsurf-browser.org/netsurf/releases/ChangeLog.txt + </changelog> + </upstream> + <use> + <flag name="bmp">BMP bitmap image support (media-libs/libnsbmp)</flag> + <flag name="duktape">Use duktape.org javascript engine</flag> + <flag name="gtk">Build GTK3 GUI</flag> + <flag name="gtk2">Build GTK2 GUI</flag> + <flag name="psl">Use public suffix list via media-libs/libnspsl</flag> + <flag name="rosprite"> + RISC OS Sprite bitmap image support (media-libs/librosprite) + </flag> + <flag name="svgtiny"> + SVG image support via media-libs/svgatiny instead of gnome-base/librsvg + </flag> + </use> + <longdescription lang="en"> + NetSurf is a free, open source web browser. It is written in C, + has its own layout and rendering engine entirely written from + scratch. It is small and capable of handling many of the web + standards in use today. - Whether you want to check your webmail, read the news or post to - discussion forums, NetSurf is your lightweight gateway to the world - wide web. Actively developed, NetSurf is continually evolving and - improving. - </longdescription> + Whether you want to check your webmail, read the news or post to + discussion forums, NetSurf is your lightweight gateway to the + world wide web. Actively developed, NetSurf is continually + evolving and improving. + </longdescription> </pkgmetadata> diff --git a/www-client/netsurf/netsurf-3.8-r2.ebuild b/www-client/netsurf/netsurf-3.8-r2.ebuild deleted file mode 100644 index e9cd87acae48..000000000000 --- a/www-client/netsurf/netsurf-3.8-r2.ebuild +++ /dev/null @@ -1,129 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit toolchain-funcs desktop - -DESCRIPTION="a free, open source web browser" -HOMEPAGE="http://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 ~ppc ~ppc64" -IUSE="+bmp +duktape fbcon truetype +gif gtk gtk2 +javascript +jpeg +mng - pdf-writer +png +psl +rosprite +svg +svgtiny +webp" - -REQUIRED_USE="|| ( fbcon gtk gtk2 ) - duktape? ( javascript )" - -RDEPEND=" - >=dev-libs/libcss-0.8 - >=net-libs/libdom-0.3 - >=net-libs/libhubbub-0.3 - >=dev-libs/libnsutils-0.0.5 - >=dev-libs/libutf8proc-2.2 - dev-libs/libxml2:2 - net-misc/curl - bmp? ( >=media-libs/libnsbmp-0.1 ) - fbcon? ( >=dev-libs/libnsfb-0.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.6 - !duktape? ( dev-lang/spidermonkey:0= ) ) - jpeg? ( >=virtual/jpeg-0-r2:0 ) - mng? ( >=media-libs/libmng-1.0.10-r2 ) - pdf-writer? ( media-libs/libharu ) - 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} - dev-libs/check - dev-perl/HTML-Parser - >=dev-util/netsurf-buildsystem-1.7-r1" - -PATCHES=( - "${FILESDIR}"/${PN}-3.8-CFLAGS.patch - "${FILESDIR}"/${PN}-3.6-conditionally-include-image-headers.patch - "${FILESDIR}"/${PN}-3.8-pdf-writer.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() { - source /usr/share/netsurf-buildsystem/gentoo-helpers.sh - 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_HARU_PDF=$(usex pdf-writer 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=${EROOT}/usr/share/fonts/dejavu - NETSURF_USE_VIDEO=NO - ) - emake "${netsurf_makeconf[@]}" $@ -} - -src_compile() { - use fbcon && _emake TARGET=framebuffer - use gtk2 && _emake TARGET=gtk - 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 - _emake TARGET=framebuffer DESTDIR="${ED}" install - elog "framebuffer binary has been installed as netsurf-fb" - make_desktop_entry "${EROOT}"/usr/bin/netsurf-fb NetSurf-framebuffer netsurf "Network;WebBrowser" - fi - if use gtk2 ; then - _emake TARGET=gtk DESTDIR="${ED}" install - elog "netsurf gtk2 version has been installed as netsurf-gtk" - make_desktop_entry "${EROOT}"/usr/bin/netsurf-gtk NetSurf-gtk netsurf "Network;WebBrowser" - fi - if use gtk ; then - _emake TARGET=gtk3 DESTDIR="${ED}" install - elog "netsurf gtk3 version has been installed as netsurf-gtk3" - make_desktop_entry "${EROOT}"/usr/bin/netsurf-gtk3 NetSurf-gtk3 netsurf "Network;WebBrowser" - fi - - insinto /usr/share/pixmaps - doins frontends/gtk/res/netsurf.xpm -} diff --git a/www-client/netsurf/netsurf-3.9.ebuild b/www-client/netsurf/netsurf-3.9.ebuild deleted file mode 100644 index 89bfe438c733..000000000000 --- a/www-client/netsurf/netsurf-3.9.ebuild +++ /dev/null @@ -1,131 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit toolchain-funcs desktop - -DESCRIPTION="a free, open source web browser" -HOMEPAGE="http://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 ~ppc ~ppc64" -IUSE="+bmp +duktape fbcon truetype +gif gtk gtk2 +javascript +jpeg +mng - pdf-writer +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.0.5 - >=dev-libs/libutf8proc-2.2 - dev-libs/libxml2:2 - net-misc/curl - bmp? ( >=media-libs/libnsbmp-0.1 ) - fbcon? ( >=dev-libs/libnsfb-0.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/spidermonkey:0= ) ) - jpeg? ( >=virtual/jpeg-0-r2:0 ) - mng? ( >=media-libs/libmng-1.0.10-r2 ) - pdf-writer? ( media-libs/libharu ) - 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" - -RESTRICT="test" - -PATCHES=( - "${FILESDIR}"/${PN}-3.9-conditionally-include-image-headers.patch - "${FILESDIR}"/${PN}-3.8-pdf-writer.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() { - source /usr/share/netsurf-buildsystem/gentoo-helpers.sh - 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_HARU_PDF=$(usex pdf-writer 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=${EROOT}/usr/share/fonts/dejavu - NETSURF_USE_VIDEO=NO - ) - emake "${netsurf_makeconf[@]}" $@ -} - -src_compile() { - use fbcon && _emake TARGET=framebuffer - use gtk2 && _emake TARGET=gtk - 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 - _emake TARGET=framebuffer DESTDIR="${ED}" install - elog "framebuffer binary has been installed as netsurf-fb" - make_desktop_entry "${EROOT}"/usr/bin/netsurf-fb NetSurf-framebuffer netsurf "Network;WebBrowser" - fi - if use gtk2 ; then - _emake TARGET=gtk DESTDIR="${ED}" install - elog "netsurf gtk2 version has been installed as netsurf-gtk" - make_desktop_entry "${EROOT}"/usr/bin/netsurf-gtk NetSurf-gtk netsurf "Network;WebBrowser" - fi - if use gtk ; then - _emake TARGET=gtk3 DESTDIR="${ED}" install - elog "netsurf gtk3 version has been installed as netsurf-gtk3" - make_desktop_entry "${EROOT}"/usr/bin/netsurf-gtk3 NetSurf-gtk3 netsurf "Network;WebBrowser" - fi - - insinto /usr/share/pixmaps - doins frontends/gtk/res/netsurf.xpm -} |