diff options
author | 2017-01-31 01:47:10 +0100 | |
---|---|---|
committer | 2017-01-31 01:47:25 +0100 | |
commit | 5eaa2e2b3465597a97aee855fbf5c97e3209d0f8 (patch) | |
tree | b9e07c1687ca1d769ba6184b5c92a806340ca6fe /www-client | |
parent | www-plugins/chrome-binary-plugins: automated update (57.0.2987.13) (diff) | |
download | gentoo-5eaa2e2b3465597a97aee855fbf5c97e3209d0f8.tar.gz gentoo-5eaa2e2b3465597a97aee855fbf5c97e3209d0f8.tar.bz2 gentoo-5eaa2e2b3465597a97aee855fbf5c97e3209d0f8.zip |
www-client/netsurf: Fix USE=gstreamer (bug 607650, thanks ernsteiswuerfel), limit NETSURF_USE_VIDEO to gtk/gtk3 versions.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/netsurf/files/netsurf-3.6-gstreamer.patch | 31 | ||||
-rw-r--r-- | www-client/netsurf/netsurf-3.6.ebuild | 11 |
2 files changed, 40 insertions, 2 deletions
diff --git a/www-client/netsurf/files/netsurf-3.6-gstreamer.patch b/www-client/netsurf/files/netsurf-3.6-gstreamer.patch new file mode 100644 index 000000000000..6aca4f6abdf9 --- /dev/null +++ b/www-client/netsurf/files/netsurf-3.6-gstreamer.patch @@ -0,0 +1,31 @@ +--- netsurf-3.6/frontends/gtk/Makefile ++++ netsurf-3.6/frontends/gtk/Makefile +@@ -16,7 +16,6 @@ + + # GTK and GLIB flags to disable depricated usage + GTKDEPFLAGS := -DG_DISABLE_SINGLE_INCLUDES \ +- -DG_DISABLE_DEPRECATED \ + -DGTK_DISABLE_SINGLE_INCLUDES \ + -DGTK_MULTIHEAD_SAFE \ + -DPANGO_DISABLE_DEPRECATED +--- netsurf-3.6/content/handlers/image/video.c ++++ netsurf-3.6/content/handlers/image/video.c +@@ -22,6 +22,8 @@ + #include "content/content_protected.h" + + #include "image/video.h" ++#include "utils/http/parameter.h" ++#include "content/llcache.h" + + typedef struct nsvideo_content { + struct content base; +--- netsurf-3.6/content/content_factory.h ++++ netsurf-3.6/content/content_factory.h +@@ -25,6 +25,7 @@ + + #include "netsurf/content_type.h" + #include "utils/errors.h" ++#include "utils/utils.h" + + #define CONTENT_FACTORY_REGISTER_TYPES(HNAME, HTYPELIST, HHANDLER) \ + \ diff --git a/www-client/netsurf/netsurf-3.6.ebuild b/www-client/netsurf/netsurf-3.6.ebuild index 8de3bdb62b6f..5d075befb574 100644 --- a/www-client/netsurf/netsurf-3.6.ebuild +++ b/www-client/netsurf/netsurf-3.6.ebuild @@ -64,7 +64,8 @@ DEPEND="${RDEPEND} PATCHES=( "${FILESDIR}"/${PN}-3.6-CFLAGS.patch "${FILESDIR}"/${PN}-3.6-conditionally-include-image-headers.patch - "${FILESDIR}"/${PN}-3.6-pdf-writer.patch ) + "${FILESDIR}"/${PN}-3.6-pdf-writer.patch + "${FILESDIR}"/${PN}-3.6-gstreamer.patch ) DOCS=( fb.modes README Docs/USING-Framebuffer Docs/ideas/{cache,css-engine,render-library}.txt ) @@ -87,7 +88,6 @@ src_configure() { NETSURF_USE_NSPSL=$(usex psl YES NO) NETSURF_USE_MNG=$(usex mng YES NO) NETSURF_USE_WEBP=$(usex webp YES NO) - NETSURF_USE_VIDEO=$(usex gstreamer 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) @@ -104,20 +104,24 @@ src_configure() { NETSURF_FB_FONTLIB=$(usex truetype freetype internal) NETSURF_FB_FONTPATH=${EROOT}usr/share/fonts/dejavu TARGET=dummy + NETSURF_USE_VIDEO=dummy ) } src_compile() { if use fbcon ; then netsurf_makeconf=( "${netsurf_makeconf[@]/TARGET=*/TARGET=framebuffer}" ) + netsurf_makeconf=( "${netsurf_makeconf[@]/NETSURF_USE_VIDEO=*/NETSURF_USE_VIDEO=NO}" ) netsurf_src_compile fi if use gtk2 ; then netsurf_makeconf=( "${netsurf_makeconf[@]/TARGET=*/TARGET=gtk}" ) + netsurf_makeconf=( "${netsurf_makeconf[@]/NETSURF_USE_VIDEO=*/NETSURF_USE_VIDEO=$(usex gstreamer YES NO)}" ) netsurf_src_compile fi if use gtk3 || use gtk ; then netsurf_makeconf=( "${netsurf_makeconf[@]/TARGET=*/TARGET=gtk3}" ) + netsurf_makeconf=( "${netsurf_makeconf[@]/NETSURF_USE_VIDEO=*/NETSURF_USE_VIDEO=$(usex gstreamer YES NO)}" ) netsurf_src_compile fi } @@ -128,6 +132,7 @@ src_install() { if use fbcon ; then netsurf_makeconf=( "${netsurf_makeconf[@]/TARGET=*/TARGET=framebuffer}" ) + netsurf_makeconf=( "${netsurf_makeconf[@]/NETSURF_USE_VIDEO=*/NETSURF_USE_VIDEO=NO}" ) netsurf_src_install elog "framebuffer binary has been installed as netsurf-fb" make_desktop_entry "${EROOT}"usr/bin/netsurf-fb NetSurf-framebuffer netsurf "Network;WebBrowser" @@ -138,12 +143,14 @@ src_install() { fi if use gtk2 ; then netsurf_makeconf=( "${netsurf_makeconf[@]/TARGET=*/TARGET=gtk}" ) + netsurf_makeconf=( "${netsurf_makeconf[@]/NETSURF_USE_VIDEO=*/NETSURF_USE_VIDEO=$(usex gstreamer YES NO)}" ) netsurf_src_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 gtk3 || use gtk ; then netsurf_makeconf=( "${netsurf_makeconf[@]/TARGET=*/TARGET=gtk3}" ) + netsurf_makeconf=( "${netsurf_makeconf[@]/NETSURF_USE_VIDEO=*/NETSURF_USE_VIDEO=$(usex gstreamer YES NO)}" ) netsurf_src_install elog "netsurf gtk3 version has been installed as netsurf-gtk3" make_desktop_entry "${EROOT}"usr/bin/netsurf-gtk3 NetSurf-gtk3 netsurf "Network;WebBrowser" |