summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-02-13 09:26:11 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-02-13 09:49:48 +0000
commita10f9ae49e499e8ab707bd7126e4fb6065e56180 (patch)
tree1b7050f79389ac8d16a501154246924cca6236b2
parenta14644779d88c5851d15a5b69a9d9f8bcb018e0a (diff)
gnu: oneko: Refresh package style.
* gnu/packages/toys.scm (oneko): Use G-expressions, simplify, adjust fields order and fix indentation. Change-Id: I1af493522add7a0a22f28c7df04dc7b763b99def
-rw-r--r--gnu/packages/toys.scm59
1 files changed, 31 insertions, 28 deletions
diff --git a/gnu/packages/toys.scm b/gnu/packages/toys.scm
index f1afc2fe5ad..b304e3606be 100644
--- a/gnu/packages/toys.scm
+++ b/gnu/packages/toys.scm
@@ -373,43 +373,46 @@ of the Nyan Cat / Poptart Cat animation.")
373 "bitmasks/bsd" "bitmasks/sakura" "bitmasks/tomoyo" 373 "bitmasks/bsd" "bitmasks/sakura" "bitmasks/tomoyo"
374 (find-files "cursors" "(bsd|card|petal).*\\.xbm"))))))) 374 (find-files "cursors" "(bsd|card|petal).*\\.xbm")))))))
375 (build-system gnu-build-system) 375 (build-system gnu-build-system)
376 (arguments
377 (list
378 #:tests? #f ; no tests
379 #:phases
380 #~(modify-phases %standard-phases
381 (replace 'configure
382 (lambda _
383 (invoke "xmkmf")
384 ;; Fix incorrectly generated compiler flags.
385 (substitute* "Makefile"
386 (("(CDEBUGFLAGS = ).*" _ front)
387 (string-append front "-O2\n")))))
388 (replace 'install
389 (lambda _
390 (let* ((bin (format #f "~a/bin" #$output))
391 (doc (format #f "~a/share/doc/~a-~a"
392 #$output #$name #$version))
393 (man (format #f "~a/share/man" #$output))
394 (man6 (format #f "~a/man6" man))
395 (man6-ja (format #f "~a/ja/man6" man)))
396 (install-file "oneko" bin)
397 (mkdir-p man6)
398 (mkdir-p man6-ja)
399 (copy-file "oneko.man" (string-append man6 "/oneko.6"))
400 (copy-file "oneko.man.jp" (string-append man6-ja "/oneko.6"))
401 (for-each (lambda (file) (install-file file doc))
402 (find-files "." "README.*"))))))))
376 (native-inputs 403 (native-inputs
377 (list imake)) 404 (list imake))
378 (inputs 405 (inputs
379 (list libx11 libxext)) 406 (list libx11 libxext))
380 (arguments
381 `(#:tests? #f ; no tests
382 #:phases
383 (modify-phases %standard-phases
384 (replace 'configure
385 (lambda _
386 (invoke "xmkmf")
387 ;; Fix incorrectly generated compiler flags.
388 (substitute* "Makefile"
389 (("(CDEBUGFLAGS = ).*" _ front) (string-append front "-O2\n")))))
390 (replace 'install
391 (lambda* (#:key outputs make-flags #:allow-other-keys)
392 (let* ((out (assoc-ref outputs "out"))
393 (bin (string-append out "/bin"))
394 (doc (string-append out "/share/doc/" ,name "-" ,version))
395 (man (string-append out "/share/man"))
396 (man6 (string-append man "/man6"))
397 (man6-ja (string-append man "/ja/man6")))
398 (install-file "oneko" bin)
399 (mkdir-p man6)
400 (mkdir-p man6-ja)
401 (copy-file "oneko.man" (string-append man6 "/oneko.6"))
402 (copy-file "oneko.man.jp" (string-append man6-ja "/oneko.6"))
403 (for-each (lambda (file) (install-file file doc))
404 (find-files "." "README.*"))))))))
405 (home-page "http://www.daidouji.com/oneko/") 407 (home-page "http://www.daidouji.com/oneko/")
406 (synopsis "Cute cat chasing your mouse pointer") 408 (synopsis "Cute cat chasing your mouse pointer")
407 (description 409 (description
408 "Oneko displays an animated cat or dog that chases the mouse pointer---now 410 "Oneko displays an animated cat or dog that chases the mouse
409an actual mouse or a bone---around the screen while you work. 411pointer---now an actual mouse or a bone---around the screen while you work.
410 412
411It was written for the X Window system and does not work well on Wayland.") 413It was written for the X Window system and does not work well on Wayland.")
412 (license license:public-domain))) ; see https://directory.fsf.org/wiki/Oneko 414 ;; See <https://directory.fsf.org/wiki/Oneko>.
415 (license license:public-domain)))
413 416
414(define-public python-terminaltexteffects 417(define-public python-terminaltexteffects
415 (package 418 (package