From: Timotej Lazar <timotej.lazar@araneo.si>
To: 49235@debbugs.gnu.org
Cc: Timotej Lazar <timotej.lazar@araneo.si>
Subject: [bug#49235] [PATCH] gnu: Add oneko.
Date: Sat, 26 Jun 2021 21:20:49 +0200 [thread overview]
Message-ID: <20210626192049.20405-1-timotej.lazar@araneo.si> (raw)
* gnu/packages/toys.scm (oneko): New variable.
---
This adds the oneko version of the original xneko toy. The license
statement seems to be at the end of README (not sure as I can’t read
Japanese), but Debian and FSF agree it’s in the public domain.
`guix lint` complains about a newer version, but the only differences
are a somewhat less broken build system and an additional bitmap of the
BSD daemon, which is trademarked. I opted for this version instead of
basically reverting all changes from the newer one.
Thanks!
Timotej
gnu/packages/toys.scm | 50 ++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 49 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/toys.scm b/gnu/packages/toys.scm
index bbd5753841..d396062fe1 100644
--- a/gnu/packages/toys.scm
+++ b/gnu/packages/toys.scm
@@ -1,7 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2017, 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2019 Jesse Gibbons <jgibbons2357+guix@gmail.com>
-;;; Copyright © 2019, 2020 Timotej Lazar <timotej.lazar@araneo.si>
+;;; Copyright © 2019, 2020, 2021 Timotej Lazar <timotej.lazar@araneo.si>
;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2021 Leo Famulari <leo@famulari.name>
;;;
@@ -36,6 +36,54 @@
#:use-module (guix packages)
#:use-module (guix utils))
+(define-public oneko
+ (package
+ (name "oneko")
+ ;; Identical to version 1.2.sakura.5b but without the trademarked BSD daemon.
+ (version "1.1b.sakura.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "http://www.daidouji.com/oneko/distfiles/oneko-" version ".tar.gz"))
+ (sha256
+ (base32 "0dh5xr579clq0871pk6m7xfmsa24jk3idgx61k7skl37i40klaa3"))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("imake" ,imake)))
+ (inputs
+ `(("libx11" ,libx11)
+ ("libxext" ,libxext)))
+ (arguments
+ `(#:tests? #f ; no tests
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'configure
+ (lambda _
+ (substitute* "Imakefile"
+ ((" = /bin/") " = ") ; don’t use absolute paths for cp, rm and strip
+ (("\\$\\(DESTDIR\\)/man") "$(DESTDIR)/share/man"))
+ (invoke "xmkmf")
+ (substitute* "Makefile"
+ ;; Fix incorrectly generated compiler flags.
+ (("(CDEBUGFLAGS = ).*" _ front) (string-append front "-O2\n")))
+ #t))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (doc (string-append out "/share/doc/" ,name)))
+ (mkdir-p (string-append out "/bin"))
+ (mkdir-p (string-append out "/share/man/man1"))
+ (invoke "make" (string-append "DESTDIR=" out) "install")
+ (for-each (lambda (file) (install-file file doc))
+ (find-files "." "README.*")))
+ #t)))))
+ (home-page "http://www.daidouji.com/oneko/")
+ (synopsis "Cute cat chasing your mouse pointer")
+ (description "Displays a cat or another animated character that chases the
+mouse pointer around the screen while you work.")
+ (license license:public-domain))) ; see https://directory.fsf.org/wiki/Oneko
+
(define-public sl
(package
(name "sl")
--
2.32.0
next reply other threads:[~2021-06-26 19:22 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-26 19:20 Timotej Lazar [this message]
2021-06-27 12:45 ` [bug#49235] [PATCH] gnu: Add oneko Leo Prikler
2021-06-27 13:40 ` Timotej Lazar
2021-06-27 13:55 ` Leo Prikler
2021-06-27 17:51 ` Timotej Lazar
2021-06-27 18:24 ` Leo Prikler
2021-06-27 19:06 ` Timotej Lazar
2021-06-27 19:24 ` Leo Prikler
2021-06-27 19:45 ` Timotej Lazar
2021-06-27 19:50 ` Leo Prikler
2021-06-27 17:49 ` [bug#49235] [PATCH v2] " Timotej Lazar
2021-06-28 17:02 ` [bug#49235] [PATCH v3] " Timotej Lazar
2021-06-28 19:05 ` bug#49235: " Leo Prikler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210626192049.20405-1-timotej.lazar@araneo.si \
--to=timotej.lazar@araneo.si \
--cc=49235@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.