unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Vinicius Monego <monego@posteo.net>
To: 46939@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#46939] [PATCH v2 3/4] gnu: Add gmic-qt.
Date: Fri,  5 Mar 2021 02:14:16 -0300	[thread overview]
Message-ID: <20210305051416.27677-1-monego@posteo.net> (raw)
In-Reply-To: <20210305045055.25813-1-monego@posteo.net>

* gnu/packages/image-processing.scm (gmic-qt): New variable.
---
Added license which is different from core gmic.

 gnu/packages/image-processing.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index 81b90d87ec..034918f52f 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -648,6 +648,30 @@ including 2D color images.")
     ;; Dual-licensed, either license applies.
     (license (list license:cecill license:cecill-c))))
 
+(define-public gmic-qt
+  (package
+    (inherit gmic)
+    (name "gmic-qt")
+    (arguments
+     (substitute-keyword-arguments (package-arguments gmic)
+       ((#:configure-flags _)
+        `(list "-DGMIC_QT_HOST=none" "-DENABLE_DYNAMIC_LINKING=ON"
+               (string-append "-DGMIC_LIB_PATH="
+                              (assoc-ref %build-inputs "gmic") "/lib")))
+        ((#:phases phases)
+         `(modify-phases ,phases
+            (add-after 'unpack 'qt-chdir
+              (lambda _ (chdir "gmic-qt") #t))))))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("qttools" ,qttools)))
+    (inputs
+     `(("gmic" ,gmic)
+       ("qtbase" ,qtbase)
+       ,@(package-inputs gmic)))
+    (synopsis "Qt frontend for the G'MIC image processing framework")
+    (license license:gpl3+)))
+
 (define-public nip2
   (package
     (name "nip2")
-- 
2.30.1





  parent reply	other threads:[~2021-03-05  5:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-05  4:50 [bug#46939] [PATCH 1/4] gnu: gmic: Update to 2.9.6 Vinicius Monego
2021-03-05  4:53 ` [bug#46939] [PATCH 2/4] gnu: gmic: Disable static libraries and enable LTO Vinicius Monego
2021-03-05  4:53   ` [bug#46939] [PATCH 3/4] gnu: Add gmic-qt Vinicius Monego
2021-03-05  4:53   ` [bug#46939] [PATCH 4/4] gnu: Add gmic-qt-krita Vinicius Monego
2021-03-05  5:14 ` Vinicius Monego [this message]
2021-03-05  5:43 ` [bug#46939] [PATCH v2 " Vinicius Monego
2021-03-06 13:18 ` bug#46939: [PATCH 1/4] gnu: gmic: Update to 2.9.6 Nicolas Goaziou

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=20210305051416.27677-1-monego@posteo.net \
    --to=monego@posteo.net \
    --cc=46939@debbugs.gnu.org \
    /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).