[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
80/86: gnu: Add zxing-cpp.
From: |
guix-commits |
Subject: |
80/86: gnu: Add zxing-cpp. |
Date: |
Sun, 5 Jul 2020 16:17:13 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 978c013905fcffe4c4c7b6fd05d5f3c1e18d6b58
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 5648f5a..2c3df8f 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
- 58/86: gnu: Add libtimidity., (continued)
- 58/86: gnu: Add libtimidity., guix-commits, 2020/07/05
- 51/86: gnu: Add nng., guix-commits, 2020/07/05
- 52/86: gnu: Add ccextractor., guix-commits, 2020/07/05
- 55/86: gnu: Add libmpeg3., guix-commits, 2020/07/05
- 62/86: gnu: Add ffmpeg-2.8., guix-commits, 2020/07/05
- 20/86: gnu: dconf: Update to 0.36.0., guix-commits, 2020/07/05
- 63/86: gnu: Add libvideogfx., guix-commits, 2020/07/05
- 64/86: gnu: Add libde265., guix-commits, 2020/07/05
- 69/86: gnu: Add libofa., guix-commits, 2020/07/05
- 74/86: gnu: Add mediasdk., guix-commits, 2020/07/05
- 80/86: gnu: Add zxing-cpp.,
guix-commits <=
- 86/86: gnu: Add libcloudproviders., guix-commits, 2020/07/05
- 72/86: gnu: Add lksctp-tools., guix-commits, 2020/07/05
- 24/86: gnu: enchant-1.6: Update package definition., guix-commits, 2020/07/05
- 27/86: gnu: fcitx: Update package definition., guix-commits, 2020/07/05
- 36/86: gnu: Add mutest., guix-commits, 2020/07/05
- 47/86: gnu: Add libvisual-plugins., guix-commits, 2020/07/05
- 42/86: gnu: glib-with-documentation: Update package definition., guix-commits, 2020/07/05
- 57/86: gnu: Add flux., guix-commits, 2020/07/05
- 53/86: gnu: Add libdc1394., guix-commits, 2020/07/05
- 65/86: gnu: Add libmms., guix-commits, 2020/07/05