From 493a6e0c1c5dd9ef6b454b31be9b80646f201fb4 Mon Sep 17 00:00:00 2001 From: nee Date: Fri, 14 Apr 2017 19:09:40 +0200 Subject: [PATCH] gnu: Add mcomix. * gnu/packages/image-viewers.scm (mcomix): New variable. --- gnu/packages/image-viewers.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/image-viewers.scm b/gnu/packages/image-viewers.scm index 830ce10ea..bfcad99f1 100644 --- a/gnu/packages/image-viewers.scm +++ b/gnu/packages/image-viewers.scm @@ -6,6 +6,7 @@ ;;; Copyright © 2017 Alex Griffin ;;; Copyright © 2017 ng0 ;;; Copyright © 2017 Mathieu Othacehe +;;; Copyright © 2017 nee ;;; ;;; This file is part of GNU Guix. ;;; @@ -28,6 +29,7 @@ #:use-module (guix packages) #:use-module (guix build-system gnu) #:use-module (guix build-system cmake) + #:use-module (guix build-system python) #:use-module (gnu packages autotools) #:use-module (gnu packages algebra) #:use-module (gnu packages base) @@ -46,6 +48,7 @@ #:use-module (gnu packages pkg-config) #:use-module (gnu packages qt) #:use-module (gnu packages xorg) + #:use-module (gnu packages python) #:use-module (gnu packages)) (define-public feh @@ -360,3 +363,30 @@ imaging. It supports several HDR and LDR image formats, and it can: @item Copy EXIF data between sets of images. @end itemize\n") (license license:gpl2+))) + +(define-public mcomix + (package + (name "mcomix") + (version "1.2.1") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/mcomix/MComix-" version + "/mcomix-" version ".tar.bz2")) + (sha256 + (base32 + "0fzsf9pklhfs1rzwzj64c0v30b74nk94p93h371rpg45qnfiahvy")))) + (build-system python-build-system) + ;; Python 2.5 or newer (Python 3 and up is not supported) + (arguments `(#:python ,python-2)) + (inputs `(("python2-pygtk" ,python2-pygtk) + ("python2-pillow" ,python2-pillow))) + (home-page "https://sourceforge.net/p/mcomix/wiki/Home/") + (synopsis "Image viewer for comics") + (description "MComix is a customizable image viewer that specializes as +a comic and manga reader. It supports a variety of container formats +including CBR, CBZ, CB7, CBT, LHA. +For 7z support install the p7zip package. +For rar support install the unrar package. +For pdf support install the mupdf package.") + (license license:gpl2+))) -- 2.12.2