unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#46939] [PATCH 1/4] gnu: gmic: Update to 2.9.6.
@ 2021-03-05  4:50 Vinicius Monego
  2021-03-05  4:53 ` [bug#46939] [PATCH 2/4] gnu: gmic: Disable static libraries and enable LTO Vinicius Monego
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Vinicius Monego @ 2021-03-05  4:50 UTC (permalink / raw)
  To: 46939; +Cc: Vinicius Monego

* gnu/packages/image-processing.scm (gmic): Update to 2.9.6.
---
 gnu/packages/image-processing.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index c3ea8491d9..0b5c792b56 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -9,7 +9,7 @@
 ;;; Copyright © 2018 Lprndn <guix@lprndn.info>
 ;;; Copyright © 2019, 2021 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
-;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
+;;; Copyright © 2020, 2021 Vinicius Monego <monego@posteo.net>
 ;;; Copyright © 2020 Pierre Neidhardt <mail@ambrevar.xyz>
 ;;; Copyright © 2020 Brendan Tildesley <mail@brendan.scot>
 ;;; Copyright © 2021 Oleh Malyi <astroclubzp@gmail.com>
@@ -603,14 +603,14 @@ due to its architecture which automatically parallelises the image workflows.")
 (define-public gmic
   (package
     (name "gmic")
-    (version "2.9.2")
+    (version "2.9.6")
     (source
      (origin
        (method url-fetch)
        (uri (string-append "https://gmic.eu/files/source/gmic_"
                            version ".tar.gz"))
        (sha256
-        (base32 "14acph914a8lp6qqfmp319ggqjg3i3hmalmnpk3mp07m7vpv2p9q"))))
+        (base32 "06n1dcskky7aqg3a0cp7biwz8agc4xqvr8091l2wsvgib98yhbyj"))))
     (build-system cmake-build-system)
     (arguments
      `(#:tests? #f))                    ;there are no tests
-- 
2.30.1





^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#46939] [PATCH 2/4] gnu: gmic: Disable static libraries and enable LTO.
  2021-03-05  4:50 [bug#46939] [PATCH 1/4] gnu: gmic: Update to 2.9.6 Vinicius Monego
@ 2021-03-05  4:53 ` 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 ` [bug#46939] [PATCH v2 3/4] gnu: Add gmic-qt Vinicius Monego
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 7+ messages in thread
From: Vinicius Monego @ 2021-03-05  4:53 UTC (permalink / raw)
  To: 46939; +Cc: Vinicius Monego

* gnu/packages/image-processing.scm (gmic)[arguments]: Pass
"-DBUILD_LIB_STATIC=OFF", "-DENABLE_DYNAMIC_LINKING=ON" and "-DENABLE_LTO=ON"
to #:configure-flags. Add phase to set LDFLAGS.
---
 gnu/packages/image-processing.scm | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index 0b5c792b56..81b90d87ec 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -613,7 +613,18 @@ due to its architecture which automatically parallelises the image workflows.")
         (base32 "06n1dcskky7aqg3a0cp7biwz8agc4xqvr8091l2wsvgib98yhbyj"))))
     (build-system cmake-build-system)
     (arguments
-     `(#:tests? #f))                    ;there are no tests
+     `(#:tests? #f ;there are no tests
+       #:configure-flags '("-DBUILD_LIB_STATIC=OFF"
+                           "-DENABLE_DYNAMIC_LINKING=ON"
+                           "-DENABLE_LTO=ON")
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'configure 'set-LDFLAGS
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (setenv "LDFLAGS"
+                     (string-append
+                      "-Wl,-rpath="
+                      (assoc-ref outputs "out") "/lib")))))))
     (native-inputs
      `(("pkg-config" ,pkg-config)))
     (inputs
-- 
2.30.1





^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#46939] [PATCH 3/4] gnu: Add gmic-qt.
  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   ` Vinicius Monego
  2021-03-05  4:53   ` [bug#46939] [PATCH 4/4] gnu: Add gmic-qt-krita Vinicius Monego
  1 sibling, 0 replies; 7+ messages in thread
From: Vinicius Monego @ 2021-03-05  4:53 UTC (permalink / raw)
  To: 46939; +Cc: Vinicius Monego

* gnu/packages/image-processing.scm (gmic-qt): New variable.
---
 gnu/packages/image-processing.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index 81b90d87ec..bb8e4a48ee 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -648,6 +648,29 @@ 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")))
+
 (define-public nip2
   (package
     (name "nip2")
-- 
2.30.1





^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#46939] [PATCH 4/4] gnu: Add gmic-qt-krita.
  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   ` Vinicius Monego
  1 sibling, 0 replies; 7+ messages in thread
From: Vinicius Monego @ 2021-03-05  4:53 UTC (permalink / raw)
  To: 46939; +Cc: Vinicius Monego

* gnu/packages/image-processing.scm (gmic-qt-krita): New variable.
---
 gnu/packages/image-processing.scm | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index bb8e4a48ee..df19d27bc2 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -671,6 +671,18 @@ including 2D color images.")
        ,@(package-inputs gmic)))
     (synopsis "Qt frontend for the G'MIC image processing framework")))
 
