From patchwork Mon Nov 29 11:02:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: phodina X-Patchwork-Id: 34872 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4347C27BBEA; Mon, 29 Nov 2021 11:03:10 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B431D27BBE9 for ; Mon, 29 Nov 2021 11:03:09 +0000 (GMT) Received: from localhost ([::1]:54894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mreRA-0003h7-PN for patchwork@mira.cbaines.net; Mon, 29 Nov 2021 06:03:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mreR4-0003fa-C0 for guix-patches@gnu.org; Mon, 29 Nov 2021 06:03:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53938) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mreR4-0008Q2-1v for guix-patches@gnu.org; Mon, 29 Nov 2021 06:03:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mreR3-0004sl-NP for guix-patches@gnu.org; Mon, 29 Nov 2021 06:03:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51923] [PATCH v2] gnu: Add megapixels. Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 29 Nov 2021 11:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51923 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Tobias Geerinckx-Rice Cc: 51923@debbugs.gnu.org Received: via spool by 51923-submit@debbugs.gnu.org id=B51923.163818375618729 (code B ref 51923); Mon, 29 Nov 2021 11:03:01 +0000 Received: (at 51923) by debbugs.gnu.org; 29 Nov 2021 11:02:36 +0000 Received: from localhost ([127.0.0.1]:37251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mreQY-0004rw-JZ for submit@debbugs.gnu.org; Mon, 29 Nov 2021 06:02:35 -0500 Received: from mail-4316.protonmail.ch ([185.70.43.16]:15373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mreQW-0004rj-B2 for 51923@debbugs.gnu.org; Mon, 29 Nov 2021 06:02:29 -0500 Date: Mon, 29 Nov 2021 11:02:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1638183741; bh=US3UhSV2TOhW0RRsm5n7we0RhAGeoQCMmxk+Z9lf/PA=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=V9RFBl7g2hddM6EbG9yBneRXo8YML7sVYHBxlgtv2aVggA6XmdhnOWIjKeWrPJkPr ddWbUoFKk5gPr61YdQkzRG7JbKg9Hse19PU5y/WhgH82muOIiJMtleVSaSd7n+spNN hAiGVUNRwT0oAa1e8+HRRpOf7oi+efjfPdqLaBME= Message-ID: In-Reply-To: References: <1vMgyrQNafwkMS0fIpN4mfDx99qF7xXbrXm_sCn6ysww4GrF4zowVOX2LzUzvgC33fu6zlCrPKQTpas0kymx5ME2BmRRNON5m0cmlh9Lrbs=@protonmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches X-Patchwork-Original-From: phodina via Guix-patches via From: phodina X-getmail-retrieved-from-mailbox: Patches Hi Tobias, thanks for the review. Please see the attached updated patch. Have you had time to test it? Petr From c27ef7829f5f3c3198118751729583acd8eb05c6 Mon Sep 17 00:00:00 2001 From: Petr Hodina 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 ;;; Copyright © 2021 Felix Gruber ;;; Copyright © 2021 Maxime Devos +;;; Copyright © 2021 Petr Hodina ;;; ;;; 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