gnu: googletest: Update to 1.8.0.
* gnu/packages/check.scm (googletest): Update to 1.8.0. [build-system]: Use cmake-build-system. [arguments]: Remove field. [native-inputs]: Remove autoconf, automake, libtool.
This commit is contained in:
parent
488a373451
commit
84e36a562b
|
@ -201,7 +201,7 @@ normally do not detect. The goal is to detect only real errors in the code
|
||||||
(define-public googletest
|
(define-public googletest
|
||||||
(package
|
(package
|
||||||
(name "googletest")
|
(name "googletest")
|
||||||
(version "1.7.0")
|
(version "1.8.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -210,46 +210,10 @@ normally do not detect. The goal is to detect only real errors in the code
|
||||||
(file-name (string-append name "-" version ".tar.gz"))
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1k0nf1l9cb3prdmsvaajl5i31bx86c1mw0d5jgzykz7rzm36afpp"))))
|
"1n5p1m2m3fjrjdj752lf92f9wq3pl5cbsfrb49jqbg52ghkz99jq"))))
|
||||||
(build-system gnu-build-system)
|
(build-system cmake-build-system)
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-2" ,python-2)
|
`(("python-2" ,python-2)))
|
||||||
("autoconf" ,autoconf)
|
|
||||||
("automake" ,automake)
|
|
||||||
("libtool" ,libtool)))
|
|
||||||
(arguments
|
|
||||||
`(#:phases
|
|
||||||
(modify-phases %standard-phases
|
|
||||||
(add-before 'configure 'autoconf
|
|
||||||
(lambda _
|
|
||||||
(zero? (system* "autoreconf" "-vfi"))))
|
|
||||||
(add-before 'autoconf 'generate-headers
|
|
||||||
(lambda _
|
|
||||||
(begin
|
|
||||||
(delete-file "include/gtest/gtest-param-test.h")
|
|
||||||
(system* "python2" "scripts/pump.py"
|
|
||||||
"include/gtest/gtest-param-test.h.pump")
|
|
||||||
(delete-file "include/gtest/internal/gtest-tuple.h")
|
|
||||||
(system* "python2" "scripts/pump.py"
|
|
||||||
"include/gtest//internal/gtest-tuple.h.pump")
|
|
||||||
(delete-file
|
|
||||||
"include/gtest/internal/gtest-param-util-generated.h")
|
|
||||||
(system*
|
|
||||||
"python2" "scripts/pump.py"
|
|
||||||
"include/gtest/internal/gtest-param-util-generated.h.pump")
|
|
||||||
(delete-file "include/gtest/internal/gtest-type-util.h")
|
|
||||||
(system* "python2" "scripts/pump.py"
|
|
||||||
"include/gtest/internal/gtest-type-util.h.pump"))))
|
|
||||||
(replace 'install
|
|
||||||
(lambda _
|
|
||||||
(let ((out (assoc-ref %outputs "out")))
|
|
||||||
(begin
|
|
||||||
(install-file "lib/.libs/libgtest_main.a"
|
|
||||||
(string-append out "/lib"))
|
|
||||||
(install-file "lib/.libs/libgtest.a"
|
|
||||||
(string-append out "/lib"))
|
|
||||||
(copy-recursively "include"
|
|
||||||
(string-append out "/include")))))))))
|
|
||||||
(home-page "https://github.com/google/googletest/")
|
(home-page "https://github.com/google/googletest/")
|
||||||
(synopsis "Test discovery and XUnit test framework")
|
(synopsis "Test discovery and XUnit test framework")
|
||||||
(description "Google Test features an XUnit test framework, automated test
|
(description "Google Test features an XUnit test framework, automated test
|
||||||
|
|
Loading…
Reference in New Issue