mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: opencc: Unbundle rapidjson.
* gnu/packages/textutils.scm (opencc)[source]: Add snippet to remove rapidjson. [arguments]: Add custom phase to substitute rapidjson. [native-inputs]: Add rapidjson.
This commit is contained in:
parent
bf5af9342c
commit
1506d491f9
1 changed files with 21 additions and 3 deletions
|
@ -52,7 +52,8 @@ (define-module (gnu packages textutils)
|
||||||
#:use-module (gnu packages pkg-config)
|
#:use-module (gnu packages pkg-config)
|
||||||
#:use-module (gnu packages python)
|
#:use-module (gnu packages python)
|
||||||
#:use-module (gnu packages readline)
|
#:use-module (gnu packages readline)
|
||||||
#:use-module (gnu packages slang))
|
#:use-module (gnu packages slang)
|
||||||
|
#:use-module (gnu packages web))
|
||||||
|
|
||||||
(define-public dos2unix
|
(define-public dos2unix
|
||||||
(package
|
(package
|
||||||
|
@ -764,10 +765,27 @@ (define-public opencc
|
||||||
(commit (string-append "ver." version))))
|
(commit (string-append "ver." version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1pv5md225qwhbn8ql932zdg6gh1qlx3paiajaks8gfsa07yzvhr4"))))
|
(base32
|
||||||
|
"1pv5md225qwhbn8ql932zdg6gh1qlx3paiajaks8gfsa07yzvhr4"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet
|
||||||
|
'(begin
|
||||||
|
;; TODO: Unbundle tclap, darts-clone, gtest
|
||||||
|
(delete-file-recursively "deps/rapidjson-0.11") #t))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
|
(arguments
|
||||||
|
'(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'patch-3rd-party-references
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(let ((rapidjson (assoc-ref inputs "rapidjson")))
|
||||||
|
(substitute* "src/CMakeLists.txt"
|
||||||
|
(("../deps/rapidjson-0.11")
|
||||||
|
(string-append rapidjson "/include/rapidjson")))
|
||||||
|
#t))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python" ,python-wrapper)))
|
`(("python" ,python-wrapper)
|
||||||
|
("rapidjson" ,rapidjson)))
|
||||||
(home-page "https://github.com/BYVoid/OpenCC")
|
(home-page "https://github.com/BYVoid/OpenCC")
|
||||||
(synopsis "Convert between Traditional Chinese and Simplified Chinese")
|
(synopsis "Convert between Traditional Chinese and Simplified Chinese")
|
||||||
(description "Open Chinese Convert (OpenCC) converts between Traditional
|
(description "Open Chinese Convert (OpenCC) converts between Traditional
|
||||||
|
|
Loading…
Reference in a new issue