From dc1182751cfd62d2b91f80fed322fd1e016e4b72 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 26 Apr 2020 22:55:29 +0300 Subject: [PATCH] gnu: vdirsyncer: Fix building man page. * gnu/packages/dav.scm (vdirsyncer)[arguments]: Add custom phase to patch function retrieving the version string. --- gnu/packages/dav.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnu/packages/dav.scm b/gnu/packages/dav.scm index 5362d3505f..1b837dfe40 100644 --- a/gnu/packages/dav.scm +++ b/gnu/packages/dav.scm @@ -80,6 +80,11 @@ (define-public vdirsyncer (if tests? (invoke "make" "test") #t))) + (add-after 'unpack 'patch-version-call + (lambda _ + (substitute* "docs/conf.py" + (("^release.*") (string-append "release = '" ,version "'\n"))) + #t)) (add-after 'install 'manpage (lambda* (#:key inputs outputs #:allow-other-keys) (invoke "make" "--directory=docs/" "man")