From patchwork Mon Jun 10 08:03:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Janneke Nieuwenhuizen X-Patchwork-Id: 14278 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8E21417055; Mon, 10 Jun 2019 09:04:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 00C2B17053 for ; Mon, 10 Jun 2019 09:04:12 +0100 (BST) Received: from localhost ([::1]:41872 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1haFHl-0007WT-L2 for patchwork@mira.cbaines.net; Mon, 10 Jun 2019 04:04:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50502) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1haFHi-0007V0-Lx for guix-patches@gnu.org; Mon, 10 Jun 2019 04:04:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1haFHh-0007N5-5k for guix-patches@gnu.org; Mon, 10 Jun 2019 04:04:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42388) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1haFHe-0007L7-CV for guix-patches@gnu.org; Mon, 10 Jun 2019 04:04:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1haFHe-0004q4-4g for guix-patches@gnu.org; Mon, 10 Jun 2019 04:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36151] [PATCH] gnu: Add emacsy. Resent-From: Jan Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 10 Jun 2019 08:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36151 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Tobias Geerinckx-Rice Received: via spool by 36151-submit@debbugs.gnu.org id=B36151.156015383818588 (code B ref 36151); Mon, 10 Jun 2019 08:04:02 +0000 Received: (at 36151) by debbugs.gnu.org; 10 Jun 2019 08:03:58 +0000 Received: from localhost ([127.0.0.1]:55932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1haFHT-0004pd-FS for submit@debbugs.gnu.org; Mon, 10 Jun 2019 04:03:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41657) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1haFHS-0004pQ-89 for 36151@debbugs.gnu.org; Mon, 10 Jun 2019 04:03:50 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45451) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1haFHI-0006zV-GG; Mon, 10 Jun 2019 04:03:41 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=47510 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1haFHE-0007Gz-Ea; Mon, 10 Jun 2019 04:03:40 -0400 From: Jan Nieuwenhuizen Organization: AvatarAcademy.nl References: <87wohuu1e3.fsf@gnu.org> <87h88y6407.fsf@nckx> <87sgsity7i.fsf@gnu.org> X-Url: http://AvatarAcademy.nl Date: Mon, 10 Jun 2019 10:03:33 +0200 In-Reply-To: <87sgsity7i.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Sun, 09 Jun 2019 20:23:13 +0200") Message-ID: <87d0jln9yi.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 36151@debbugs.gnu.org Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Jan Nieuwenhuizen writes: Hi! I have incorporated Ricardo's (thanks!) emacsy WIP patch so that we can now run all tests. I also resurrected the PDF doc builds and added them to the automake install. New patch attached. >>> It's not a pure guile package...should it still be named >>> guile-emacsy, >> >> Yes. >> >>> WDYT? >> >> Personally: that the language(s) the package is *written* in don't >> actually matter much. >> >> What matters is whether it's a library *for* that language. >> >> + "Emacsy is an embeddable GNU Emacs-like library for GNU Guile. >> >> …and it is :-) > > Well, that's the thing. It's a Guile library as well as an *embeddable* > Guile library in C; it comes with libemacsy.so. So I guess the > description is off. What about I have changed it to (synopsis "Embeddable GNU Emacs-like library using Guile") (description "Emacsy is an embeddable GNU Emacs-like library that uses GNU Guile as extension language. Emacsy can give a C program an Emacsy feel with keymaps, minibuffer, recordable macros, history, tab completion, major and minor modes, etc., and can also be used as a pure Guile library. It comes with a simple counter example using GLUT and browser examples in C using gtk+-3 and webkitgtk.") janneke From f8950419cb6b2414344266c76325f8c47bf95bf8 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sun, 9 Jun 2019 18:17:08 +0200 Subject: [PATCH] gnu: Add emacsy. * gnu/packages/guile-xyz.scm (emacsy): New variable. --- gnu/packages/guile-xyz.scm | 80 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index aee908a6f5..191f32c321 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -68,6 +68,7 @@ #:use-module (gnu packages multiprecision) #:use-module (gnu packages ncurses) #:use-module (gnu packages networking) + #:use-module (gnu packages noweb) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) @@ -75,6 +76,7 @@ #:use-module (gnu packages sdl) #:use-module (gnu packages slang) #:use-module (gnu packages sqlite) + #:use-module (gnu packages tex) #:use-module (gnu packages texinfo) #:use-module (gnu packages tls) #:use-module (gnu packages version-control) @@ -2305,3 +2307,81 @@ formatting combinators specified by @uref{https://srfi.schemers.org/srfi-159/srfi-159.html, SRFI-159}. These are more expressive and flexible than the traditional @code{format} procedure.") (license license:bsd-3)))) + +(define-public emacsy + (let ((commit "7d49cc1425d5d209bdb82cac0d8ea0694b8b3784") + (revision "4")) + (package + (name "emacsy") + (version (string-append "0.1.2-" revision "." (string-take commit 7))) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/janneke/emacsy.git") + (commit commit))) + (file-name (string-append name "-" version)) + (sha256 + (base32 + "0k9yns1v8zn135w60sx96nqs2bm2p2dvcvlm987hkw4lbff9ii6i")))) + (build-system gnu-build-system) + (native-inputs + `(("emacsy-webkit-gtk" + ,(origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/janneke/emacsy-webkit-gtk.git") + (commit "35ded1b3e997fd779a17e0c4a2c73741718562d9"))) + (file-name (string-append "emacsy-webkit-gtk" "-" version)) + (sha256 + (base32 + "1gp0li2rbp6in926r3hrww6cnh864pp46v1din2pgmd7vzzl7kg0")))) + ("hello-emacsy" + ,(origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/janneke/hello-emacsy.git") + (commit "2c117e5286a261be4ff24938f3ae1d348396c538"))) + (file-name (string-append "hello-emacsy" "-" version)) + (sha256 + (base32 + "15ykd7s8axcy8ym4v71fgal4x28fxnim0pv0jmpi3dnhizr63zqn")))) + ("autoconf" ,autoconf) + ("automake" ,automake) + ("bzip2" ,bzip2) + ("guile" ,guile-2.2) + ("gettext" ,gnu-gettext) + ("libtool" ,libtool) + ("noweb" ,noweb) + ("perl" ,perl) + ("pkg-config" ,pkg-config) + ("texinfo" ,texinfo) + ("texlive" ,texlive))) + (propagated-inputs + `(("guile-lib" ,guile-lib) + ("guile-readline" ,guile-readline) + ("freeglut" ,freeglut) + ("gssettings-desktop-schemas" ,gsettings-desktop-schemas) + ("webkitgtk" ,webkitgtk))) + (inputs `(("guile" ,guile-2.2))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'unpack-examples + (lambda _ + (copy-recursively (assoc-ref %build-inputs "emacsy-webkit-gtk") + "example/emacsy-webkit-gtk") + (copy-recursively (assoc-ref %build-inputs "hello-emacsy") + "example/hello-emacsy"))) + (add-before 'configure 'setenv + (lambda _ + (setenv "GUILE_AUTO_COMPILE" "0")))))) + (home-page "https://github.com/shanecelis/emacsy/") + (synopsis "Embeddable GNU Emacs-like library using Guile") + (description + "Emacsy is an embeddable GNU Emacs-like library that uses GNU Guile +as extension language. Emacsy can give a C program an Emacsy feel with +keymaps, minibuffer, recordable macros, history, tab completion, major +and minor modes, etc., and can also be used as a pure Guile library. It +comes with a simple counter example using GLUT and browser examples in C +using gtk+-3 and webkitgtk.") + (license license:gpl3+)))) -- 2.21.0