unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: phodina via Guix-patches via <guix-patches@gnu.org>
To: Tobias Geerinckx-Rice <me@tobias.gr>
Cc: 51923@debbugs.gnu.org
Subject: [bug#51923] [PATCH v2] gnu: Add megapixels.
Date: Mon, 29 Nov 2021 11:02:20 +0000	[thread overview]
Message-ID: <LZX-lj6Nr3kpduKTZ_JCAsyeTcuOCP9u20WYK-S96PIQsE6Ul2aF-zc3oKo267N9Yx_Y3Aea_A6oUCjglN_-Gxa4znVmT7I46V3Ms9pJVag=@protonmail.com> (raw)
In-Reply-To: <e2d7f8a6a7018044f218d15e6986ed06@tobias.gr>

[-- Attachment #1: Type: text/plain, Size: 116 bytes --]

Hi Tobias,

thanks for the review. Please see the attached updated patch.

Have you had time to test it?

Petr

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: v2-0001-gnu-Add-megapixels.patch --]
[-- Type: text/x-patch; name=v2-0001-gnu-Add-megapixels.patch, Size: 3002 bytes --]

From c27ef7829f5f3c3198118751729583acd8eb05c6 Mon Sep 17 00:00:00 2001
From: Petr Hodina <phodina@protonmail.com>
Date: Sun, 3 Oct 2021 23:16:11 +0200
Subject: [PATCH v2] gnu: Add megapixels.

* gnu/packages/gnome.scm (megapixels): New variable.

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 19520f335a..a868ac462a 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -63,6 +63,7 @@
 ;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
 ;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
 ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
+;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1137,6 +1138,57 @@ freedesktop.org desktop notification specification.")
     (home-page "https://wiki.gnome.org/Projects/NotificationDaemon")
     (license license:gpl2+)))
 
+(define-public megapixels
+  (package
+    (name "megapixels")
+    (version "1.3.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "http://gitlab.com/postmarketos/megapixels")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0dagp1sh5whnnllrydk7ijjid0hmvcbdm8kkzq2g168khdfn80jm"))))
+    (build-system meson-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'patch-paths
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let ((out (assoc-ref %outputs "out"))
+                   (paths (map
+                           (lambda (input)
+                             (string-append (assoc-ref inputs input) "/bin"))
+                           '("coreutils" "imagemagick"))))
+               (wrap-program
+                   (string-append out "/share/megapixels/postprocess.sh")
+                 `("PATH" prefix ,paths))))))))
+    (native-inputs
+     `(("cmake" ,cmake)
+       ("coreutils" ,coreutils)
+       ("desktop-file-utils" ,desktop-file-utils) ; for update-desktop-database
+       ("glib:bin" ,glib "bin")         ; glib-compile-schemas, etc.
+       ("gtk:bin" ,gtk "bin")           ; for gtk-update-icon-cache
+       ("imagemagick" ,imagemagick)
+       ("libtiff" ,libtiff)
+       ("pkg-config" ,pkg-config)
+       ("zbar" ,zbar)))
+    (inputs
+     `(("gtk" ,gtk)
+       ("imagemagick" ,imagemagick)
+       ("libhandy" ,libhandy)
+       ("libraw" ,libraw)
+       ("perl-image-exiftool" ,perl-image-exiftool)))
+    (synopsis "Camera applications for mobile devices")
+    (description "This package provides camera application for mobile devices
+that captures a 5 frame burst of raw frames that are later postprocessed and
+saved as jpg files.")
+    (home-page "http://gitlab.com/postmarketos/megapixels")
+    (license license:gpl3+)))
+
 (define-public mm-common
   (package
     (name "mm-common")

base-commit: b7b982228a7256afcb83d0b05a098139c2e1a644
-- 
2.33.0


  reply	other threads:[~2021-11-29 11:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-17 16:07 [bug#51923] [PATCH] gnu: Add megapixels phodina via Guix-patches via
2021-11-17 17:47 ` Tobias Geerinckx-Rice via Guix-patches via
2021-11-29 11:02   ` phodina via Guix-patches via [this message]
2021-11-29 14:39     ` [bug#51923] [PATCH v2] " Tobias Geerinckx-Rice via Guix-patches via
2021-12-10 14:24       ` [bug#51923] [PATCH] " Ludovic Courtès
2023-01-04  0:42     ` Maxim Cournoyer
2023-01-04  1:25       ` phodina via Guix-patches via

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='LZX-lj6Nr3kpduKTZ_JCAsyeTcuOCP9u20WYK-S96PIQsE6Ul2aF-zc3oKo267N9Yx_Y3Aea_A6oUCjglN_-Gxa4znVmT7I46V3Ms9pJVag=@protonmail.com' \
    --to=guix-patches@gnu.org \
    --cc=51923@debbugs.gnu.org \
    --cc=me@tobias.gr \
    --cc=phodina@protonmail.com \
    /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).