unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Rovanion Luckey <rovanion.luckey@gmail.com>
To: guix-devel@gnu.org, Leo Prikler <leo.prikler@student.tugraz.at>
Subject: Re: [RFC] Package of Nomacs
Date: Fri, 1 Jan 2021 23:02:20 +0100	[thread overview]
Message-ID: <CAAaf0CCKbHpfN5y22YDtXeHa4h1Yp9Lz-Y6rd=a3yx6AERaGWg@mail.gmail.com> (raw)
In-Reply-To: <be7bc8091f855e3596c26494a324e13d11342615.camel@student.tugraz.at>


[-- Attachment #1.1: Type: text/plain, Size: 983 bytes --]

Hi Leo and thank you for explaining. And hi again guix-devel.

I've now rewritten the file according to your comments except that its
still its own file/module, something I'll fix later.

Now I'm stuck trying to figure out a build error after going from the
tarball release through url-fetch to the non-recursive git-clone download.
CMake finds the package OpenCV when it runs, removing OpenCV from the
package inputs results in an error from CMake (as expected). But the build
fails during the build phase with the following error:

> make[2]: *** No rule to make target 'opencv_core-NOTFOUND', needed by
'libnomacsCore.so.3.16.0'.  Stop.

I've not found any relevant mentions of opencv_core in the source code. I
tried adding monkeying about with the CMakeLists a little to no avail. Also
looked at what Debian does to their package but found nothing that I
thought to be relevant:
https://sources.debian.org/src/nomacs/3.12.0+dfsg-3/debian/

I've attached the new package source.

[-- Attachment #1.2: Type: text/html, Size: 1288 bytes --]

[-- Attachment #2: guix-package.scm --]
[-- Type: text/x-scheme, Size: 3753 bytes --]

(define-module (gnu packages nomacs)
  #:use-module (guix packages)
  #:use-module (guix git-download)
  #:use-module (guix build-system cmake)
  #:use-module (guix licenses)
  #:use-module (gnu packages python)
  #:use-module (gnu packages qt)
  #:use-module (gnu packages image)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages image)
  #:use-module (gnu packages image-processing)
  #:use-module (gnu packages photo)
  #:use-module (gnu packages compression))

(define-public nomacs
  (package
    (name "nomacs")
    (version "3.16.224")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/rovanion/nomacs")
                    (commit version)))
              (sha256 "05d4hqg0gl3g9s2xf1hr7mc7g4cqarcap4nzxxa51fsphw2b8x16")))
    (build-system cmake-build-system)
    (native-inputs `(("pkg-config" ,pkg-config)))
    (arguments
     `(#:configure-flags (list "-DENABLE_TRANSLATIONS=true"
                               "-DUSE_SYSTEM_QUAZIP=true"
                               "-DENABLE_OPENCV=true")
       #:phases (modify-phases %standard-phases
                  (add-after 'unpack 'copy-plugins
                    (lambda* (#:key inputs #:allow-other-keys)
                      (copy-recursively (assoc-ref inputs "plugins")
                                        "ImageLounge/plugins")))
                  (add-after 'copy-plugins 'cd-to-source-dir
                    (lambda _ (chdir "ImageLounge") #t)))
       #:tests? #f))
    (inputs `(("plugins"    ,(origin (method git-fetch)
                                     (uri (git-reference
                                           (url "https://github.com/nomacs/nomacs-plugins")
                                           (commit "3.16")))
                                     (sha256 "1cpdwhfvaxm970nwdc1hc13848a85pqqi176m9xpa3krla9qskml")))
              ("exiv2"      ,exiv2)
              ("libraw"     ,libraw)
              ("libtiff"    ,libtiff)
              ("opencv"     ,opencv)
              ("python"     ,python-wrapper)
              ("quazip"     ,quazip)
              ("qtbase"     ,qtbase)
              ("qtsvg"      ,qtsvg)
              ("qtlinguist" ,qttools)))
    (synopsis "Image viewer for all common formats including RAW and PSD.")
    (description "Nomacs is a free, open source image viewer, which supports multiple platforms. You can use it for viewing all common image formats including RAW and psd images.

Nomacs features semi-transparent widgets that display additional information such as thumbnails, metadata or histogram. It is able to browse images in zip or MS Office files which can be extracted to a directory. Metadata stored with the image can be displayed and you can add notes to images. A thumbnail preview of the current folder is included as well as a file explorer panel which allows switching between folders. Within a directory you can apply a file filter, so that only images are displayed whose filenames have a certain string or match a regular expression. Activating the cache allows for instantly switching between images.

Nomacs includes image manipulation methods for adjusting brightness, contrast, saturation, hue, gamma, exposure. It has a pseudo color function which allows creating false color images. A unique feature of Nomacs is the synchronization of multiple instances. With this feature you can easily compare images by zooming and/or panning at the exactly same position or even by overlaying them with different opacity.
Nomacs is licensed under the GNU General Public License v3 and available for Windows, Linux, FreeBSD, Mac, and OS/2.")
    (home-page "https://nomacs.org/")
    (license gpl3+)))

nomacs

  reply	other threads:[~2021-01-01 22:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-30 18:32 [RFC] Package of Nomacs Leo Prikler
2020-12-31 15:37 ` Rovanion Luckey
2020-12-31 16:12   ` Leo Prikler
2021-01-01 22:02     ` Rovanion Luckey [this message]
2021-01-02 14:43       ` Rovanion Luckey
2021-01-02 15:42         ` Leo Prikler
2021-01-03  1:01           ` Rovanion Luckey
2021-01-07 16:58     ` zimoun
  -- strict thread matches above, loose matches on Subject: below --
2020-12-29 23:06 Rovanion Luckey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAaf0CCKbHpfN5y22YDtXeHa4h1Yp9Lz-Y6rd=a3yx6AERaGWg@mail.gmail.com' \
    --to=rovanion.luckey@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=leo.prikler@student.tugraz.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).