gnu: unittest-cpp: Fix "Version" setting in ".pc" file.

* gnu/packages/check.scm (unittest-cpp)[arguments]<#:configure-flags>: Add
Provide a "Version" value in ".pc" file for pkg-config checks.

Change-Id: I934ef3d83d50876be8ab157ba52d8812ed33ba2e
Reviewed-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
Nicolas Goaziou 2024-03-27 10:23:05 +01:00 committed by Ludovic Courtès
parent 31584128b7
commit 9a2dca2e97
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -3614,7 +3614,11 @@ (define-public unittest-cpp
(sha256
(base32 "0sxb3835nly1jxn071f59fwbdzmqi74j040r81fanxyw3s1azw0i"))))
(arguments
`(#:tests? #f)) ; It's run after build automatically.
(list
#:tests? #f ; It's run after build automatically.
;; Fix 'Version:' setting in .pc file. See:
;; <https://github.com/unittest-cpp/unittest-cpp/pull/188>
#:configure-flags #~(list (string-append "-DPACKAGE_VERSION=" #$version))))
(build-system cmake-build-system)
(home-page "https://github.com/unittest-cpp/unittest-cpp")
(synopsis "Lightweight unit testing framework for C++")