all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#36151] [PATCH] gnu: Add emacsy.
@ 2019-06-09 17:14 Jan Nieuwenhuizen
  2019-06-09 17:51 ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Nieuwenhuizen @ 2019-06-09 17:14 UTC (permalink / raw)
  To: 36151

Hi!

It's not a pure guile package...should it still be named guile-emacsy,
WDYT?

Greetings,
janneke

From fea1be20d655096fbf31872650daca3ac28f0e41 Mon Sep 17 00:00:00 2001
From: Jan Nieuwenhuizen <janneke@gnu.org>
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 | 75 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 75 insertions(+)

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index aee908a6f5..e66aa93f95 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)
@@ -2305,3 +2306,77 @@ 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 "29148e2a0d803bd74a83a3576f667108b374c6b3")
+        (revision "3"))
+    (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
+                  "1s6n1b8h2wzvpkdnl7y2hby846cglznysbq4xqd6yys57vmzgczs"))))
+      (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 "bb17461d766c26992426f2c7d094cf9476a42dcc")))
+             (file-name (string-append "hello-emacsy" "-" version))
+             (sha256
+              (base32
+               "1lag248jb7xs5iw8qb6q12wc65awmr2sa2qhrjvrkvsrilxbpnj4"))))
+         ("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)))
+      (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
+       `(#:tests? #f                    ; several tests fail
+         #: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 for Guile")
+      (description
+       "Emacsy is an embeddable GNU Emacs-like library for GNU Guile.  It
+comes with a simple counter example using GLUT and WebKit browser examples.")
+      (license license:gpl3+))))
-- 
2.21.0

-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#36151] [PATCH] gnu: Add emacsy.
  2019-06-09 17:14 [bug#36151] [PATCH] gnu: Add emacsy Jan Nieuwenhuizen
@ 2019-06-09 17:51 ` Tobias Geerinckx-Rice
  2019-06-09 18:23   ` Jan Nieuwenhuizen
  0 siblings, 1 reply; 6+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-06-09 17:51 UTC (permalink / raw)
  To: Jan Nieuwenhuizen; +Cc: 36151

[-- Attachment #1: Type: text/plain, Size: 454 bytes --]

Janneke,

Jan Nieuwenhuizen wrote:
> Hi!
>
> 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 :-)

Which is just, like, my opinion, of course,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#36151] [PATCH] gnu: Add emacsy.
  2019-06-09 17:51 ` Tobias Geerinckx-Rice
@ 2019-06-09 18:23   ` Jan Nieuwenhuizen
  2019-06-10  8:03     ` Jan Nieuwenhuizen
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Nieuwenhuizen @ 2019-06-09 18:23 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 36151

Tobias Geerinckx-Rice writes:

Hi Tobias,

>> 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

       "Emacsy is an embeddable GNU Emacs-like library written in GNU
Guile.  It can be used as a pure Guile library, or embedded from a C
program using libemacsy.  It comes with a simple counter example using
GLUT and browser examples in C using gtk+-3 and webkitgtk."

> Which is just, like, my opinion, of course,

Sure, just checking; still guile-emacsy?

janneke

-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#36151] [PATCH] gnu: Add emacsy.
  2019-06-09 18:23   ` Jan Nieuwenhuizen
@ 2019-06-10  8:03     ` Jan Nieuwenhuizen
  2019-06-12 13:53       ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Nieuwenhuizen @ 2019-06-10  8:03 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 36151

[-- Attachment #1: Type: text/plain, Size: 1320 bytes --]

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-emacsy.patch --]
[-- Type: text/x-patch, Size: 4716 bytes --]

From f8950419cb6b2414344266c76325f8c47bf95bf8 Mon Sep 17 00:00:00 2001
From: Jan Nieuwenhuizen <janneke@gnu.org>
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


[-- Attachment #3: Type: text/plain, Size: 152 bytes --]


-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#36151] [PATCH] gnu: Add emacsy.
  2019-06-10  8:03     ` Jan Nieuwenhuizen
@ 2019-06-12 13:53       ` Ludovic Courtès
  2019-06-12 21:45         ` bug#36151: " Jan Nieuwenhuizen
  0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2019-06-12 13:53 UTC (permalink / raw)
  To: Jan Nieuwenhuizen; +Cc: 36151

Hello,

Jan Nieuwenhuizen <janneke@gnu.org> skribis:

>>From f8950419cb6b2414344266c76325f8c47bf95bf8 Mon Sep 17 00:00:00 2001
> From: Jan Nieuwenhuizen <janneke@gnu.org>
> Date: Sun, 9 Jun 2019 18:17:08 +0200
> Subject: [PATCH] gnu: Add emacsy.
>
> * gnu/packages/guile-xyz.scm (emacsy): New variable.

Nice, LGTM!  Good to see Emacsy coming back to life!

Ludo’.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#36151: [PATCH] gnu: Add emacsy.
  2019-06-12 13:53       ` Ludovic Courtès
@ 2019-06-12 21:45         ` Jan Nieuwenhuizen
  0 siblings, 0 replies; 6+ messages in thread
From: Jan Nieuwenhuizen @ 2019-06-12 21:45 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 36151-done

Ludovic Courtès writes:

> Nice, LGTM!

Pushed to master as f0de9544a3f19b65e80a7cbfafd0dbe268d92ee2

> Good to see Emacsy coming back to life!

Thanks, yeah I'm pondering on a way forward for Emacsy.  I'm starting by
using it and it looks pretty nice.
  
janneke

-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-06-12 21:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-09 17:14 [bug#36151] [PATCH] gnu: Add emacsy Jan Nieuwenhuizen
2019-06-09 17:51 ` Tobias Geerinckx-Rice
2019-06-09 18:23   ` Jan Nieuwenhuizen
2019-06-10  8:03     ` Jan Nieuwenhuizen
2019-06-12 13:53       ` Ludovic Courtès
2019-06-12 21:45         ` bug#36151: " Jan Nieuwenhuizen

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.