From patchwork Tue Nov 1 20:22:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 44240 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 A5DFB27BBEB; Tue, 1 Nov 2022 20:23:18 +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_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 78F9E27BBE9 for ; Tue, 1 Nov 2022 20:23:17 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opxmp-0000jC-Nw; Tue, 01 Nov 2022 16:23:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opxmo-0000ic-7L for guix-patches@gnu.org; Tue, 01 Nov 2022 16:23:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opxmo-0001qW-0R for guix-patches@gnu.org; Tue, 01 Nov 2022 16:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1opxmn-0000QF-SM for guix-patches@gnu.org; Tue, 01 Nov 2022 16:23:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58952] [PATCH 1/3] gnu: Add easyexif References: <20221101202106.17518-1-sharlatanus@gmail.com> In-Reply-To: <20221101202106.17518-1-sharlatanus@gmail.com> Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 01 Nov 2022 20:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58952 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58952@debbugs.gnu.org Cc: Sharlatan Hellseher Received: via spool by 58952-submit@debbugs.gnu.org id=B58952.16673341801588 (code B ref 58952); Tue, 01 Nov 2022 20:23:01 +0000 Received: (at 58952) by debbugs.gnu.org; 1 Nov 2022 20:23:00 +0000 Received: from localhost ([127.0.0.1]:44308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opxmj-0000PG-Uj for submit@debbugs.gnu.org; Tue, 01 Nov 2022 16:23:00 -0400 Received: from mail-wr1-f48.google.com ([209.85.221.48]:42937) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opxmh-0000Oy-LK for 58952@debbugs.gnu.org; Tue, 01 Nov 2022 16:22:56 -0400 Received: by mail-wr1-f48.google.com with SMTP id cl5so10038979wrb.9 for <58952@debbugs.gnu.org>; Tue, 01 Nov 2022 13:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=eJjmy00OO70RxjYwSZuJo9eO7pRokO4MJw1lAltH2SI=; b=Lgww5Yf8S4sPPg2ng7xECdmgb65qKpw4R7tnAbAE+doFgleFuAEgA8TEKuCIMQhk+Z TaSWm6K3XipagNteGLThID2+oPsveTeliiaSA92Ll5rxFYQv6A2zUu/r56GhrZWmsT7o Ebir6N2klB0pNN+EofNJ2C2SMMFcxeYJL0chDrlyWdSh7yshuraMeoskZqOEaddE9ylk jhuNJjMiCTl5aak3yInusjoHEMg4WH3OAUbTCM0sEa9WJV9Z6Pn78APDX4DXpnr7Z5hu B+rTTru5nIJq2XU4XsgPRhk1WKaGMCuH4MWxI3EVkbfLkPRS27sGB7x+pG97BrS9z7ev uqrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eJjmy00OO70RxjYwSZuJo9eO7pRokO4MJw1lAltH2SI=; b=mi2SnSExYhaVfasvhd5C4g9ew7wex3hSEOSWd1YcGGaYDvCTdVvUyeEcgPPP1QAG94 7xw4xnONXzbeJDVIREDu4rihFgwcDSj4rTAlDFEUleeS5IXXRMrRL2XanqgKcn65lfos feQmYrQ5NznPQpC213w4SHHxsYL+f34MYiQ+s1o8vxRh3sJPqHm2MGBidDqzHeZfGAHD bbSszWfiPqrvgajw9yzDhCDQ1boJshNvbMTWkB0/yk9Ike+5s0/qykkJ7EjkZpT0bzD2 rHaakqX8okbY+See2iKTgo+quwl8RXQ2kPLG3qJxogAv4942pM1XhHgXM9cKho6RZ4+V gzLg== X-Gm-Message-State: ACrzQf2FNAPlS9jsH/sN7ruYk+HZK3yhIHBl7Ru0GNKX9gKG6wyW8Y3f dGZX8J2rrcY1NIiICRz0Qnyf9vqut7k= X-Google-Smtp-Source: AMsMyM4qpxmZN3joj5Rk0m4WMMeG3H+kxLiisOX2TpTFJOhquukVLSGQZS9oMqcR70CbD/df0whyfQ== X-Received: by 2002:adf:ebd2:0:b0:236:d5d6:7dab with SMTP id v18-20020adfebd2000000b00236d5d67dabmr6833002wrn.595.1667334169694; Tue, 01 Nov 2022 13:22:49 -0700 (PDT) Received: from guxtil.incerto.xyz (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id i4-20020a05600c354400b003cf4c1e211fsm12301474wmq.38.2022.11.01.13.22.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Nov 2022 13:22:49 -0700 (PDT) From: Sharlatan Hellseher Date: Tue, 1 Nov 2022 20:22:44 +0000 Message-Id: <20221101202246.17659-1-sharlatanus@gmail.com> X-Mailer: git-send-email 2.37.3 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: , Sender: "Guix-patches" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/photo.scm (easyexif): New variable. --- gnu/packages/photo.scm | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/photo.scm b/gnu/packages/photo.scm index 642694bda1..0df6c7f271 100644 --- a/gnu/packages/photo.scm +++ b/gnu/packages/photo.scm @@ -227,6 +227,50 @@ (define-public libexif data as produced by digital cameras.") (license license:lgpl2.1+))) +(define-public easyexif + (package + (name "easyexif") + (version "1.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mayanklahiri/easyexif") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0l3zr2gzjw25k7gw8z7cpz4prqzfrrpqdqd8gqw2py8pbsxkx8ap")))) + (build-system gnu-build-system) + (arguments + (list #:phases #~(modify-phases %standard-phases + (delete 'configure) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "./test.sh")))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (share (string-append out "/share")) + (include (string-append out + "/include/easyexif"))) + (for-each (lambda (dir) + (mkdir-p dir)) + (list bin include share)) + (install-file "demo" bin) + (install-file "exif.cpp" include) + (install-file "exif.h" include) + (install-file "LICENSE" share))))))) + (home-page "https://github.com/mayanklahiri/easyexif") + (synopsis "ISO-compliant C++ EXIF parsing library") + (description + "EasyEXIF is a tiny, lightweight C++ library that parses basic information +out of JPEG files. It uses only the std::string library and is otherwise pure +C++. You pass it the binary contents of a JPEG file, and it parses several of +the most important EXIF fields for you.") + (license license:bsd-0))) + (define-public libgphoto2 (package (name "libgphoto2")