From: Alex Vong <alexvong1995@gmail.com>
To: 30329@debbugs.gnu.org
Subject: [bug#30329] [PATCH] gnu: emacs: Build with xwidgets support.
Date: Sat, 03 Feb 2018 05:48:12 +0800 [thread overview]
Message-ID: <87vaff12sj.fsf@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 382 bytes --]
Hi,
This patch adds xwidgets support to Emcas. So Emacs can now display GTK
widgets. In particular, it can display webpages using webkitgtk.
Also, I use webkitgtk-2.4 instead of webkitgtk, because xwidgets
requires libwebkitgtk-3.0 instead of libwebkitgtk-4.0 to
build.
Moroever, the size of the closure of Emacs increases from 880.2 MiB -->
1232.4 MiB after adding the inputs.
[-- Attachment #2: 0001-gnu-emacs-Build-with-xwidgets-support.patch --]
[-- Type: text/x-diff, Size: 2415 bytes --]
From ae89b2e42689d2ae54d5785238daa5800ad94241 Mon Sep 17 00:00:00 2001
From: Alex Vong <alexvong1995@gmail.com>
Date: Sat, 3 Feb 2018 05:05:17 +0800
Subject: [PATCH] gnu: emacs: Build with xwidgets support.
* gnu/packages/emacs.scm (emacs) [arguments]: Add '--with-xwidgets'
to #:configure-flags.
[inputs]: Add glib-networking, gsettings-desktop-schemas, libxcomposite,
webkitgtk-2.4.
---
gnu/packages/emacs.scm | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 9be92edc1..a56aec440 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -15,7 +15,7 @@
;;; Copyright © 2016, 2017 ng0 <ng0@infotropique.org>
;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
;;; Copyright © 2016, 2017 Nicolas Goaziou <mail@nicolasgoaziou.fr>
-;;; Copyright © 2016, 2017 Alex Vong <alexvong1995@gmail.com>
+;;; Copyright © 2016, 2017, 2018 Alex Vong <alexvong1995@gmail.com>
;;; Copyright © 2016, 2017, 2018 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2017 Christopher Baines <mail@cbaines.net>
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
@@ -81,6 +81,7 @@
#:use-module (gnu packages version-control)
#:use-module (gnu packages imagemagick)
#:use-module (gnu packages w3m)
+ #:use-module (gnu packages webkit)
#:use-module (gnu packages wget)
#:use-module (gnu packages autotools)
#:use-module (gnu packages base)
@@ -151,7 +152,9 @@
" ")))))))
(build-system glib-or-gtk-build-system)
(arguments
- `(#:phases
+ `(#:configure-flags
+ '("--with-xwidgets")
+ #:phases
(modify-phases %standard-phases
(add-before 'configure 'fix-/bin/pwd
(lambda _
@@ -204,7 +207,13 @@
;; multilingualization support
("libotf" ,libotf)
- ("m17n-lib" ,m17n-lib)))
+ ("m17n-lib" ,m17n-lib)
+
+ ;; xwidgets support
+ ("glib-networking" ,glib-networking) ; required for browsing https pages
+ ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
+ ("libxcomposite" ,libxcomposite)
+ ("webkitgtk" ,webkitgtk-2.4))) ; libwebkitgtk-3.0 is required
(native-inputs
`(("guix-emacs.el" ,(search-auxiliary-file "emacs/guix-emacs.el"))
("pkg-config" ,pkg-config)
--
2.16.1
[-- Attachment #3: Type: text/plain, Size: 14 bytes --]
Cheers,
Alex
next reply other threads:[~2018-02-02 21:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-02 21:48 Alex Vong [this message]
2018-02-05 21:58 ` [bug#30329] [PATCH] gnu: emacs: Build with xwidgets support Leo Famulari
2018-02-06 15:28 ` Ludovic Courtès
2018-02-08 1:04 ` Alex Vong
2018-02-08 2:32 ` Leo Famulari
2018-06-09 5:25 ` Chris Marusich
2018-06-21 12:05 ` bug#30329: " Ricardo Wurmus
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vaff12sj.fsf@gmail.com \
--to=alexvong1995@gmail.com \
--cc=30329@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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.