gnu: znc: Update to 1.7.0.
* gnu/packages/messaging.scm (znc): Update to 1.7.0. [native-inputs]: Replace GOOGLETEST source input with a newer git checkout. [arguments]: Adjust the ‘unpack-googletest’ phase accordingly. Add ‘--with-gmock=...’ to #:configure-flags.
This commit is contained in:
parent
41700efa40
commit
8cb3a0cf0a
|
@ -394,6 +394,8 @@ test coverage and has a web user interface that will refresh automatically.")
|
||||||
(home-page "https://github.com/smartystreets/goconvey")
|
(home-page "https://github.com/smartystreets/goconvey")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
;; XXX When updating, check whether ZNC's GOOGLETEST-SOURCES can be
|
||||||
|
;; switched back to simply using (PACKAGE-SOURCE ...).
|
||||||
(define-public googletest
|
(define-public googletest
|
||||||
(package
|
(package
|
||||||
(name "googletest")
|
(name "googletest")
|
||||||
|
|
|
@ -440,32 +440,48 @@ compromised.")
|
||||||
(define-public znc
|
(define-public znc
|
||||||
(package
|
(package
|
||||||
(name "znc")
|
(name "znc")
|
||||||
(version "1.6.6")
|
(version "1.7.0")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "http://znc.in/releases/archive/znc-"
|
(uri (string-append "http://znc.in/releases/archive/znc-"
|
||||||
version ".tar.gz"))
|
version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"09cmsnxvi7jg9a0dicf60fxnxdff4aprw7h8vjqlj5ywf6y43f3z"))))
|
"0vxra50418bsjfdpf8vl70fijv8syvasjqdxfyjliff6k91k2zn0"))))
|
||||||
|
;; TODO: autotools support has been deprecated, and new features like i18n
|
||||||
|
;; are only supported when building with cmake.
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'unpack-googletest
|
(add-after 'unpack 'unpack-googletest
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(invoke "tar" "xf" (assoc-ref inputs "googletest-source"))
|
(mkdir-p "googletest")
|
||||||
|
(copy-recursively (assoc-ref inputs "googletest-source")
|
||||||
|
"googletest")
|
||||||
#t)))
|
#t)))
|
||||||
#:configure-flags '("--enable-python"
|
#:configure-flags '("--enable-python"
|
||||||
"--enable-perl"
|
"--enable-perl"
|
||||||
"--enable-cyrus"
|
"--enable-cyrus"
|
||||||
,(string-append "--with-gtest="
|
"--with-gmock=googletest/googlemock"
|
||||||
"googletest-release-"
|
"--with-gtest=googletest/googletest")
|
||||||
(package-version googletest)
|
|
||||||
"/googletest"))
|
|
||||||
#:test-target "test"))
|
#:test-target "test"))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("googletest-source" ,(package-source googletest))
|
`(("googletest-source"
|
||||||
|
;; ZNC 1.7 needs a newer, unreleased googletest (a release is planned
|
||||||
|
;; <https://github.com/google/googletest/issues/1583>, so don't update
|
||||||
|
;; the public GOOGLETEST to an unstable version). The commit is taken
|
||||||
|
;; from ‘third_party/googletest’ in the ZNC git repository.
|
||||||
|
,(let ((commit "9737e63c69e94ac5777caa0bc77c77d5206467f3"))
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/google/googletest")
|
||||||
|
(commit commit)))
|
||||||
|
(file-name (git-file-name "googletest-for-znc" commit))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0ya36n8d62zbxk6p22yffgx43mqhx2fz41gqqwbpdshjryf3wvxj")))))
|
||||||
("pkg-config" ,pkg-config)
|
("pkg-config" ,pkg-config)
|
||||||
("perl" ,perl)
|
("perl" ,perl)
|
||||||
("python" ,python)))
|
("python" ,python)))
|
||||||
|
|
Loading…
Reference in New Issue