diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2025-05-27 10:39:14 +0900 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2025-05-27 10:41:29 +0900 |
commit | 2e699377e9450e39e4744e96660027924e52bd13 (patch) | |
tree | f62266cd6a777cfd50ab7defd3bc718e83febbe4 | |
parent | 6c1cc9e36038c9a154501632a825acca6dfaf17a (diff) |
gnu: inkscape: Fix copyright year displayed in about dialog.
* gnu/packages/inkscape.scm (%inkscape-release-year): New variable.
(inkscape) [#:phases] <patch-inkscape-build-year>: New phase.
Fixes: #45
Change-Id: I4fced673252f39b1d45ab4345055fe8963e29e24
-rw-r--r-- | gnu/packages/inkscape.scm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gnu/packages/inkscape.scm b/gnu/packages/inkscape.scm index af2452a217..109e7c9ca4 100644 --- a/gnu/packages/inkscape.scm +++ b/gnu/packages/inkscape.scm @@ -337,6 +337,9 @@ as the native format.") (define-deprecated/public-alias inkscape/stable inkscape/pinned) +;;; The Inkscape release year used in the about dialog. Please keep it sync +;;; when updating the package! +(define %inkscape-release-year 2023) (define-public inkscape (package (inherit inkscape/pinned) @@ -359,6 +362,12 @@ as the native format.") #~(delete "-DWITH_IMAGE_MAGICK=OFF" #$flags)) ((#:phases phases) #~(modify-phases #$phases + (add-after 'unpack 'patch-inkscape-build-year + (lambda _ + (substitute* "CMakeScripts/inkscape-version.cmake" + (("string\\(TIMESTAMP INKSCAPE_BUILD_YEAR.*") + (format #f "set(INKSCAPE_BUILD_YEAR ~a)~%" + #$%inkscape-release-year))))) #$@(if (target-x86-32?) #~() ;XXX: there are remaining failures on i686 #~((replace 'check |