gnu: proj: Fix version number in CMake build scripts.

* gnu/packages/geo.scm (proj)[arguments]: Add a 'fix-version' build phase.

Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
Nikolay Korotkiy 2021-12-27 18:02:04 +03:00 committed by Leo Famulari
parent 4db16b9cbc
commit d42718f8ea
No known key found for this signature in database
GPG key ID: 2646FA30BACA7F08

View file

@ -517,7 +517,13 @@ (define-public proj
"050apzdn0isxpsblys1shrl9ccli5vd32kgswlgx1imrbwpg915k"))))
(build-system cmake-build-system)
(arguments
`(#:configure-flags '("-DUSE_EXTERNAL_GTEST=ON")))
`(#:configure-flags '("-DUSE_EXTERNAL_GTEST=ON")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-version
(lambda _
(substitute* "CMakeLists.txt"
(("MAJOR 7 MINOR 2 PATCH 0") "MAJOR 7 MINOR 2 PATCH 1")))))))
(inputs
(list curl libjpeg-turbo libtiff sqlite))
(native-inputs