Commit | Line | Data |
---|---|---|
0577ddc4 JM |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2015 Jeff Mickey <j@codemac.net> | |
3 | ;;; | |
4 | ;;; This file is part of GNU Guix. | |
5 | ;;; | |
6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
7 | ;;; under the terms of the GNU General Public License as published by | |
8 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
9 | ;;; your option) any later version. | |
10 | ;;; | |
11 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | ;;; GNU General Public License for more details. | |
15 | ;;; | |
16 | ;;; You should have received a copy of the GNU General Public License | |
17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
18 | ||
19 | (define-module (gnu packages rc) | |
20 | #:use-module (gnu packages autotools) | |
21 | #:use-module (gnu packages perl) | |
22 | #:use-module (gnu packages pkg-config) | |
23 | #:use-module (gnu packages readline) | |
24 | #:use-module (guix build-system gnu) | |
25 | #:use-module (guix git-download) | |
26 | #:use-module (guix licenses) | |
27 | #:use-module (guix packages)) | |
28 | ||
29 | (define-public rc | |
30 | (package | |
31 | (name "rc") | |
32 | (version "1.7.4") | |
33 | (source (origin | |
34 | (method git-fetch) | |
35 | (uri (git-reference | |
36 | (url "git://github.com/rakitzis/rc.git") | |
37 | ;; commit name 'release: rc-1.7.4' | |
38 | (commit "c884da53a7c885d46ace2b92de78946855b18e92"))) | |
39 | (sha256 | |
40 | (base32 | |
41 | "00mgzvrrh9w96xa85g4gjbsvq02f08k4jwjcdnxq7kyh5xgiw95l")) | |
42 | (file-name (string-append name "-" version "-checkout")))) | |
43 | (build-system gnu-build-system) | |
44 | (arguments | |
45 | `(#:configure-flags | |
46 | '("--with-edit=gnu") | |
47 | #:phases | |
48 | (modify-phases %standard-phases | |
49 | (add-after | |
50 | 'unpack 'autoreconf | |
51 | (lambda _ (zero? (system* "autoreconf" "-vfi")))) | |
52 | (add-before | |
53 | 'autoreconf 'patch-trip.rc | |
54 | (lambda _ | |
55 | (substitute* "trip.rc" | |
56 | (("/bin/pwd") (which "pwd")) | |
57 | (("/bin/sh") (which "sh")) | |
58 | (("/bin/rm") (which "rm")) | |
59 | (("/bin\\)") (string-append (dirname (which "rm")) ")"))) | |
60 | #t))))) | |
61 | (inputs `(("readline" ,readline) | |
62 | ("perl" ,perl))) | |
63 | (native-inputs `(("autoconf" ,autoconf) | |
64 | ("automake" ,automake) | |
65 | ("libtool" ,libtool) | |
66 | ("pkg-config" ,pkg-config))) | |
67 | (synopsis "Alternative implementation of the rc shell by Byron Rakitzis") | |
68 | (description | |
69 | "This is a reimplementation by Byron Rakitzis of the Plan 9 shell. It | |
70 | has a small feature set similar to a traditional Bourne shell.") | |
71 | (home-page "http://github.com/rakitzis/rc") | |
72 | (license zlib))) |