From: "Raphaël Mélotte" <raphael.melotte@gmail.com>
To: 32137@debbugs.gnu.org
Subject: [bug#32137] [PATCH] gnu: Add luakit
Date: Fri, 13 Jul 2018 15:38:20 +0200 [thread overview]
Message-ID: <CA+68scsBAUuKTJ_UyrBszmrL4HEgcQMU7W-LJaL7DwtaW+ie4g@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 159 bytes --]
This patch adds luakit, a lightweight web browser based on webkitgtk.
NB: this is my first patch submission, I apologize in advance if I did
something wrong.
[-- Attachment #1.2: Type: text/html, Size: 204 bytes --]
[-- Attachment #2: 0001-add-luakit.patch --]
[-- Type: text/x-patch, Size: 4073 bytes --]
From 36bae98701a1c04de2820781dd8b7488cac61e30 Mon Sep 17 00:00:00 2001
From: 43317 <43317@etu.he2b.be>
Date: Fri, 13 Jul 2018 15:28:41 +0200
Subject: [PATCH] add luakit
---
gnu/packages/web-browsers.scm | 65 +++++++++++++++++++++++++++++++++++
1 file changed, 65 insertions(+)
diff --git a/gnu/packages/web-browsers.scm b/gnu/packages/web-browsers.scm
index e36677282..02f076bbe 100644
--- a/gnu/packages/web-browsers.scm
+++ b/gnu/packages/web-browsers.scm
@@ -27,12 +27,16 @@
#:use-module (guix packages)
#:use-module (gnu packages)
#:use-module (gnu packages compression)
+ #:use-module (gnu packages databases)
#:use-module (gnu packages documentation)
#:use-module (gnu packages fltk)
#:use-module (gnu packages fontutils)
+ #:use-module (gnu packages gtk)
#:use-module (gnu packages gnupg)
#:use-module (gnu packages libevent)
#:use-module (gnu packages libidn)
+ #:use-module (gnu packages lua)
+ #:use-module (gnu packages gnome)
#:use-module (gnu packages ncurses)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
@@ -41,9 +45,11 @@
#:use-module (gnu packages qt)
#:use-module (gnu packages image)
#:use-module (gnu packages tls)
+ #:use-module (gnu packages webkit)
#:use-module (gnu packages xorg)
#:use-module (guix download)
#:use-module (guix build-system gnu)
+ #:use-module (guix build-system glib-or-gtk)
#:use-module (guix build-system python))
(define-public dillo
@@ -128,6 +134,65 @@ features including, tables, builtin image display, bookmarks, SSL and more.")
;; linking of the program with openssl.
(license license:gpl1+)))
+(define-public luakit
+ (package
+ (name "luakit")
+ (version "2017.08.10")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/luakit/luakit/archive/" version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "0dwxhnq90whakgdg21lzcf03n2g1c7hqgliwhav8av5na5mqpn93"))))
+ (inputs
+ `(("lua-5.1", lua-5.1)
+ ("gtk+" ,gtk+)
+ ("gsettings-desktop-schemas", gsettings-desktop-schemas)
+ ("glib-networking", glib-networking)
+ ("lua5.1-filesystem", lua5.1-filesystem)
+ ("luajit", luajit)
+ ("webkitgtk", webkitgtk)
+ ("sqlite", sqlite)))
+ (native-inputs
+ `(("pkg-config", pkg-config)))
+ (build-system glib-or-gtk-build-system)
+ (arguments
+ '(#:make-flags
+ (let ((out (assoc-ref %outputs "out")))
+ (list
+ "CC=gcc"
+ "LUA_BIN_NAME=lua"
+ "DEVELOPMENT_PATHS=0"
+ (string-append "PREFIX=" out)
+ (string-append "XDGPREFIX=" out "/etc/xdg")))
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'lfs-workaround
+ (lambda _
+ (setenv "LUA_CPATH"
+ (string-append
+ (assoc-ref %build-inputs "lua5.1-filesystem")
+ "/lib/lua/5.1/?.so;;"))
+ #t))
+ (delete 'configure)
+ (delete 'check)
+ (add-after 'install 'wrap
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((luakit (assoc-ref outputs "out"))
+ (lua5.1-filesystem (assoc-ref inputs "lua5.1-filesystem") )
+ (gtk (assoc-ref inputs "gtk+"))
+ (gtk-share (string-append gtk "/share")))
+ (wrap-program (string-append luakit "/bin/luakit")
+ `("LUA_CPATH" prefix (,(string-append
+ lua5.1-filesystem "/lib/lua/5.1/?.so;;"))))))))))
+ (synopsis "Fast, light and simple browser based on webkit")
+ (description "Luakit is a fast, light and simple to use micro-browser
+ framework extensible by Lua
+ using the WebKit web content engine and the GTK+ toolkit.")
+ (home-page "https://luakit.github.io/")
+ (license license:gpl3)))
+
(define-public lynx
(package
(name "lynx")
--
2.18.0
next reply other threads:[~2018-07-13 13:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-13 13:38 Raphaël Mélotte [this message]
2018-07-17 13:14 ` bug#32137: [PATCH] gnu: Add luakit Ludovic Courtès
[not found] ` <handler.32137.D32137.153183329315581.notifdone@debbugs.gnu.org>
2018-07-17 14:15 ` [bug#32137] closed (Re: [bug#32137] [PATCH] gnu: Add luakit) Raphaël Mélotte
2018-07-24 8:43 ` Ludovic Courtès
2018-08-06 8:24 ` Raphaël Mélotte
2018-08-19 21:02 ` Ludovic Courtès
2018-08-20 14:40 ` Raphaël Mélotte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CA+68scsBAUuKTJ_UyrBszmrL4HEgcQMU7W-LJaL7DwtaW+ie4g@mail.gmail.com \
--to=raphael.melotte@gmail.com \
--cc=32137@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).