gnu: librime: Remove bundled sources.
* gnu/packages/ibus.scm (librime)[source]: Add snippet to remove bundled sources. [arguments]: Add custom phase to not search bundled headers. [native-inputs]: Add googletest, xorgproto.
This commit is contained in:
parent
ca0757c607
commit
6556c00afa
|
@ -34,6 +34,7 @@
|
||||||
#:use-module (gnu packages autotools)
|
#:use-module (gnu packages autotools)
|
||||||
#:use-module (gnu packages base)
|
#:use-module (gnu packages base)
|
||||||
#:use-module (gnu packages boost)
|
#:use-module (gnu packages boost)
|
||||||
|
#:use-module (gnu packages check)
|
||||||
#:use-module (gnu packages cmake)
|
#:use-module (gnu packages cmake)
|
||||||
#:use-module (gnu packages databases)
|
#:use-module (gnu packages databases)
|
||||||
#:use-module (gnu packages datastructures)
|
#:use-module (gnu packages datastructures)
|
||||||
|
@ -301,8 +302,25 @@ Japanese language input in most graphical applications.")
|
||||||
(commit version)))
|
(commit version)))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "06q10cv7a3i6d8l3sq79nasw3p1njvmjgh4jq2hqw9abcx351m1r"))))
|
(base32
|
||||||
|
"06q10cv7a3i6d8l3sq79nasw3p1njvmjgh4jq2hqw9abcx351m1r"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet
|
||||||
|
'(begin
|
||||||
|
(delete-file-recursively "thirdparty/src")
|
||||||
|
(delete-file-recursively "thirdparty/bin")
|
||||||
|
(delete-file-recursively "thirdparty/include/X11")
|
||||||
|
#t))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
|
(arguments
|
||||||
|
'(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'patch-source
|
||||||
|
(lambda _
|
||||||
|
(substitute* "CMakeLists.txt"
|
||||||
|
(("include_directories\\($\\{PROJECT_SOURCE_DIR\\}/thirdparty/include\\)") "")
|
||||||
|
(("link_directories\\($\\{PROJECT_SOURCE_DIR\\}/thirdparty/lib\\)") ""))
|
||||||
|
#t)))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("boost" ,boost)
|
`(("boost" ,boost)
|
||||||
("glog" ,glog)
|
("glog" ,glog)
|
||||||
|
@ -310,6 +328,9 @@ Japanese language input in most graphical applications.")
|
||||||
("marisa" ,marisa)
|
("marisa" ,marisa)
|
||||||
("opencc" ,opencc)
|
("opencc" ,opencc)
|
||||||
("yaml-cpp" ,yaml-cpp)))
|
("yaml-cpp" ,yaml-cpp)))
|
||||||
|
(native-inputs
|
||||||
|
`(("googletest" ,googletest)
|
||||||
|
("xorgproto" ,xorgproto))) ; keysym.h
|
||||||
(home-page "https://rime.im/")
|
(home-page "https://rime.im/")
|
||||||
(synopsis "The core library of Rime Input Method Engine")
|
(synopsis "The core library of Rime Input Method Engine")
|
||||||
(description "@dfn{librime} is the core library of Rime Input Method
|
(description "@dfn{librime} is the core library of Rime Input Method
|
||||||
|
|
Loading…
Reference in New Issue