~ruther/guix-local

b35ffb35c0095a5f7fe061226b31243e88a5cc19 — Nicolas Graves 5 months ago c2d7402
gnu: bambam: Switch to pyproject.

* gnu/packages/games.scm (bambam):
[source, arguments, description]: Improve style.
[build-system]: Switch to pyproject-build-system.
[native-inputs]: Add python-setuptools.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
1 files changed, 29 insertions(+), 28 deletions(-)

M gnu/packages/games.scm
M gnu/packages/games.scm => gnu/packages/games.scm +29 -28
@@ 6992,37 6992,38 @@ programmers may also add their own favorite language.")
    (name "bambam")
    (version "1.2.1")
    (source
      (origin
        (method git-fetch)
        (uri (git-reference
              (url "https://github.com/porridge/bambam")
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
         (base32 "148cqahklqd4m88j5z1xf3fh4vha41f31wian11hkas106mbsya9"))))
    (build-system python-build-system)
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/porridge/bambam")
             (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "148cqahklqd4m88j5z1xf3fh4vha41f31wian11hkas106mbsya9"))))
    (build-system pyproject-build-system)
    (arguments
     `(#:tests? #f                      ; no tests
       #:phases
       (modify-phases %standard-phases
         (delete 'build)                ; nothing to build
         (replace 'install
           (lambda* (#:key outputs #:allow-other-keys)
             (let* ((out   (assoc-ref outputs "out"))
                    (bin   (string-append out "/bin"))
                    (share (string-append out "/share")))
               (mkdir-p bin)
               (copy-file "bambam.py" (string-append bin "/bambam"))
               (install-file "bambam.6" (string-append share "/man/man6"))
               (copy-recursively "data" (string-append share "/bambam/data")))
             #t)))))
    (inputs
     (list python-pygame))
     (list
      #:tests? #f ;no tests
      #:phases
      #~(modify-phases %standard-phases
          (delete 'build) ;nothing to build
          (replace 'install
            (lambda _
              (let* ((bin (string-append #$output "/bin"))
                     (share (string-append #$output "/share")))
                (mkdir-p bin)
                (copy-file "bambam.py" (string-append bin "/bambam"))
                (install-file "bambam.6" (string-append share "/man/man6"))
                (copy-recursively "data"
                                  (string-append share "/bambam/data"))))))))
    (native-inputs (list python-setuptools))
    (inputs (list python-pygame))
    (home-page "https://github.com/porridge/bambam")
    (synopsis "Keyboard mashing and doodling game for babies")
    (description "Bambam is a simple baby keyboard (and gamepad) masher
application that locks the keyboard and mouse and instead displays bright
colors, pictures, and sounds.")
    (description
     "Bambam is a simple baby keyboard (and gamepad) masher application that
locks the keyboard and mouse and instead displays bright colors, pictures, and
sounds.")
    (license license:gpl3+)))

(define-public moonlight-qt