gnu: utfcpp: Update to 3.2.4.
* gnu/packages/textutils.scm (utfcpp): Update to 3.2.4. [snippet]: Unbundle ftest. [arguments]: Remove field. [native-inputs]: Add ftest. * gnu/packages/games.scm (warzone2100)[#:phases]: Adjust 'fix-utfcpp-include. * gnu/packages/video.scm (mkvtoolnix)[#:phases]: Add 'fix-utfcpp-include. Co-authored-by: Hilton Chain <hako@ultrarare.space> Signed-off-by: Hilton Chain <hako@ultrarare.space>
This commit is contained in:
parent
d9bb9f5390
commit
4e531e55dc
3 changed files with 19 additions and 15 deletions
|
@ -5579,7 +5579,7 @@ in-window at 640x480 resolution or fullscreen.")
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "lib/framework/wzstring.cpp"
|
(substitute* "lib/framework/wzstring.cpp"
|
||||||
(("<utfcpp/source/utf8.h>")
|
(("<utfcpp/source/utf8.h>")
|
||||||
"<utf8.h>"))))
|
"<utf8cpp/utf8.h>"))))
|
||||||
(add-after 'unpack 'link-tests-with-qt
|
(add-after 'unpack 'link-tests-with-qt
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "tests/Makefile.am"
|
(substitute* "tests/Makefile.am"
|
||||||
|
|
|
@ -25,6 +25,8 @@
|
||||||
;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
|
;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
|
||||||
;;; Copyright © 2021 Bonface Munyoki Kilyungi <me@bonfacemunyoki.com>
|
;;; Copyright © 2021 Bonface Munyoki Kilyungi <me@bonfacemunyoki.com>
|
||||||
;;; Copyright © 2022 Gabriel Wicki <gabriel@erlikon.ch>
|
;;; Copyright © 2022 Gabriel Wicki <gabriel@erlikon.ch>
|
||||||
|
;;; Copyright © 2023 Reza Housseini <reza@housseini.me>
|
||||||
|
;;; Copyright © 2023 Hilton Chain <hako@ultrarare.space>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -690,29 +692,26 @@ spreadsheets and outputs it in comma-separated-value format, and
|
||||||
(define-public utfcpp
|
(define-public utfcpp
|
||||||
(package
|
(package
|
||||||
(name "utfcpp")
|
(name "utfcpp")
|
||||||
(version "2.3.5")
|
(version "3.2.4")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/nemtrif/utfcpp")
|
(url "https://github.com/nemtrif/utfcpp")
|
||||||
(commit (string-append "v" version))))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
;; Unbundle ftest
|
||||||
|
(snippet
|
||||||
|
'(begin
|
||||||
|
(delete-file-recursively "extern")
|
||||||
|
(substitute* (find-files "tests" "\\.cpp")
|
||||||
|
(("\"../extern/ftest/ftest.h\"")
|
||||||
|
"<ftest/ftest.h>"))))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1gr98d826z6wa58r1s5i7rz7q2x3r31v7zj0pjjlrc7gfxwklr4s"))))
|
"0p18cbdk57ilbgcgprgqp7fgysb5i0nidczbhc5rnxkiiw4jvxgn"))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(native-inputs (list ftest))
|
||||||
`(#:out-of-source? #f
|
|
||||||
#:phases
|
|
||||||
(modify-phases %standard-phases
|
|
||||||
(replace 'install ; no install target
|
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
|
||||||
(include (string-append out "/include"))
|
|
||||||
(doc (string-append out "/share/doc/" ,name)))
|
|
||||||
(copy-recursively "source" include)
|
|
||||||
(install-file "README.md" doc)
|
|
||||||
#t))))))
|
|
||||||
(home-page "https://github.com/nemtrif/utfcpp")
|
(home-page "https://github.com/nemtrif/utfcpp")
|
||||||
(synopsis "Portable C++ library for handling UTF-8")
|
(synopsis "Portable C++ library for handling UTF-8")
|
||||||
(description "UTF8-CPP is a C++ library for handling UTF-8 encoded text
|
(description "UTF8-CPP is a C++ library for handling UTF-8 encoded text
|
||||||
|
|
|
@ -1057,6 +1057,11 @@ H.264 (MPEG-4 AVC) video streams.")
|
||||||
"--enable-precompiled-headers=no")
|
"--enable-precompiled-headers=no")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'fix-utfcpp-include
|
||||||
|
(lambda _
|
||||||
|
(substitute* "src/common/strings/utf8.cpp"
|
||||||
|
(("<utf8.h>")
|
||||||
|
"<utf8cpp/utf8.h>"))))
|
||||||
(add-after 'unpack 'patch-relative-file-names
|
(add-after 'unpack 'patch-relative-file-names
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
|
Reference in a new issue