summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Buddelmeijer <hugo@buddelmeijer.nl>2026-05-24 21:28:36 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-05-24 23:40:24 +0100
commit9bf52e4cbfa9ec88fadc84f757421a99e9fbd830 (patch)
tree4f97e88462fb2fbd6a4f8b3329b313399e99cc54
parentd1bb7911f484c47434211612ae8287fae366c1ca (diff)
gnu: golly: Fix style.
* gnu/packages/games.scm (golly): Fix style. [arguments]: Use gexps. Merges: guix/guix!8803 Change-Id: Ic2b6c083a3542584ce28b0718605c6795cfac8df Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/games.scm78
1 files changed, 42 insertions, 36 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index b0eba09f4d0..f05f3f11f43 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -1968,44 +1968,50 @@ real-time combat.")
1968 "049n634abxfpgh4imh3s5qqfn9nbwmcl6jm91f29ngqm53jcsdaq")))) 1968 "049n634abxfpgh4imh3s5qqfn9nbwmcl6jm91f29ngqm53jcsdaq"))))
1969 (build-system gnu-build-system) 1969 (build-system gnu-build-system)
1970 (arguments 1970 (arguments
1971 '(#:make-flags (list "CC=gcc" 1971 (list
1972 (string-append "GOLLYDIR=" 1972 #:make-flags
1973 (assoc-ref %outputs "out") 1973 #~(list "CC=gcc"
1974 "/share/golly")) 1974 (string-append "GOLLYDIR="
1975 #:tests? #f ; no check target 1975 #$output
1976 #:phases 1976 "/share/golly"))
1977 (modify-phases %standard-phases 1977 #:tests? #f ; no check target
1978 (delete 'configure) 1978 #:phases
1979 (replace 'build 1979 #~(modify-phases %standard-phases
1980 (lambda* (#:key make-flags outputs #:allow-other-keys) 1980 (delete 'configure)
1981 (with-directory-excursion "gui-wx" 1981 (replace 'build
1982 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk"))))) 1982 (lambda* (#:key make-flags #:allow-other-keys)
1983 (replace 'install 1983 (with-directory-excursion "gui-wx"
1984 (lambda* (#:key outputs #:allow-other-keys) 1984 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
1985 (let* ((out (assoc-ref outputs "out")) 1985 (replace 'install
1986 (bin (string-append out "/bin")) 1986 (lambda _
1987 (doc (string-append out "/share/doc/golly")) 1987 (let* ((bin (string-append #$output "/bin"))
1988 (pixmaps (string-append out "/share/pixmaps")) 1988 (doc (string-append #$output "/share/doc/golly"))
1989 (share (string-append out "/share/golly"))) 1989 (pixmaps (string-append #$output "/share/pixmaps"))
1990 (for-each (lambda (binary) 1990 (share (string-append #$output "/share/golly")))
1991 (install-file binary bin)) 1991 (for-each (lambda (binary)
1992 '("bgolly" "golly")) 1992 (install-file binary bin))
1993 (for-each (lambda (document) 1993 (list "bgolly" "golly"))
1994 (install-file 1994 (for-each (lambda (document)
1995 (string-append "docs/" document ".html") 1995 (install-file
1996 doc)) 1996 (string-append "docs/" document ".html")
1997 '("License" "ReadMe" "ToDo")) 1997 doc))
1998 (install-file "gui-wx/icons/appicon.xpm" pixmaps) 1998 (list "License" "ReadMe" "ToDo"))
1999 (for-each (lambda (folder) 1999 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
2000 (copy-recursively 2000 (for-each (lambda (folder)
2001 folder 2001 (copy-recursively
2002 (string-append share "/" folder))) 2002 folder
2003 '("Help" "Patterns" "Rules" "Scripts"))) 2003 (string-append share "/" folder)))
2004 #t))))) 2004 (list "Help" "Patterns" "Rules" "Scripts"))))))))
2005 (native-inputs 2005 (native-inputs
2006 (list lua python-setuptools)) 2006 (list lua
2007 python-setuptools))
2007 (inputs 2008 (inputs
2008 (list glu mesa python sdl2 wxwidgets zlib)) 2009 (list glu
2010 mesa
2011 python
2012 sdl2
2013 wxwidgets
2014 zlib))
2009 (home-page "https://golly.sourceforge.net/") 2015 (home-page "https://golly.sourceforge.net/")
2010 (synopsis "Software for exploring cellular automata") 2016 (synopsis "Software for exploring cellular automata")
2011 (description 2017 (description