Merge branch 'master' into core-updates
[jackhill/guix/guix.git] / gnu / packages / mc.scm
CommitLineData
5da64c7d
EB
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
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 mc)
20 #:use-module (guix packages)
21 #:use-module (guix licenses)
22 #:use-module (guix download)
23 #:use-module (guix build-system gnu)
24 #:use-module (gnu packages)
25 #:use-module (gnu packages aspell)
26 #:use-module (gnu packages ncurses)
27 #:use-module (gnu packages glib)
28 #:use-module (gnu packages ssh)
29 #:use-module (gnu packages pkg-config)
30 #:use-module (gnu packages check)
31 #:use-module (gnu packages file)
32 #:use-module (gnu packages perl))
33
34(define-public mc
35 (package
36 (name "mc")
37 (version "4.8.11")
38 (source
39 (origin
40 (method url-fetch)
41 (uri (string-append "http://ftp.midnight-commander.org/mc-"
42 version ".tar.xz"))
43 (sha256
44 (base32
45 "0flrw5pq2mg2d39bh6dllndhpcfppjza6g70p4ry2wcx9y2flxqq"))
46 (patches (list (search-patch "mc-fix-ncurses-build.patch")))))
47 (build-system gnu-build-system)
48 (native-inputs `(("pkg-config" ,pkg-config)
49 ("file" ,file)
50 ("perl" ,perl)))
51 (inputs `(("aspell" ,aspell)
52 ("ncurses" ,ncurses)
53 ("libssh2" ,libssh2)
54 ("glib" ,glib)
55 ("check" ,check)))
56 (arguments
57 `(#:configure-flags
58 '("--with-screen=ncurses" "--enable-aspell")
59 #:phases
60 (alist-cons-before
61 'configure 'patch-configure
62 (lambda _
63 (substitute* "configure"
64 (("/usr/bin/file") (which "file"))))
65 %standard-phases)))
66 (home-page "http://www.midnight-commander.org")
67 (synopsis "Graphical file manager")
68 (description
69 "GNU Midnight Commander is a command-line file manager laid out in a
70common two-pane format. In addition to standard file management tasks such as
71copying and moving, Midnight Commander also supports viewing the contents of
72RPM package files and other archives and managing files on other computers via
73FTP or FISH. It also includes a powerful text editor for opening text
74files.")
75 (license gpl2)))