summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2020-06-22 00:40:10 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2020-06-22 00:40:10 +0200
commit37ab7837e768b16a34b8135177d252aa838fdc0f (patch)
tree032dcba72598795efef71e78f6e249ba1bf5e192
parentgnu: emacs-relint: Update to 1.18. (diff)
downloadguix-37ab7837e768b16a34b8135177d252aa838fdc0f.tar.gz
guix-37ab7837e768b16a34b8135177d252aa838fdc0f.tar.bz2
guix-37ab7837e768b16a34b8135177d252aa838fdc0f.tar.xz
gnu: xmoto: Update to 0.6.1.
* gnu/packages/games.scm (xmoto): Update to 0.6.1. [arguments]: Remove phase installing man pages, now properly handled by the installation script.
-rw-r--r--gnu/packages/games.scm186
1 files changed, 87 insertions, 99 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 25ee733..27cbf33 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -10532,108 +10532,96 @@ This package is part of the KDE games module.")
10532 (license (list license:gpl2+ license:fdl1.2+)))) 10532 (license (list license:gpl2+ license:fdl1.2+))))
10533 10533
10534(define-public xmoto 10534(define-public xmoto
10535 ;; The commit below includes a fix to a build error. 10535 (package
10536 (let ((commit "f7ca787d02bd876c6eb989a28b180a05220621ee") 10536 (name "xmoto")
10537 (revision "0")) 10537 (version "0.6.1")
10538 (package 10538 (source
10539 (name "xmoto") 10539 (origin
10540 (version (git-version "0.6.0" revision commit)) 10540 (method git-fetch)
10541 (source 10541 (uri (git-reference
10542 (origin 10542 (url "https://github.com/xmoto/xmoto.git")
10543 (method git-fetch) 10543 (commit version)))
10544 (uri (git-reference 10544 (file-name (git-file-name name version))
10545 (url "https://github.com/xmoto/xmoto.git") 10545 (sha256
10546 (commit commit))) 10546 (base32 "00f5ha79lfa2iiaz66wl0hl5dapa1l15qdr7m7knzi0ll7j6z66n"))
10547 (file-name (git-file-name name version)) 10547 (modules '((guix build utils)
10548 (sha256 10548 (ice-9 ftw)
10549 (base32 "1kiwqni58vjdqfb289d1dqcb758hdl2k970dawxq5vdaqrbnsxv4")) 10549 (srfi srfi-1)))
10550 (modules '((guix build utils) 10550 ;; XXX: Remove some bundled libraries. Guix provides Chipmunk, but
10551 (ice-9 ftw) 10551 ;; it appears to be incompatible with the (older) one bundled.
10552 (srfi srfi-1))) 10552 (snippet
10553 ;; XXX: Remove some bundled libraries. Guix provides Chipmunk, but 10553 `(begin
10554 ;; it appears to be incompatible with the (older) one bundled. 10554 (let ((keep '("chipmunk" "glad" "md5sum")))
10555 (snippet 10555 (with-directory-excursion "vendor"
10556 `(begin 10556 (for-each delete-file-recursively
10557 (let ((keep '("chipmunk" "glad" "md5sum"))) 10557 (lset-difference string=?
10558 (with-directory-excursion "vendor" 10558 (scandir ".")
10559 (for-each delete-file-recursively 10559 (cons* "." ".." keep))))
10560 (lset-difference string=? 10560 (substitute* "src/CMakeLists.txt"
10561 (scandir ".") 10561 (("add_subdirectory\\(.*?/vendor/(.+?)\".*" line library)
10562 (cons* "." ".." keep)))) 10562 (if (member library keep) line ""))))
10563 (substitute* "src/CMakeLists.txt" 10563 #t))))
10564 (("add_subdirectory\\(.*?/vendor/(.+?)\".*" line library) 10564 (build-system cmake-build-system)
10565 (if (member library keep) line "")))) 10565 (arguments
10566 #t)))) 10566 `(#:tests? #f ;no test
10567 (build-system cmake-build-system) 10567 #:phases
10568 (arguments 10568 (modify-phases %standard-phases
10569 `(#:tests? #f ;no test 10569 (add-after 'unpack 'fix-hard-coded-directory
10570 #:phases 10570 (lambda* (#:key outputs #:allow-other-keys)
10571 (modify-phases %standard-phases 10571 (substitute* "src/common/VFileIO.cpp"
10572 ;; Install phase ignores this man page. Install it early, 10572 (("/usr/share")
10573 ;; because the process moves to another directory shortly 10573 (string-append (assoc-ref outputs "out") "/share")))
10574 ;; after. 10574 #t))
10575 (add-after 'unpack 'install-man-page 10575 (add-before 'build 'set-SDL
10576 (lambda* (#:key outputs #:allow-other-keys) 10576 ;; Set correct environment for SDL.
10577 (install-file "xmoto.6" 10577 (lambda* (#:key inputs #:allow-other-keys)
10578 (string-append (assoc-ref outputs "out") 10578 (setenv "CPATH"
10579 "/share/man/man6")) 10579 (string-append
10580 #t)) 10580 (assoc-ref inputs "sdl") "/include/SDL:"
10581 (add-after 'unpack 'fix-hard-coded-directory 10581 (or (getenv "CPATH") "")))
10582 (lambda* (#:key outputs #:allow-other-keys) 10582 #t))
10583 (substitute* "src/common/VFileIO.cpp" 10583 (add-after 'install 'unbundle-fonts
10584 (("/usr/share") 10584 ;; Unbundle DejaVuSans TTF files.
10585 (string-append (assoc-ref outputs "out") "/share"))) 10585 (lambda* (#:key outputs inputs #:allow-other-keys)
10586 #t)) 10586 (let ((font-dir (string-append (assoc-ref inputs "font-dejavu")
10587 (add-before 'build 'set-SDL 10587 "/share/fonts/truetype/"))
10588 ;; Set correct environment for SDL. 10588 (target-dir (string-append (assoc-ref outputs "out")
10589 (lambda* (#:key inputs #:allow-other-keys) 10589 "/share/xmoto/Textures/Fonts/")))
10590 (setenv "CPATH" 10590 (for-each (lambda (f)
10591 (string-append 10591 (let ((font (string-append font-dir f))
10592 (assoc-ref inputs "sdl") "/include/SDL:" 10592 (target (string-append target-dir f)))
10593 (or (getenv "CPATH") ""))) 10593 (delete-file target)
10594 #t)) 10594 (symlink font target)))
10595 (add-after 'install 'unbundle-fonts 10595 '("DejaVuSans.ttf" "DejaVuSansMono.ttf"))
10596 ;; Unbundle DejaVuSans TTF files. 10596 #t))))))
10597 (lambda* (#:key outputs inputs #:allow-other-keys) 10597 (native-inputs
10598 (let ((font-dir (string-append (assoc-ref inputs "font-dejavu") 10598 `(("gettext" ,gettext-minimal)
10599 "/share/fonts/truetype/")) 10599 ("pkg-config" ,pkg-config)))
10600 (target-dir (string-append (assoc-ref outputs "out") 10600 (inputs
10601 "/share/xmoto/Textures/Fonts/"))) 10601 `(("bzip2" ,bzip2)
10602 (for-each (lambda (f) 10602 ("curl" ,curl)
10603 (let ((font (string-append font-dir f)) 10603 ("font-dejavu" ,font-dejavu)
10604 (target (string-append target-dir f))) 10604 ("glu" ,glu)
10605 (delete-file target) 10605 ("libjpeg" ,libjpeg-turbo)
10606 (symlink font target))) 10606 ("libpng" ,libpng)
10607 '("DejaVuSans.ttf" "DejaVuSansMono.ttf")) 10607 ("libxdg-basedir" ,libxdg-basedir)
10608 #t)))))) 10608 ("libxml2" ,libxml2)
10609 (native-inputs 10609 ("lua" ,lua-5.1)
10610 `(("gettext" ,gettext-minimal) 10610 ("ode" ,ode)
10611 ("pkg-config" ,pkg-config))) 10611 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net sdl-ttf)))
10612 (inputs 10612 ("sqlite" ,sqlite)
10613 `(("bzip2" ,bzip2) 10613 ("zlib" ,zlib)))
10614 ("curl" ,curl) 10614 (home-page "https://xmoto.tuxfamily.org/")
10615 ("font-dejavu" ,font-dejavu) 10615 (synopsis "2D motocross platform game")
10616 ("glu" ,glu) 10616 (description
10617 ("libjpeg" ,libjpeg-turbo) 10617 "X-Moto is a challenging 2D motocross platform game, where
10618 ("libpng" ,libpng)
10619 ("libxdg-basedir" ,libxdg-basedir)
10620 ("libxml2" ,libxml2)
10621 ("lua" ,lua-5.1)
10622 ("ode" ,ode)
10623 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net sdl-ttf)))
10624 ("sqlite" ,sqlite)
10625 ("zlib" ,zlib)))
10626 (home-page "https://xmoto.tuxfamily.org/")
10627 (synopsis "2D motocross platform game")
10628 (description
10629 "X-Moto is a challenging 2D motocross platform game, where
10630physics play an all important role in the gameplay. You need to 10618physics play an all important role in the gameplay. You need to
10631control your bike to its limit, if you want to have a chance finishing 10619control your bike to its limit, if you want to have a chance finishing
10632the more difficult challenges.") 10620the more difficult challenges.")
10633 (license (list license:gpl2+ ;whole project 10621 (license (list license:gpl2+ ;whole project
10634 license:bsd-3 ;vendor/md5sum 10622 license:bsd-3 ;vendor/md5sum
10635 license:lgpl2.1+ 10623 license:lgpl2.1+
10636 license:expat))))) 10624 license:expat))))
10637 10625
10638(define-public eboard 10626(define-public eboard
10639 (package 10627 (package