From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +A1ZLTeAYWOcTAEAbAwnHQ (envelope-from ) for ; Tue, 01 Nov 2022 21:23:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id rYcILTeAYWNUGgAAauVa8A (envelope-from ) for ; Tue, 01 Nov 2022 21:23:19 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 690A616740 for ; Tue, 1 Nov 2022 21:23:19 +0100 (CET) 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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667334199; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=eJjmy00OO70RxjYwSZuJo9eO7pRokO4MJw1lAltH2SI=; b=dlD6Igy2jrU2g+3y+LCemoIgt2y+ngXoqkFa09w6V85dvSX7M3wXSM5tSAei7aV3p2xKIV VG++RNEHL32NXyLEbkUwb6zURoy82boiDbq4uw+8cbMcU0vWtR4+m27xdjPR62gM9AH5kL kWN9E1o8OL+63u1HAHjtp/Xtv65ALNxen9prg9rFcLE8mQosV9NGGMfCiHbqk43zoh4UI5 we7ItTRXXoSilHYnkxgY6EfHHbZybQ60dLk4Sdm/FJFP8E0SEyGBJ5b2JTj6QH5VlFZXth DzDkiHoG0CzTnl8psw7RHmlzRk+SVx1TwXv002DTXA9k5GWOehlN6xMTDyerPA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667334199; a=rsa-sha256; cv=none; b=TjYzLxqXSLiSD2C2xa4p+gt8yw74AlcPKZDx0cwfgvhxhBhtcwkxdixl3cNjUquY0gLpHk w2wpREV1/TVi7veQghT2rVIo2Xceb8rtDXYFKm75b7qnm8kibcjnUk92iLl5peTpgXHIPv mg6BkW3ZXtiImA6xqIPcJ5LidubIOqppqrLsDi7GFflEM2NOHoowfyuvMA4t7G4jzhnRPo qD0muFhf36PZAJjzU5Wg32OTya+wg1HjOpP8agvamhJmstnGZfuTK4N7bFGZQcgcO19uqJ cUvftTmPVvoP77rOdSseb8riDVnH01epsASJ3MhZh2pkRSUB5LAY98loKC+wrQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Lgww5Yf8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.22 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Lgww5Yf8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 690A616740 X-Spam-Score: 7.22 X-Migadu-Scanner: scn0.migadu.com X-TUID: QnWyEa6eTEHU * 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") -- 2.37.3