gnu: znc: Build with CMake.

* gnu/packages/messaging.scm (znc)[build-system]:
Use the CMAKE-BUILD-SYSTEM.
[arguments]: Adjust #:configure-flags and where the googletest sources
are unpacked.
This commit is contained in:
Tobias Geerinckx-Rice 2019-06-25 14:34:09 +02:00
parent 1d0caec0ac
commit 2b0f32937e
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 12 additions and 14 deletions

View File

@ -498,24 +498,22 @@ compromised.")
(sha256 (sha256
(base32 (base32
"0wcvqkpin8w4i72alnn0nxnrc9ih543qs34hqpk9xmz6m0hjk8xi")))) "0wcvqkpin8w4i72alnn0nxnrc9ih543qs34hqpk9xmz6m0hjk8xi"))))
;; TODO: autotools support has been deprecated, and new features like i18n (build-system cmake-build-system)
;; are only supported when building with cmake.
(build-system gnu-build-system)
(arguments (arguments
`(#:phases `(#:configure-flags
(list "-DWANT_CYRUS=ON"
"-DWANT_PERL=ON"
"-DWANT_PYTHON=ON")
#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'unpack-googletest (add-after 'unpack 'unpack-googletest
;; Copy the googletest sources to where the CMake build expects them.
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(mkdir-p "googletest") (let ((source (assoc-ref inputs "googletest-source"))
(copy-recursively (assoc-ref inputs "googletest-source") (target "third_party/googletest"))
"googletest") (mkdir-p target)
#t))) (copy-recursively source target)
#:configure-flags '("--enable-python" #t))))))
"--enable-perl"
"--enable-cyrus"
"--with-gmock=googletest/googlemock"
"--with-gtest=googletest/googletest")
#:test-target "test"))
(native-inputs (native-inputs
`(("googletest-source" ,(package-source googletest)) `(("googletest-source" ,(package-source googletest))
("pkg-config" ,pkg-config))) ("pkg-config" ,pkg-config)))