From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehjCj-0007dG-7o for guix-patches@gnu.org; Fri, 02 Feb 2018 16:49:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehjCg-00042k-59 for guix-patches@gnu.org; Fri, 02 Feb 2018 16:49:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:46751) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ehjCf-00042Y-Vi for guix-patches@gnu.org; Fri, 02 Feb 2018 16:49:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ehjCf-000893-PK for guix-patches@gnu.org; Fri, 02 Feb 2018 16:49:01 -0500 Subject: [bug#30329] [PATCH] gnu: emacs: Build with xwidgets support. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehjC5-0007TK-OH for guix-patches@gnu.org; Fri, 02 Feb 2018 16:48:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehjC2-0003ja-KK for guix-patches@gnu.org; Fri, 02 Feb 2018 16:48:25 -0500 Received: from mail-pl0-x22d.google.com ([2607:f8b0:400e:c01::22d]:43740) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ehjC2-0003if-Ay for guix-patches@gnu.org; Fri, 02 Feb 2018 16:48:22 -0500 Received: by mail-pl0-x22d.google.com with SMTP id f4so7155195plr.10 for ; Fri, 02 Feb 2018 13:48:22 -0800 (PST) From: Alex Vong Date: Sat, 03 Feb 2018 05:48:12 +0800 Message-ID: <87vaff12sj.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30329@debbugs.gnu.org --=-=-= Content-Type: text/plain 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. --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-emacs-Build-with-xwidgets-support.patch Content-Transfer-Encoding: quoted-printable >From ae89b2e42689d2ae54d5785238daa5800ad94241 Mon Sep 17 00:00:00 2001 From: Alex Vong 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 =C2=A9 2016, 2017 ng0 ;;; Copyright =C2=A9 2016 Alex Griffin ;;; Copyright =C2=A9 2016, 2017 Nicolas Goaziou -;;; Copyright =C2=A9 2016, 2017 Alex Vong +;;; Copyright =C2=A9 2016, 2017, 2018 Alex Vong ;;; Copyright =C2=A9 2016, 2017, 2018 Arun Isaac ;;; Copyright =C2=A9 2017 Christopher Baines ;;; Copyright =C2=A9 2017 Mathieu Othacehe @@ -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 @@ =20 ;; 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) --=20 2.16.1 --=-=-= Content-Type: text/plain Cheers, Alex --=-=-=--