Package: guix-patches;
Reported by: iyzsong <at> envs.net
Date: Fri, 28 Feb 2025 14:04:01 UTC
Severity: normal
Tags: patch
Done: 宋文武 <iyzsong <at> envs.net>
Bug is archived. No further changes may be made.
View this message in rfc822 format
From: iyzsong <at> envs.net To: 76642 <at> debbugs.gnu.org Cc: 宋文武 <iyzsong <at> member.fsf.org>, Adam Faiz <adam.faiz <at> disroot.org>, Liliana Marie Prikler <liliana.prikler <at> gmail.com>, 宋文武 <iyzsong <at> envs.net> Subject: [bug#76642] [PATCH] gnu: grafx2: Update to 2.9. Date: Fri, 28 Feb 2025 22:06:53 +0800
From: 宋文武 <iyzsong <at> member.fsf.org> * gnu/packages/game-development.scm (grafx2): Update to 2.9. [source]: Use git-fetch. [native-inputs]: Add which. [inputs]: Use SDL2 libraries. Add fontconfig. Replace lua <at> 5.1 with lua <at> 5.3. Remove libpng. Change-Id: I8e731d51d430b6a68f786d0a6320f2e1b7b92dae --- gnu/packages/game-development.scm | 103 +++++++++++++++++++----------- 1 file changed, 65 insertions(+), 38 deletions(-) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index 6133ad078b..458a922e9f 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -1931,48 +1931,75 @@ (define-public python-pyxel (license license:expat)))) (define-public grafx2 - (package - (name "grafx2") - (version "2.4") - (source (origin - (method url-fetch) - ;; XXX: There is no URL that contains the version. :( - (uri "http://pulkomandy.tk/projects/GrafX2/downloads/21") - (file-name (string-append "grafx2-" version ".tgz")) - (sha256 - (base32 - "0svsy6rqmdj11b400c242i2ixihyz0hds0dgicqz6g6dcgmcl62q")))) - (build-system gnu-build-system) - (arguments - '(#:phases - (modify-phases %standard-phases - (delete 'configure) ; no configure script - (add-before 'build 'change-to-src-directory - (lambda _ - (chdir "src") - #t))) - #:make-flags - ;; SDL header files are referenced without the preceeding "SDL/". - (list (string-append "CFLAGS=-I" - (assoc-ref %build-inputs "sdl-union") - "/include/SDL" - " -fcommon") - (string-append "prefix=" - (assoc-ref %outputs "out"))) - #:tests? #f)) ; no check target - (native-inputs - (list pkg-config)) - (inputs - (list libpng lua-5.1 - (sdl-union (list sdl sdl-image sdl-ttf)))) - (synopsis "Bitmap paint program") - (description "GrafX2 is a bitmap paint program inspired by the Amiga + (let ((3rd/font8x8 + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dhepper/font8x8") + (commit "8e279d2d864e79128e96188a6b9526cfa3fbfef9"))) + (file-name "font8x8-checkout") + (sha256 + (base32 "0v67bm7yp7spr34yf2s6adjx91w0hhcy3i2pc7n55rz3a8wzcd7l")))) + (3rd/6502 + (origin + (method url-fetch) + (uri "https://github.com/redcode/6502/releases/download/v0.1/6502-v0.1.tar.xz") + (sha256 + (base32 "03wlndlmfsz51x7hmrfs02r3fzqk8a0grbzm2h80pm33f4r0z9dv")))) + (3rd/recoil + (origin + (method url-fetch) + (uri "https://downloads.sourceforge.net/project/recoil/recoil/6.4.2/recoil-6.4.2.tar.gz") + (sha256 + (base32 "1p73cgfacia2gxvswhdixk6grpp9rs2n5258axh5vdb6ly8w3pi3"))))) + (package + (name "grafx2") + (version "2.9") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/GrafX2/grafX2") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0rf85pm40nmp9f95adbzzfx2ypvqjl51wqvk461c4bk8z7anlniz")) + (modules '((guix build utils))) + (snippet + #~(begin + (copy-recursively #$3rd/font8x8 + "tools/8x8fonts/font8x8") + (mkdir "3rdparty/archives") + (copy-file #$3rd/6502 + "3rdparty/archives/6502-v0.1.tar.xz") + (copy-file #$3rd/recoil + "3rdparty/archives/recoil-6.4.2.tar.gz"))))) + (build-system gnu-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (delete 'configure) ; no configure script + (add-before 'build 'change-to-src-directory + (lambda _ + (chdir "src")))) + #:make-flags + #~(list "API=sdl2" + (string-append "PREFIX=" + (assoc-ref %outputs "out"))) + #:tests? #f)) ; no check target + (native-inputs + (list pkg-config which)) + (inputs + (list fontconfig lua (sdl-union (list sdl2 sdl2-image sdl2-ttf)))) + (synopsis "Bitmap paint program") + (description "GrafX2 is a bitmap paint program inspired by the Amiga programs Deluxe Paint and Brilliance. Specializing in 256-color drawing, it includes a very large number of tools and effects that make it particularly suitable for pixel art, game graphics, and generally any detailed graphics painted with a mouse.") - (home-page "http://pulkomandy.tk/projects/GrafX2") - (license license:gpl2))) ; GPLv2 only + (home-page "http://pulkomandy.tk/projects/GrafX2") + (license license:gpl2)))) ; GPLv2 only (define-public ois (package base-commit: a76708a872e65230931f3c5c3b079d0a39d5cb84 -- 2.48.1
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.