Subject: bug#37076: closed (Re: [bug#37076] Contributing package wterm)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 25 Aug 2019 20:44:02 +0000

Your bug report

#37076: Contributing package wterm

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

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

Subject: Re: [bug#37076] Contributing package wterm
From: Ludovic Courtès <[email-masked]>
To: ison <[email-masked]>
Cc: [email-masked]
Date: Sun, 25 Aug 2019 22:43:31 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello ison,

ison <[email-masked]> skribis:

>>>From 3597ca9e62e004a27adff73ebfa572d41089a74d Mon Sep 17 00:00:00 2001
> From: ison <[email-masked]>
> Date: Sun, 18 Aug 2019 14:48:04 -0600
> Subject: [PATCH] Add package wterm to terminals.scm
>
> ---
>  gnu/packages/terminals.scm | 53 ++++++++++++++++++++++++++++++++++++++
>  1 file changed, 53 insertions(+)

Applied with the simple changes below and with a commit log that follows
our convention.

Thanks for the patch!

Ludo’.

diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm
index fbd0bff843..bca8b14dad 100644
--- a/gnu/packages/terminals.scm
+++ b/gnu/packages/terminals.scm
@@ -1120,7 +1120,7 @@ while also supporting native scrolling and @command{tmux} control mode
        (sha256
          (base32
           "0g4lzmc1w6na81i6hny32xds4xfig4xzswzfijyi6p93a1226dv0"))
-       (file-name (git-file-name name version ))))
+       (file-name (git-file-name name version))))
     (build-system gnu-build-system)
     (native-inputs
      `(("pkg-config" ,pkg-config)))
@@ -1134,8 +1134,11 @@ while also supporting native scrolling and @command{tmux} control mode
        ("wayland" ,wayland)))
     (arguments
      '(#:tests? #f
-       #:make-flags (list "-j1" ; Without -j1 it fails to find file libwld.a
-                          "CC=gcc"
+
+       ;; Without -j1 it fails to find file libwld.a.
+       #:parallel-build? #f
+
+       #:make-flags (list "CC=gcc"
                           (string-append "PREFIX=" %output)
                           (string-append "TERMINFO="
                                          (assoc-ref %outputs "out")

Subject: Contributing package wterm
From: ison <[email-masked]>
To: [email-masked]
Date: Sun, 18 Aug 2019 14:58:12 -0600
List-Id: <debbugs-submit.debbugs.gnu.org>

Here is a package for wterm, a native Wayland terminal emulator based
on St.
I thought terminals.scm was an appropriate place to add it.
>From 3597ca9e62e004a27adff73ebfa572d41089a74d Mon Sep 17 00:00:00 2001
From: ison <[email-masked]>
Date: Sun, 18 Aug 2019 14:48:04 -0600
Subject: [PATCH] Add package wterm to terminals.scm

---
 gnu/packages/terminals.scm | 53 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm
index 9077d295db..fbd0bff843 100644
--- a/gnu/packages/terminals.scm
+++ b/gnu/packages/terminals.scm
@@ -1106,3 +1106,56 @@ and IP roaming.  ET provides the same core functionality as @command{mosh},
 while also supporting native scrolling and @command{tmux} control mode
 (@code{tmux -CC}).")
     (license license:asl2.0)))
+
+(define-public wterm
+  (package
+    (name "wterm")
+    (version "0.7")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/majestrate/wterm.git")
+             (commit "0ae42717c08a85a6509214e881422c7fbe7ecc45")))
+       (sha256
+         (base32
+          "0g4lzmc1w6na81i6hny32xds4xfig4xzswzfijyi6p93a1226dv0"))
+       (file-name (git-file-name name version ))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("fontconfig" ,fontconfig)
+       ("freetype" ,freetype)
+       ("libdrm" ,libdrm)
+       ("libxkbcommon" ,libxkbcommon)
+       ("ncurses" ,ncurses)
+       ("pixman" ,pixman)
+       ("wayland" ,wayland)))
+    (arguments
+     '(#:tests? #f
+       #:make-flags (list "-j1" ; Without -j1 it fails to find file libwld.a
+                          "CC=gcc"
+                          (string-append "PREFIX=" %output)
+                          (string-append "TERMINFO="
+                                         (assoc-ref %outputs "out")
+                                         "/share/terminfo"))
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure)
+         (add-after 'unpack 'terminfo-fix
+           (lambda _
+             (substitute* "Makefile"
+               (("\ttic .*") "\tmkdir -p $(SHARE_PREFIX)/share/terminfo
+\ttic -o $(SHARE_PREFIX)/share/terminfo -s wterm.info\n"))
+             #t)))))
+    (native-search-paths
+      (list (search-path-specification
+              (variable "TERMINFO_DIRS")
+              (files '("share/terminfo")))))
+    (home-page "https://github.com/majestrate/wterm")
+    (synopsis "Terminal emulator for Wayland")
+    (description "wterm is a native Wayland terminal emulator based on
+an st fork using wld. st is a simple terminal emulator for X originally
+made by suckless.")
+    (license license:x11)))
-- 
2.23.0