Commit | Line | Data |
---|---|---|
5da64c7d EB |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> | |
451c1436 | 3 | ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il> |
da62a4a1 | 4 | ;;; Copyright © 2016 ng0 <ng0@libertad.pw> |
5da64c7d EB |
5 | ;;; |
6 | ;;; This file is part of GNU Guix. | |
7 | ;;; | |
8 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
9 | ;;; under the terms of the GNU General Public License as published by | |
10 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
11 | ;;; your option) any later version. | |
12 | ;;; | |
13 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
14 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | ;;; GNU General Public License for more details. | |
17 | ;;; | |
18 | ;;; You should have received a copy of the GNU General Public License | |
19 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
20 | ||
21 | (define-module (gnu packages mc) | |
22 | #:use-module (guix packages) | |
23 | #:use-module (guix licenses) | |
24 | #:use-module (guix download) | |
25 | #:use-module (guix build-system gnu) | |
26 | #:use-module (gnu packages) | |
27 | #:use-module (gnu packages aspell) | |
28 | #:use-module (gnu packages ncurses) | |
29 | #:use-module (gnu packages glib) | |
30 | #:use-module (gnu packages ssh) | |
31 | #:use-module (gnu packages pkg-config) | |
32 | #:use-module (gnu packages check) | |
5da64c7d EB |
33 | #:use-module (gnu packages perl)) |
34 | ||
35 | (define-public mc | |
36 | (package | |
37 | (name "mc") | |
451c1436 | 38 | (version "4.8.16") |
5da64c7d EB |
39 | (source |
40 | (origin | |
41 | (method url-fetch) | |
42 | (uri (string-append "http://ftp.midnight-commander.org/mc-" | |
43 | version ".tar.xz")) | |
44 | (sha256 | |
45 | (base32 | |
451c1436 | 46 | "083h5gwc0nny9b557way5dsmj71g2bzkiai4bn30y5nkjwqbxg5v")))) |
5da64c7d EB |
47 | (build-system gnu-build-system) |
48 | (native-inputs `(("pkg-config" ,pkg-config) | |
5da64c7d EB |
49 | ("perl" ,perl))) |
50 | (inputs `(("aspell" ,aspell) | |
51 | ("ncurses" ,ncurses) | |
52 | ("libssh2" ,libssh2) | |
53 | ("glib" ,glib) | |
54 | ("check" ,check))) | |
55 | (arguments | |
56 | `(#:configure-flags | |
da62a4a1 | 57 | '("--with-screen=ncurses" "--enable-aspell") |
58 | #:phases | |
59 | (modify-phases %standard-phases | |
60 | (add-after 'patch-source-shebangs 'fix-absolutism | |
61 | (lambda _ | |
62 | ;; Modify files that contain absolute file names. | |
63 | (substitute* "misc/mcedit.menu.in" | |
64 | (("#! /bin/sh") (string-append "#!" (which "sh"))) | |
65 | (("/bin/bash") (which "bash"))) | |
66 | (substitute* "misc/ext.d/misc.sh.in" | |
67 | (("/bin/cat") "cat")) | |
68 | #t))))) | |
5da64c7d EB |
69 | (home-page "http://www.midnight-commander.org") |
70 | (synopsis "Graphical file manager") | |
71 | (description | |
72 | "GNU Midnight Commander is a command-line file manager laid out in a | |
73 | common two-pane format. In addition to standard file management tasks such as | |
74 | copying and moving, Midnight Commander also supports viewing the contents of | |
75 | RPM package files and other archives and managing files on other computers via | |
76 | FTP or FISH. It also includes a powerful text editor for opening text | |
77 | files.") | |
451c1436 | 78 | (license gpl3+))) |