From: Sharlatan Hellseher <sharlatanus@gmail.com>
To: 58952@debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus@gmail.com>
Subject: [bug#58952] [PATCH 1/3] gnu: Add easyexif
Date: Tue, 1 Nov 2022 20:22:44 +0000 [thread overview]
Message-ID: <20221101202246.17659-1-sharlatanus@gmail.com> (raw)
In-Reply-To: <20221101202106.17518-1-sharlatanus@gmail.com>
* 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
next prev parent reply other threads:[~2022-11-01 20:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-01 20:21 [bug#58952] [PATCH 0/3] gnu: meshlib: Unbundle some external libraries Sharlatan Hellseher
2022-11-01 20:22 ` Sharlatan Hellseher [this message]
2022-11-01 20:22 ` [bug#58952] [PATCH 2/3] gnu: Add vcglib Sharlatan Hellseher
2022-11-03 17:24 ` Christopher Baines
2022-11-01 20:22 ` [bug#58952] [PATCH 3/3] gnu: meshlab: Unbundle vcglib and easyexif Sharlatan Hellseher
2022-11-03 17:24 ` [bug#58952] [PATCH 1/3] gnu: Add easyexif Christopher Baines
2022-11-03 22:58 ` [bug#58952] Sharlatan Hellseher
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=20221101202246.17659-1-sharlatanus@gmail.com \
--to=sharlatanus@gmail.com \
--cc=58952@debbugs.gnu.org \
/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).