guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] gnu: Add zsh


From: lemonnierk
Subject: [PATCH] gnu: Add zsh
Date: Sun, 7 Sep 2014 20:15:09 +0200
User-agent: Mutt/1.5.22 (2013-10-16)

Hi,

This is my first package, so I'd be interested to know if there is things that 
could be done better.
For the license, most of the files uses their own license but a few are under 
GPL, so I put that. Is that right, or should I
put (license (x11-style "file://LICENCE")) as suggested on irc anyway ?

From 5e9276e131e744cdf5c93ad1713236e70f80797e Mon Sep 17 00:00:00 2001
From: Kevin Lemonnier <address@hidden>
Date: Sun, 7 Sep 2014 19:56:06 +0200
Subject: [PATCH 2/2]   gnu: Add zsh

  * gnu/packages/zsh.scm: New variables.
---
 gnu/packages/zsh.scm | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)
 create mode 100644 gnu/packages/zsh.scm

diff --git a/gnu/packages/zsh.scm b/gnu/packages/zsh.scm
new file mode 100644
index 0000000..8ec6817
--- /dev/null
+++ b/gnu/packages/zsh.scm
@@ -0,0 +1,66 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2012, 2013, 2014 Kevin Lemonnier <address@hidden>
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (gnu packages zsh)
+  #:use-module (gnu packages ncurses)
+  #:use-module (gnu packages perl)
+  #:use-module (gnu packages pcre)
+  #:use-module (gnu packages autotools)
+  #:use-module (guix packages)
+  #:use-module (guix download)
+  #:use-module (guix build-system gnu)
+  #:use-module (guix licenses))
+
+(define-public zsh
+  (package
+    (name "zsh")
+    (version "5.0.6")
+    (source (origin
+             (method url-fetch)
+             (uri (string-append "http://www.zsh.org/pub/zsh-"; version
+                                 ".tar.gz"))
+             (sha256
+              (base32 
"0f9y2lkv6xs5nxgj7ld7sbncy454sgamz21fm4109mxqlqa32fph"))))
+    (build-system gnu-build-system)
+    (arguments `(#:configure-flags '("--with-tcsetpgrp", "--enable-pcre")
+                 #:phases (alist-cons-before
+                           'configure 'fix-sh
+                           (lambda _
+                             (substitute*
+                                 '("configure"
+                                   "configure.ac"
+                                   "Src/exec.c"
+                                   "Src/mkmakemod.sh"
+                                   "Config/installfns.sh"
+                                   "Config/defs.mk.in"
+                                   "Test/E01options.ztst"
+                                   "Test/A05execution.ztst"
+                                   "Test/A01grammar.ztst"
+                                   "Test/B02typeset.ztst"
+                                   "Completion/Unix/Command/_init_d"
+                                   "Util/preconfig")
+                               (("/bin/sh") (which "sh"))))
+                           %standard-phases)))
+    (native-inputs `(("autoconf", autoconf)))
+    (inputs `(("ncurses", ncurses)
+              ("pcre", pcre)
+              ("perl", perl)))
+    (synopsis "Zsh is a shell designed for interactive use, although it is 
also a powerful scripting language")
+    (description "The Z shell (zsh) is a Unix shell that can be used as an 
interactive login shell and as a powerful command interpreter for shell 
scripting. Zsh can be thought of as an extended Bourne shell with a large 
number of improvements, including some features of bash, ksh, and tcsh.")
+    (home-page "http://www.zsh.org/";)
+    (license gpl3)))
--
1.8.4







-- 
Kevin Lemonnier
PGP Fingerprint : C123 47CA 9E64 FCF0 3907

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]