+(define-public gmic-qt-krita
+  (package
+    (inherit gmic-qt)
+    (name "gmic-qt-krita")
+    (arguments
+     (substitute-keyword-arguments (package-arguments gmic-qt)
+       ((#:configure-flags flags)
+        '(list "-DGMIC_QT_HOST=krita" "-DENABLE_DYNAMIC_LINKING=ON"
+               (string-append "-DGMIC_LIB_PATH="
+                              (assoc-ref %build-inputs "gmic") "/lib")))))
+    (synopsis "Krita plugin for the G'MIC image processing framework")))
+
 (define-public nip2
   (package
     (name "nip2")
-- 
2.30.1





^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#46939] [PATCH v2 3/4] gnu: Add gmic-qt.
  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  5:14 ` Vinicius Monego
  2021-03-05  5:43 ` [bug#46939] [PATCH v2 4/4] gnu: Add gmic-qt-krita Vinicius Monego
  2021-03-06 13:18 ` bug#46939: [PATCH 1/4] gnu: gmic: Update to 2.9.6 Nicolas Goaziou
  3 siblings, 0 replies; 7+ messages in thread
From: Vinicius Monego @ 2021-03-05  5:14 UTC (permalink / raw)
  To: 46939; +Cc: Vinicius Monego

* 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





^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#46939] [PATCH v2 4/4] gnu: Add gmic-qt-krita.
  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  5:14 ` [bug#46939] [PATCH v2 3/4] gnu: Add gmic-qt Vinicius Monego
@ 2021-03-05  5:43 ` Vinicius Monego
  2021-03-06 13:18 ` bug#46939: [PATCH 1/4] gnu: gmic: Update to 2.9.6 Nicolas Goaziou
  3 siblings, 0 replies; 7+ messages in thread
From: Vinicius Monego @ 2021-03-05  5:43 UTC (permalink / raw)
  To: 46939; +Cc: Vinicius Monego

* gnu/packages/image-processing.scm (gmic-qt-krita): New variable.
---
Rebased on top of previous change.

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

diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index 034918f52f..5dfd18d1bd 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -672,6 +672,18 @@ including 2D color images.")
     (synopsis "Qt frontend for the G'MIC image processing framework")
     (license license:gpl3+)))
 
+(define-public gmic-qt-krita
+  (package
+    (inherit gmic-qt)
+    (name "gmic-qt-krita")
+    (arguments
+     (substitute-keyword-arguments (package-arguments gmic-qt)
+       ((#:configure-flags flags)
+        '(list "-DGMIC_QT_HOST=krita" "-DENABLE_DYNAMIC_LINKING=ON"
+               (string-append "-DGMIC_LIB_PATH="
+                              (assoc-ref %build-inputs "gmic") "/lib")))))
+    (synopsis "Krita plugin for the G'MIC image processing framework")))
+
 (define-public nip2
   (package
     (name "nip2")
-- 
2.30.1





^ permalink raw reply related	[flat|nested] 7+ messages in thread

* bug#46939: [PATCH 1/4] gnu: gmic: Update to 2.9.6.
  2021-03-05  4:50 [bug#46939] [PATCH 1/4] gnu: gmic: Update to 2.9.6 Vinicius Monego
                   ` (2 preceding siblings ...)
  2021-03-05  5:43 ` [bug#46939] [PATCH v2 4/4] gnu: Add gmic-qt-krita Vinicius Monego
@ 2021-03-06 13:18 ` Nicolas Goaziou
  3 siblings, 0 replies; 7+ messages in thread
From: Nicolas Goaziou @ 2021-03-06 13:18 UTC (permalink / raw)
  To: Vinicius Monego; +Cc: 46939-done

Hello,

Vinicius Monego <monego@posteo.net> writes:

> * gnu/packages/image-processing.scm (gmic): Update to 2.9.6.

Applied all patches.

Thanks!

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-03-06 13:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [bug#46939] [PATCH v2 3/4] gnu: Add gmic-qt Vinicius Monego
2021-03-05  5:43 ` [bug#46939] [PATCH v2 4/4] gnu: Add gmic-qt-krita Vinicius Monego
2021-03-06 13:18 ` bug#46939: [PATCH 1/4] gnu: gmic: Update to 2.9.6 Nicolas Goaziou

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).