Archived
1
0
Fork 0

gnu: qrcodegen-cpp: Update to 1.6.0.

* gnu/packages/aidc.scm (qrcodegen-cpp): Update to 1.6.0.
This commit is contained in:
Efraim Flashner 2020-04-18 22:01:58 +03:00
parent 0144f8def8
commit cac674d99d
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014 John Darringon <jmd@gnu.org> ;;; Copyright © 2014 John Darringon <jmd@gnu.org>
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2016, 2020 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2017 Hartmut Goebel <h.goebel@crazy-compilers.com> ;;; Copyright © 2017 Hartmut Goebel <h.goebel@crazy-compilers.com>
;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net> ;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net>
@ -157,39 +157,34 @@ Python as well as GUI widgets for GTK and Qt.")
(license license:lgpl2.1+))) (license license:lgpl2.1+)))
(define-public qrcodegen-cpp (define-public qrcodegen-cpp
;; Currently this project's installation mechanism only exists as a GitHub (package
;; pull request, so we build from a recent commit that the proposed patch (name "qrcodegen-cpp")
;; applies to. (version "1.6.0")
(let ((commit "6ea933f1596d818bd21e9a6b8d2e851fb8b4bcf1") (source (origin
(revision "0")) (method git-fetch)
(package (uri (git-reference
(name "qrcodegen-cpp") (url "https://github.com/nayuki/QR-Code-generator.git")
(version (git-version "1.5.0" revision commit)) (commit (string-append "v" version))))
(source (origin (file-name (git-file-name name version))
(method git-fetch) (patches (search-patches "qrcodegen-cpp-make-install.patch"))
(uri (git-reference (sha256
(url "https://github.com/nayuki/QR-Code-generator.git") (base32
(commit commit))) "0iq9sv9na0vg996aqrxrjn9rrbiyy7sc9vslw945p3ky22pw3lql"))))
(file-name (git-file-name name version)) (build-system gnu-build-system)
(patches (search-patches "qrcodegen-cpp-make-install.patch")) (arguments
(sha256 `(#:tests? #f ; no test suite
(base32 #:make-flags
"19fcwqmfk2n9p2n01dv2j4x2y2mqip0j1wbmfbxjp34rqkjwcwxm")))) (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
(build-system gnu-build-system) #:phases
(arguments (modify-phases %standard-phases
`(#:tests? #f ; no test suite (delete 'configure) ; No ./configure script
#:make-flags ;; Only build the C++ variant.
(list (string-append "PREFIX=" (assoc-ref %outputs "out"))) (add-after 'unpack 'chdir
#:phases (lambda _
(modify-phases %standard-phases (chdir "cpp")
(delete 'configure) ; No ./configure script #t)))))
;; Only build the C++ variant. (synopsis "QR Code generator library")
(add-after 'unpack 'chdir (description "qrcodegen-cpp is a QR code generator library in C++. The
(lambda _
(chdir "cpp")
#t)))))
(synopsis "QR Code generator library")
(description "qrcodegen-cpp is a QR code generator library in C++. The
project also offers Java, Javascript, Python, C, and Rust implementations.") project also offers Java, Javascript, Python, C, and Rust implementations.")
(home-page "https://www.nayuki.io/page/qr-code-generator-library") (home-page "https://www.nayuki.io/page/qr-code-generator-library")
(license license:expat)))) (license license:expat)))