[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
45/48: gnu: Add zxing-cpp.
From: |
guix-commits |
Subject: |
45/48: gnu: Add zxing-cpp. |
Date: |
Tue, 18 Aug 2020 17:08:46 -0400 (EDT) |
dannym pushed a commit to branch master
in repository guix.
commit 9068eb166d298ed23488be1b97001dd18fd0f3bb
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Fri Jul 3 12:06:23 2020 -0400
gnu: Add zxing-cpp.
* gnu/packages/aidc.scm (zxing-cpp): New variable.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/aidc.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/aidc.scm b/gnu/packages/aidc.scm
index 944ea04..3facc68 100644
--- a/gnu/packages/aidc.scm
+++ b/gnu/packages/aidc.scm
@@ -28,6 +28,7 @@
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (gnu packages autotools)
+ #:use-module (gnu packages check)
#:use-module (gnu packages imagemagick)
#:use-module (gnu packages glib)
#:use-module (gnu packages gtk)
@@ -37,8 +38,52 @@
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages qt)
#:use-module (gnu packages video)
+ #:use-module (guix build-system cmake)
#:use-module (guix build-system gnu))
+(define-public zxing-cpp
+ (package
+ (name "zxing-cpp")
+ (version "1.0.8")
+ (source
+ (origin
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "https://github.com/nu-book/zxing-cpp.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "011sq8wcjfxbnd8sj6bf2fgkamlp8gj6q835g61c952npvwsnl71"))))
+ (native-inputs
+ `(("googletest-source" ,(package-source googletest))))
+ (build-system cmake-build-system)
+ (arguments
+ `(#:out-of-source? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'unpack-googletest
+ ;; Copy the googletest sources to where the CMake build expects
them.
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((source (assoc-ref inputs "googletest-source"))
+ (target "test/unit/googletest-src"))
+ (mkdir-p target)
+ (copy-recursively source target)
+ ;; Disable downloading via ExternalProject.
+ (substitute* "test/unit/CMakeLists.txt.in"
+ (("ExternalProject_Add\\(") "message("))
+ #t)))
+ (replace 'check
+ (lambda _
+ (with-directory-excursion "test/unit"
+ (invoke "cmake" ".")
+ (invoke "make")
+ (invoke "./ZXingUnitTest"))
+ #t)))))
+ (synopsis "C++ port of ZXing")
+ (description "ZXing-CPP is a barcode scanning library.")
+ (home-page "https://github.com/nu-book/zxing-cpp")
+ (license license:asl2.0)))
(define-public barcode
(package
- 26/48: gnu: Add faac., (continued)
- 26/48: gnu: Add faac., guix-commits, 2020/08/18
- 31/48: gnu: Add libmms., guix-commits, 2020/08/18
- 32/48: gnu: Add schroedinger., guix-commits, 2020/08/18
- 27/48: gnu: Add flite., guix-commits, 2020/08/18
- 30/48: gnu: Add libde265., guix-commits, 2020/08/18
- 35/48: gnu: Add libofa., guix-commits, 2020/08/18
- 36/48: gnu: Add libopenmpt., guix-commits, 2020/08/18
- 37/48: gnu: Add tinyalsa., guix-commits, 2020/08/18
- 46/48: gnu: Add iqa., guix-commits, 2020/08/18
- 43/48: gnu: Add webrtc-audio-processing., guix-commits, 2020/08/18
- 45/48: gnu: Add zxing-cpp.,
guix-commits <=
- 40/48: gnu: Add mediasdk., guix-commits, 2020/08/18
- 47/48: gnu: Add rtmpdump., guix-commits, 2020/08/18
- 33/48: gnu: Add libquicktime., guix-commits, 2020/08/18
- 39/48: gnu: Add srt., guix-commits, 2020/08/18
- 42/48: gnu: Add vo-aacenc., guix-commits, 2020/08/18
- 44/48: gnu: Add wildmidi., guix-commits, 2020/08/18
- 48/48: gnu: Add libnice., guix-commits, 2020/08/18
- 34/48: gnu: Add mjpegtools., guix-commits, 2020/08/18
- 38/48: gnu: Add lksctp-tools., guix-commits, 2020/08/18
- 41/48: gnu: Add svt-hevc., guix-commits, 2020/08/18