Subject: [PATCH] gnu: Add midori.
From: Rene <[email-masked]>
To: "[email-masked]" <[email-masked]>
Date: Sat, 21 Mar 2020 08:57:06 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Guix,

this patch is for adding midori, a web browser.

Thank you
Rene

From 58af41ec0a78d7146a45c74a2598035050cf6a92 Mon Sep 17 00:00:00 2001
From: Rene Saavedra <[email-masked]>
Date: Sat, 21 Mar 2020 02:47:21 -0600
Subject: [PATCH] gnu: Add midori.

* gnu/packages/web-browsers.scm (midori): New variable.
---
 gnu/packages/web-browsers.scm | 40 +++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/web-browsers.scm b/gnu/packages/web-browsers.scm
index 8a6ffaeef1..21a5361bcd 100644
--- a/gnu/packages/web-browsers.scm
+++ b/gnu/packages/web-browsers.scm
@@ -10,6 +10,7 @@
 ;;; Copyright © 2018 Pierre Neidhardt <[email-masked]>
 ;;; Copyright © 2019 Clément Lassieur <[email-masked]>
 ;;; Copyright © 2019 Brett Gilio <[email-masked]>
+;;; Copyright © 2020 Rene Saavedra <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -30,10 +31,12 @@
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (gnu packages)
+  #:use-module (gnu packages backup)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages documentation)
   #:use-module (gnu packages fltk)
   #:use-module (gnu packages fontutils)
+  #:use-module (gnu packages glib)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages gnupg)
   #:use-module (gnu packages libevent)
@@ -57,6 +60,7 @@
   #:use-module (gnu packages gcc)
   #:use-module (guix download)
   #:use-module (guix git-download)
+  #:use-module (guix build-system cmake)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system python)
@@ -630,3 +634,39 @@ key-bindings and is fully configurable and extensible in Common Lisp.")
 
 (define-public sbcl-next
   (deprecated-package "sbcl-next" next))
+
+(define-public midori
+  (package
+    (name "midori")
+    (version "9.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/midori-browser/core/releases/"
+                           "download/v" version "/"
+                           name "-v" version ".tar.gz"))
+       (sha256
+        (base32
+         "05i04qa83dnarmgkx4xsk6fga5lw1lmslh4rb3vhyyy4ala562jy"))))
+    (build-system cmake-build-system)
+    (native-inputs
+     `(("glib" ,glib "bin")
+       ("intltool" ,intltool)
+       ("pkg-config" ,pkg-config)
+       ("vala" ,vala)))
+    (inputs
+     `(("gcr" ,gcr)
+       ("gtk+" ,gtk+)
+       ("json-glib" ,json-glib)
+       ("libarchive" ,libarchive)
+       ("libpeas" ,libpeas)
+       ("libsoup" ,libsoup)
+       ("sqlite" ,sqlite)
+       ("webkitgtk" ,webkitgtk)))
+    (home-page "https://www.midori-browser.org")
+    (synopsis "Lightweight graphical web browser")
+    (description
+     "Midori is a lightweight Webkit-based web browser.  It features are support
+for integration with GTK+3, configurable web search engine, bookmark management,
+extensions such as advertisement blocker and colorful tabs.")
+    (license license:lgpl2.1+)))
-- 
2.21.0