gnu: hackneyed-x11-cursors: Update to 0.8.2.

* gnu/packages/xorg.scm (hackneyed-x11-cursors): Update to 0.8.2.
This commit is contained in:
Maxim Cournoyer 2021-11-05 15:50:41 -04:00
parent f82cb5b57d
commit 2541a0527e
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -2274,64 +2274,58 @@ (define-public xcursor-themes
X server: @code{handhelds}, @code{redglass} and @code{whiteglass}.") X server: @code{handhelds}, @code{redglass} and @code{whiteglass}.")
(license license:x11))) (license license:x11)))
(define-public hackneyed-x11-cursors (define-public hackneyed-x11-cursors
;; The current release 0.8 suffers from non-deterministic build problems. (package
(let ((revision "1") (name "hackneyed-x11-cursors")
(commit "9423cef2e2e5ff6b1d65d61f7108c97bc7f5fdfb")) (version "0.8.2")
(package (source
(name "hackneyed-x11-cursors") (origin
(version (git-version "0.8.1" revision commit)) (method git-fetch)
(source (uri (git-reference
(origin (url "https://gitlab.com/Enthymeme/hackneyed-x11-cursors.git")
(method git-fetch) (commit version)))
(uri (git-reference (file-name (git-file-name name version))
(url "https://gitlab.com/Enthymeme/hackneyed-x11-cursors.git") (sha256
(commit commit))) (base32
(file-name (git-file-name name version)) "1mjwbny4rid9dzz6xfb8l5rkwki41sfhdp970cf3w2pi9kyg1njs"))))
(sha256 (build-system gnu-build-system)
(base32 (arguments
"0f637i76sdwz3nm1g1iynamq6j0i6k3c70fpl0fmd0dlynm8ga96")))) `(#:tests? #f ;no test suite
(build-system gnu-build-system) #:make-flags (list (string-append "PREFIX=" %output))
(arguments #:phases
`(#:tests? #f ;no test suite (modify-phases %standard-phases
#:make-flags (list (string-append "PREFIX=" %output)) (delete 'configure)
#:phases (add-before 'build 'set-inkscape-environment-variable
(modify-phases %standard-phases (lambda* (#:key inputs #:allow-other-keys)
(delete 'configure) (let ((inkscape (search-input-file inputs "/bin/inkscape")))
(add-before 'build 'set-inkscape-environment-variable (setenv "INKSCAPE" inkscape))))
(lambda* (#:key inputs #:allow-other-keys) (add-before 'build 'placate-inkscape-warnings
(let ((inkscape (search-input-file inputs "/bin/inkscape"))) (lambda _
(setenv "INKSCAPE" inkscape) (setenv "HOME" (getcwd))))
#t))) (add-after 'build 'generate-black-cursors
(add-before 'build 'placate-inkscape-warnings (lambda* (#:key make-flags parallel-build #:allow-other-keys)
(lambda _ (let ((build (assoc-ref %standard-phases 'build))
(setenv "HOME" (getcwd)) (make-flags/extended
#t)) `(,@make-flags
(add-after 'build 'generate-black-cursors "THEME_NAME=Hackneyed-Dark"
(lambda* (#:key make-flags parallel-build #:allow-other-keys) "COMMON_SOURCE=theme/common-dark.svg"
(let ((build (assoc-ref %standard-phases 'build)) "RSVG_SOURCE=theme/right-handed-dark.svg"
(make-flags/extended "LSVG_SOURCE=theme/left-handed-dark.svg")))
`(,@make-flags (build #:make-flags make-flags/extended
"THEME_NAME=Hackneyed-Dark" #:parallel-build parallel-build))))
"COMMON_SOURCE=theme/common-dark.svg" (add-after 'install 'install-black-cursors
"RSVG_SOURCE=theme/right-handed-dark.svg" (lambda* (#:key make-flags #:allow-other-keys)
"LSVG_SOURCE=theme/left-handed-dark.svg"))) (apply invoke `("make" "install" ,@make-flags
(build #:make-flags make-flags/extended "THEME_NAME=Hackneyed-Dark")))))))
#:parallel-build parallel-build)))) (native-inputs `(("imagemagick" ,imagemagick)
(add-after 'install 'install-black-cursors ("inkscape" ,inkscape)
(lambda* (#:key make-flags #:allow-other-keys) ("xcursorgen" ,xcursorgen)))
(apply invoke `("make" "install" ,@make-flags (home-page "https://gitlab.com/Enthymeme/hackneyed-x11-cursors")
"THEME_NAME=Hackneyed-Dark"))))))) (synopsis "Classic cursor theme for X11")
(native-inputs `(("imagemagick" ,imagemagick) (description "Hackneyed is a scalable cursor theme mildly resembling old
("inkscape" ,inkscape)
("xcursorgen" ,xcursorgen)))
(home-page "https://gitlab.com/Enthymeme/hackneyed-x11-cursors")
(synopsis "Classic cursor theme for X11")
(description "Hackneyed is a scalable cursor theme mildly resembling old
Windows 3.x cursors. The cursors are available in white and black colors. A Windows 3.x cursors. The cursors are available in white and black colors. A
left-handed version of the cursors is also included.") left-handed version of the cursors is also included.")
(license license:x11)))) (license license:x11)))
(define-public xcursorgen (define-public xcursorgen
(package (package