You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
2.5 KiB

  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. (define-module (gnu packages mc)
  19. #:use-module (guix packages)
  20. #:use-module (guix licenses)
  21. #:use-module (guix download)
  22. #:use-module (guix build-system gnu)
  23. #:use-module (gnu packages)
  24. #:use-module (gnu packages aspell)
  25. #:use-module (gnu packages ncurses)
  26. #:use-module (gnu packages glib)
  27. #:use-module (gnu packages ssh)
  28. #:use-module (gnu packages pkg-config)
  29. #:use-module (gnu packages check)
  30. #:use-module (gnu packages perl))
  31. (define-public mc
  32. (package
  33. (name "mc")
  34. (version "4.8.11")
  35. (source
  36. (origin
  37. (method url-fetch)
  38. (uri (string-append "http://ftp.midnight-commander.org/mc-"
  39. version ".tar.xz"))
  40. (sha256
  41. (base32
  42. "0flrw5pq2mg2d39bh6dllndhpcfppjza6g70p4ry2wcx9y2flxqq"))
  43. (patches (list (search-patch "mc-fix-ncurses-build.patch")))))
  44. (build-system gnu-build-system)
  45. (native-inputs `(("pkg-config" ,pkg-config)
  46. ("perl" ,perl)))
  47. (inputs `(("aspell" ,aspell)
  48. ("ncurses" ,ncurses)
  49. ("libssh2" ,libssh2)
  50. ("glib" ,glib)
  51. ("check" ,check)))
  52. (arguments
  53. `(#:configure-flags
  54. '("--with-screen=ncurses" "--enable-aspell")))
  55. (home-page "http://www.midnight-commander.org")
  56. (synopsis "Graphical file manager")
  57. (description
  58. "GNU Midnight Commander is a command-line file manager laid out in a
  59. common two-pane format. In addition to standard file management tasks such as
  60. copying and moving, Midnight Commander also supports viewing the contents of
  61. RPM package files and other archives and managing files on other computers via
  62. FTP or FISH. It also includes a powerful text editor for opening text
  63. files.")
  64. (license gpl2)))