diff mbox series

[bug#41997] gnu: Add photoflare.

Message ID 20200622031913.26771-1-monego@posteo.net
State Accepted
Headers show
Series [bug#41997] gnu: Add photoflare. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job

Commit Message

Vinicius Monego June 22, 2020, 3:19 a.m. UTC
* gnu/packages/photo.scm (photoflare): New variable.
---
 gnu/packages/photo.scm | 45 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Comments

Marius Bakke June 24, 2020, 7:05 p.m. UTC | #1
Vinicius Monego <monego@posteo.net> writes:

> * gnu/packages/photo.scm (photoflare): New variable.

[...]
  
> +(define-public photoflare
> +  (package
> +    (name "photoflare")
> +    (version "1.6.5")
> +    (source
> +     (origin
> +      (method git-fetch)
> +       (uri (git-reference
> +             (url "https://github.com/photoflare/photoflare")
> +             (commit (string-append "v" version))))
> +       (file-name (git-file-name name version))
> +       (sha256
> +        (base32 "0a394324h7ds567z3i3pw6kkii78n4qwdn129kgkkm996yh03q89"))))
> +    (build-system gnu-build-system)
> +    (arguments
> +     '(#:tests? #f

I added a "no tests" comment here after having a peek in the upstream
repository.  Applied!
diff mbox series

Patch

diff --git a/gnu/packages/photo.scm b/gnu/packages/photo.scm
index 4904fa1db1..8f6d05f0f7 100644
--- a/gnu/packages/photo.scm
+++ b/gnu/packages/photo.scm
@@ -30,6 +30,7 @@ 
   #:use-module (guix build-system perl)
   #:use-module (guix build-system python)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix utils)
@@ -522,6 +523,50 @@  and enhance them.")
     (supported-systems '("i686-linux" "x86_64-linux" "aarch64-linux"))
     (license license:gpl3+)))
 
+(define-public photoflare
+  (package
+    (name "photoflare")
+    (version "1.6.5")
+    (source
+     (origin
+      (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/photoflare/photoflare")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0a394324h7ds567z3i3pw6kkii78n4qwdn129kgkkm996yh03q89"))))
+    (build-system gnu-build-system)
+    (arguments
+     '(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+        (replace 'configure
+         (lambda* (#:key inputs outputs #:allow-other-keys)
+           (let ((magickpp (assoc-ref inputs "graphicsmagick"))
+                 (out (assoc-ref outputs "out")))
+             (invoke "qmake"
+                     (string-append "INCLUDEPATH += " magickpp
+                                    "/include/GraphicsMagick")
+                     (string-append "PREFIX=" out)
+                     "Photoflare.pro")))))))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("qttools" ,qttools)))
+    (inputs
+     `(("graphicsmagick" ,graphicsmagick)
+       ("libomp" ,libomp)
+       ("qtbase" ,qtbase)))
+    (home-page "https://photoflare.io")
+    (synopsis "Quick, simple but powerful image editor")
+    (description "Photoflare is a cross-platform image editor with an aim
+to balance between powerful features and a very friendly graphical user
+interface.  It suits a wide variety of different tasks and users who value a
+more nimble workflow.  Features include basic image editing capabilities,
+paint brushes, image filters, colour adjustments and more advanced features
+such as Batch image processing.")
+    (license license:gpl3+)))
+
 (define-public hugin
   (package
     (name "hugin")