Subject: bug#27150: closed (Re: bug#27150: plan9-like text editor wily)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 01 Jun 2017 23:01:02 +0000

Your bug report

#27150: plan9-like text editor wily

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
27150: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=27150
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#27150: plan9-like text editor wily
From: ng0 <[email-masked]>
To: Ludovic Courtès <[email-masked]>, [email-masked]
Date: Thu, 1 Jun 2017 22:59:36 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

ng0 transcribed 1.5K bytes:
> Ludovic Courtès transcribed 1.2K bytes:
> > ng0 <[email-masked]> skribis:
> > 
> > > From 551a544eab8f4295581ace79a5c8b5b2a9c3b581 Mon Sep 17 00:00:00 2001
> > > From: ng0 <[email-masked]>
> > > Date: Mon, 8 May 2017 18:08:24 +0000
> > > Subject: [PATCH] gnu: Add wily.
> > >
> > > * gnu/packages/text-editors.scm (wily): New variable.
> > 
> > [...]
> > 
> > > +    (home-page "http://www.cse.yorku.ca/~oz/wily/")
> > > +    (synopsis "Implementation of ACME")
> > > +    (description
> > > +     "Wily is a mouse-oriented, text-based environment for programmers.
> > > +It lets you interact with files, directories and programs through mouse and keyboard
> > > +operations on plain text.  Most of Wily's design (but none of its code) comes
> > > +from Rob Pike's acme.")
> > > +    (license license:gpl3+)))
> > 
> > On closer inspection, the license is not GPLv3+ at all, AFAICS.  There’s
> > an ‘Artistic’ file license with the old Artistic license, which is
> > non-free AFAIK.  And there’s code in libframe/ for instance marked as:
> > 
> >   /* Copyright (c) 1992 AT&T - All rights reserved. */
> > 
> > Lacking additional info, that makes it non-free.  There’s also a bunch
> > of Plan 9 headers and stuff taken as-is.
> > 
> > Do you know of free distros that provide Wily?  Could you check whether
> > I’m missing something?
> > 
> > Thanks,
> > Ludo’.
> > 
> 
> Oh no :(
> 
> I must have missed this, I really thought I checked for licenses!
> So it keep in my package repository.
> 
> Sorry.
> -- 
> ng0
> OpenPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
> 

I am closing this bug. With 'Artistic' as a license
this will never be included in Guix master, case is
clear.

Thanks for the review
-- 
ng0
OpenPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588

Subject: plan9-like text editor wily
From: ng0 <[email-masked]>
To: [email-masked]
Date: Tue, 30 May 2017 15:59:28 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

The text editor part works.

I'm not sure if it is supposed to do more
or be able to be useful for more...
-- 
ng0
OpenPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
From 551a544eab8f4295581ace79a5c8b5b2a9c3b581 Mon Sep 17 00:00:00 2001
From: ng0 <[email-masked]>
Date: Mon, 8 May 2017 18:08:24 +0000
Subject: [PATCH] gnu: Add wily.

* gnu/packages/text-editors.scm (wily): New variable.
---
 gnu/packages/text-editors.scm | 50 ++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 49 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
index 98df48119..b87114d37 100644
--- a/gnu/packages/text-editors.scm
+++ b/gnu/packages/text-editors.scm
@@ -39,7 +39,8 @@
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages ruby)
   #:use-module (gnu packages terminals)
-  #:use-module (gnu packages xml))
+  #:use-module (gnu packages xml)
+  #:use-module (gnu packages xorg))
 
 (define-public vis
   (package
@@ -227,3 +228,50 @@ Wordstar-, EMACS-, Pico, Nedit or vi-like key bindings.  e3 can be used on
 16, 32, and 64-bit CPUs.")
     (supported-systems '("x86_64-linux" "i686-linux"))
     (license license:gpl2+)))
+
+(define-public wily
+  (package
+    (name "wily")
+    (version "0.13.42")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://sourceforge.net/projects/wily/files/"
+                           "baseline/" version "/wily-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1jy4czk39sh365b0mjpj4d5wmymj98x163vmwzyx3j183jqrhm2z"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f ;No tests.
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'configure
+           (lambda* (#:key outputs #:allow-other-keys)
+             ;; The included configure script does not
+             ;; understand flags such as '--host'
+             (let ((out (assoc-ref outputs "out")))
+               ;; 'configure' does not understand '--host'.
+               ,@(if (%current-target-system)
+                     `((setenv "CHOST" ,(%current-target-system)))
+                     '())
+               (setenv "CONFIG_SHELL" (which "bash"))
+               (setenv "SHELL" (which "bash"))
+               (zero?
+                (system* "./configure"
+                         (string-append "--prefix=" out))))))
+         (add-before 'install 'mkdir
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out")))
+               (mkdir-p (string-append out "/bin"))))))))
+    (inputs
+     `(("libx11" ,libx11)
+       ("libxt" ,libxt)))
+    (home-page "http://www.cse.yorku.ca/~oz/wily/")
+    (synopsis "Implementation of ACME")
+    (description
+     "Wily is a mouse-oriented, text-based environment for programmers.
+It lets you interact with files, directories and programs through mouse and keyboard
+operations on plain text.  Most of Wily's design (but none of its code) comes
+from Rob Pike's acme.")
+    (license license:gpl3+)))
-- 
2.13.0