logo

overlay

My (experimental) gentoo overlay
commit: f9785cc8152a7be62b26b82c5bb5a163020824c9
parent: e5dcbaf223d867184ef809b8ba4e41737ec150e5
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 11 Mar 2019 10:39:34 +0100

www-client/badwolf: Apply bugfix on 0.0.3

Diffstat:

Awww-client/badwolf/badwolf-0.0.3-r1.ebuild25+++++++++++++++++++++++++
Dwww-client/badwolf/badwolf-0.0.3.ebuild23-----------------------
Awww-client/badwolf/files/badwolf-0.0.3-bugfix_javascript-toggle.patch32++++++++++++++++++++++++++++++++
3 files changed, 57 insertions(+), 23 deletions(-)

diff --git a/www-client/badwolf/badwolf-0.0.3-r1.ebuild b/www-client/badwolf/badwolf-0.0.3-r1.ebuild @@ -0,0 +1,25 @@ +# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Minimalist and privacy-oriented WebKitGTK+ browser" +HOMEPAGE="https://hacktivis.me/git/badwolf" +SRC_URI="https://hacktivis.me/releases/${P}.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +DOCS=("README.md" "KnowledgeBase.md") + +PATCHES=("${FILESDIR}/${P}-bugfix_javascript-toggle.patch") + +DEPEND=" + x11-libs/gtk+:3 + net-libs/webkit-gtk +" + +src_install() { + emake DESTDIR="${D}" PREFIX="/usr" install + einstalldocs +} diff --git a/www-client/badwolf/badwolf-0.0.3.ebuild b/www-client/badwolf/badwolf-0.0.3.ebuild @@ -1,23 +0,0 @@ -# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DESCRIPTION="Minimalist and privacy-oriented WebKitGTK+ browser" -HOMEPAGE="https://hacktivis.me/git/badwolf" -SRC_URI="https://hacktivis.me/releases/${P}.tar.gz" -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64" - -DOCS=("README.md" "KnowledgeBase.md") - -DEPEND=" - x11-libs/gtk+:3 - net-libs/webkit-gtk -" - -src_install() { - emake DESTDIR="${D}" PREFIX="/usr" install - einstalldocs -} diff --git a/www-client/badwolf/files/badwolf-0.0.3-bugfix_javascript-toggle.patch b/www-client/badwolf/files/badwolf-0.0.3-bugfix_javascript-toggle.patch @@ -0,0 +1,32 @@ +From ab625a729cf4baa7ca1b22a6c1f2021cce8bf4ec Mon Sep 17 00:00:00 2001 +From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me> +Date: Mon, 11 Mar 2019 10:05:51 +0100 +Subject: [PATCH 1/2] Bugfix: Use the state of the button to set javascript + +--- + badwolf.c | 5 ++--- + 1 file changed, 2 insertions(+), 3 deletions(-) + +diff --git a/badwolf.c b/badwolf.c +index 003dda5..bfdde4c 100644 +--- a/badwolf.c ++++ b/badwolf.c +@@ -131,13 +131,12 @@ static gboolean locationCb_activate(GtkEntry *location, gpointer user_data) + + static gboolean javascriptCb_toggled(GtkButton *javascript, gpointer user_data) + { +- (void)javascript; + struct Client *browser = (struct Client *)user_data; + + WebKitSettings *settings = webkit_web_view_get_settings(browser->webView); + +- gboolean javascript_enabled = webkit_settings_get_enable_javascript(settings); +- webkit_settings_set_enable_javascript(settings, !javascript_enabled); ++ webkit_settings_set_enable_javascript( ++ settings, gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(javascript))); + + webkit_web_view_set_settings(browser->webView, settings); + +-- +2.19.2 +