From b256f6c8cc4e4ff53bcdf5aa79a1036310b939e7 Mon Sep 17 00:00:00 2001 From: Andreas Enge Date: Wed, 29 Oct 2025 10:58:38 +0100 Subject: [PATCH] gnu: Remove ufoai. * gnu/packages/games.scm (ufoai): Delete variable. Change-Id: I7b431926677813bd6320036ddc511fc5232d749e --- gnu/packages/games.scm | 101 ----------------------------------------- 1 file changed, 101 deletions(-) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 08e920ef3da4bdafa268147f2e557562c6e1fbd2..c39a02480cd5a0718b124e073131e66678882bcf 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -3751,107 +3751,6 @@ maps for the UFO: Alien Invasion strategy game.") (license (list license:gpl2+ license:gpl2 license:cc-by3.0 license:cc-by-sa3.0 license:public-domain)))) -(define-public ufoai - (package - (name "ufoai") - (version %ufoai-version) - (home-page "https://ufoai.org/") - (source ufoai-source) - (build-system gnu-build-system) - (arguments - `(#:configure-flags - (list (string-append "--prefix=" (assoc-ref %outputs "out")) - (string-append "--datadir=" (assoc-ref %outputs "out") - "/share/games/ufo") - "CC=gcc" "CXX=g++" - "--enable-release" - "--enable-game" - "--disable-ufo2map" - "--disable-dependency-tracking" - - ;; Disable hard links to prevent huge NARs. - "--disable-hardlinkedgame" - "--disable-hardlinkedcgame") - #:phases (modify-phases %standard-phases - (add-after 'unpack 'symlink-data-files - (lambda* (#:key inputs #:allow-other-keys) - (let ((data (assoc-ref inputs "ufoai-data"))) - ;; Symlink the data files to where the build system - ;; expects to find them. Ultimately these files are - ;; copied to $out/share/games/ufoai/base, losing the - ;; symlinks; we could fix that after install, but it - ;; does not make a big difference in practice due to - ;; deduplication. - (with-directory-excursion "base" - (for-each (lambda (file) - (symlink file (basename file))) - (find-files data "\\.pk3$"))) - #t))) - (add-before 'configure 'create-language-files - (lambda _ - (invoke "make" "lang"))) - (replace 'configure - (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys) - (apply invoke "./configure" configure-flags))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (if tests? - (invoke "./testall") - (format #t "test suite not run~%")) - #t)) - (add-after 'install 'install-man-pages - (lambda* (#:key outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (man6 (string-append out "/share/man/man6"))) - (install-file "debian/ufo.6" man6) - (install-file "debian/ufoded.6" man6) - #t)))) - - ;; TODO: Some map tests occasionally fail because of randomness issues, - ;; e.g. not enough generated aliens. The test runner also fails early - ;; in the build container with 'failed to shutdown server'? - #:tests? #f)) - (native-inputs - `(("gettext" ,gettext-minimal) - ("pkg-config" ,pkg-config) - ("python" ,python-2) - ("ufo2map" ,ufo2map) - ("ufoai-data" ,ufoai-data))) - (inputs - `(("curl" ,curl) - ("libjpeg" ,libjpeg-turbo) - ("libogg" ,libogg) - ("libpng" ,libpng) - ("libtheora" ,libtheora) - ("libvorbis" ,libvorbis) - ("libxml2" ,libxml2) - ("lua" ,lua-5.1) - ("mesa" ,mesa) - ("minixml" ,minixml) - ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf))) - ("zlib" ,zlib))) - (synopsis "Turn-based tactical strategy game") - (description - "UFO: Alien Invasion is a tactical strategy game set in the year 2084. -You control a secret organisation charged with defending Earth from a brutal -alien enemy. Build up your bases, prepare your team, and dive head-first into -the fast and flowing turn-based combat. - -Over the long term you will need to conduct research into the alien threat to -figure out their mysterious goals and use their powerful weapons for your own -ends. You will produce unique items and use them in combat against your -enemies. - -You can also use them against your friends with the multiplayer functionality. - -Warning: This is a pre-release version of UFO: AI! Some things may not work -properly.") - - ;; The game code and most assets are GPL2+, but we use GPL2 only here - ;; because some assets do not use the "or later" clause. Many individual - ;; assets use Creative Commons or Public Domain; see the LICENSE file. - (license (delete license:gpl2+ (package-license ufoai-data))))) - (define-public xshogi (package (name "xshogi")