* [bug#61772] [PATCH 2/5] gnu: cl-sdl2: Remove input labels.
2023-02-24 22:23 ` [bug#61772] [PATCH 1/5] gnu: cl-sdl2: Update to 0.0.0-2.80410b5 Sharlatan Hellseher
@ 2023-02-24 22:23 ` Sharlatan Hellseher
2023-02-24 22:23 ` [bug#61772] [PATCH 3/5] gnu: Add cl-sdl2-mixer Sharlatan Hellseher
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Sharlatan Hellseher @ 2023-02-24 22:23 UTC (permalink / raw)
To: 61772; +Cc: Sharlatan Hellseher
* gnu/packages/lisp.scm (sbcl-sdl2):
[arguments]{asd-systems}: Add sdl2/examples.
{phases}<fix-path>: Remove trailing #f from lambda, use
search-input-file to link SO library.
[inputs]: Remove labels, add sbcl-cl-opengl.
---
gnu/packages/lisp-xyz.scm | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 648141b19b..4772be6cef 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -20138,21 +20138,22 @@ (define-public sbcl-sdl2
(base32 "0sjy4k04k0hdhwpr57ns16ag3za0kz4laclbk17i91ql7qdjw9z2"))))
(build-system asdf-build-system/sbcl)
(arguments
- `(#:phases
+ `(#:asd-systems '("sdl2" "sdl2/examples")
+ #:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "src/library.lisp"
- (("libSDL2-2.0.so.0" all)
- (string-append (assoc-ref inputs "libsdl2") "/lib/" all)))
- #t)))))
+ (("libSDL2-2.0.so.0")
+ (search-input-file inputs "/lib/libSDL2-2.0.so.0"))))))))
(inputs
- `(("alexandria" ,sbcl-alexandria)
- ("cl-autowrap" ,sbcl-cl-autowrap)
- ("cl-ppcre" ,sbcl-cl-ppcre)
- ("libsdl2" ,sdl2)
- ("trivial-channels" ,sbcl-trivial-channels)
- ("trivial-features" ,sbcl-trivial-features)))
+ (list sbcl-alexandria
+ sbcl-cl-autowrap
+ sbcl-cl-opengl
+ sbcl-cl-ppcre
+ sbcl-trivial-channels
+ sbcl-trivial-features
+ sdl2))
(home-page "https://github.com/lispgames/cl-sdl2")
(synopsis "Common Lisp bindings for SDL2 using C2FFI")
(description
--
2.39.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [bug#61772] [PATCH 3/5] gnu: Add cl-sdl2-mixer.
2023-02-24 22:23 ` [bug#61772] [PATCH 1/5] gnu: cl-sdl2: Update to 0.0.0-2.80410b5 Sharlatan Hellseher
2023-02-24 22:23 ` [bug#61772] [PATCH 2/5] gnu: cl-sdl2: Remove input labels Sharlatan Hellseher
@ 2023-02-24 22:23 ` Sharlatan Hellseher
2023-02-24 22:23 ` [bug#61772] [PATCH 4/5] gnu: Add sbcl-cl-cairo2 Sharlatan Hellseher
2023-02-24 22:23 ` [bug#61772] [PATCH 5/5] gnu: Add cl-calm Sharlatan Hellseher
3 siblings, 0 replies; 7+ messages in thread
From: Sharlatan Hellseher @ 2023-02-24 22:23 UTC (permalink / raw)
To: 61772; +Cc: Sharlatan Hellseher
* gnu/packages/lisp-xyz.scm (cl-sdl2-mixer, ecl-sdl2-mixer,
sbcl-sdl2-mixer): New variables.
---
gnu/packages/lisp-xyz.scm | 43 +++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 4772be6cef..808fdb9391 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -20209,6 +20209,49 @@ (define-public ecl-sdl2-image
(define-public cl-sdl2-image
(sbcl-package->cl-source-package sbcl-sdl2-image))
+(define-public sbcl-sdl2-mixer
+ (let ((commit "fdcc7ee7935dd01fd338e22690451db2cf126156")
+ (revision "1"))
+ (package
+ (name "sbcl-sdl2-mixer")
+ (version (git-version "1.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/lispgames/cl-sdl2-mixer")
+ (commit commit)))
+ (file-name (git-file-name "sdl2-mixer" version))
+ (sha256
+ (base32 "0g6ywb3gqr0rif4z6kkz6m8vyv8nrr5wr1w9sc6d3zypbbnqgbp6"))))
+ (build-system asdf-build-system/sbcl)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "src/library.lisp"
+ (("libSDL2_mixer-2.0.so.0")
+ (search-input-file inputs "/lib/libSDL2_mixer-2.0.so.0"))))))))
+ (inputs
+ (list sbcl-alexandria
+ sbcl-cl-autowrap
+ sbcl-sdl2
+ sbcl-trivial-garbage
+ sdl2-mixer))
+ (home-page "https://github.com/lispgames/cl-sdl2-mixer")
+ (synopsis "Bindings for sdl2_mixer using autowrap for Common Lisp")
+ (description
+ "This package provides a Common Lisp wrapper system for the SDL 2.0 Mixer C
+Library.")
+ (license license:expat))))
+
+(define-public ecl-sdl2-mixer
+ (sbcl-package->ecl-package sbcl-sdl2-mixer))
+
+(define-public cl-sdl2-mixer
+ (sbcl-package->cl-source-package sbcl-sdl2-mixer))
+
(define-public sbcl-sdl2-ttf
(let ((commit "6dd2df2fb3a79ec4f835e3bc882e60e8da039878")
(revision "1"))
--
2.39.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [bug#61772] [PATCH 4/5] gnu: Add sbcl-cl-cairo2.
2023-02-24 22:23 ` [bug#61772] [PATCH 1/5] gnu: cl-sdl2: Update to 0.0.0-2.80410b5 Sharlatan Hellseher
2023-02-24 22:23 ` [bug#61772] [PATCH 2/5] gnu: cl-sdl2: Remove input labels Sharlatan Hellseher
2023-02-24 22:23 ` [bug#61772] [PATCH 3/5] gnu: Add cl-sdl2-mixer Sharlatan Hellseher
@ 2023-02-24 22:23 ` Sharlatan Hellseher
2023-02-24 22:23 ` [bug#61772] [PATCH 5/5] gnu: Add cl-calm Sharlatan Hellseher
3 siblings, 0 replies; 7+ messages in thread
From: Sharlatan Hellseher @ 2023-02-24 22:23 UTC (permalink / raw)
To: 61772; +Cc: Sharlatan Hellseher
* gnu/packages/lisp-xyz.scm (cl-cairo2, ecl-cl-cairo2, sbcl-cl-cairo2):
New variables.
---
gnu/packages/lisp-xyz.scm | 50 +++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 808fdb9391..e37a386232 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -3567,6 +3567,56 @@ (define-public cl-let-plus
(define-public ecl-let-plus
(sbcl-package->ecl-package sbcl-let-plus))
+(define-public sbcl-cl-cairo2
+ (let ((commit "41ae45aac86553c46f4bb460f80e1fb620930f5b")
+ (revision "1"))
+ (package
+ (name "sbcl-cl-cairo2")
+ (version (git-version "1.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rpav/cl-cairo2")
+ (commit commit)))
+ (file-name (git-file-name "cl-cairo2" version))
+ (sha256
+ (base32 "0cpfgyxw6pz7y033dlya8c4vjmkpw127zdq3a9xclp9q8jbdlb7q"))))
+ (build-system asdf-build-system/sbcl)
+ (arguments
+ `(#:asd-systems '(;; "cl-cairo2-gtk2" ; cl-gtk2 is not packed and quite old.
+ ;; "cl-cairo2-quartz" ; Failing when enabled.
+ ;; "cl-cairo2-xlib" ; cl-xcb-xlib is not packed yet and quite old.
+ ;; "cl-cairo2-xcb"
+ "cl-cairo2")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "src/load-libraries.lisp"
+ (("libcairo.so.2")
+ (search-input-file inputs "/lib/libcairo.so.2"))))))))
+ (inputs
+ (list cairo
+ sbcl-cffi
+ sbcl-cl-colors
+ sbcl-cl-freetype2
+ sbcl-cl-utilities
+ sbcl-metabang-bind
+ sbcl-trivial-features
+ sbcl-trivial-garbage))
+ (home-page "https://github.com/rpav/cl-cairo2")
+ (synopsis "Cairo bindings for Common Lisp")
+ (description
+ "This packages provides a CFFI bindings for Common Lisp to cairo C library.")
+ (license license:boost1.0))))
+
+(define-public ecl-cl-cairo2
+ (sbcl-package->ecl-package sbcl-cl-cairo2))
+
+(define-public cl-cairo2
+ (sbcl-package->cl-source-package sbcl-cl-cairo2))
+
(define-public sbcl-cl-colors
(let ((commit "827410584553f5c717eec6182343b7605f707f75"))
(package
--
2.39.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [bug#61772] [PATCH 5/5] gnu: Add cl-calm.
2023-02-24 22:23 ` [bug#61772] [PATCH 1/5] gnu: cl-sdl2: Update to 0.0.0-2.80410b5 Sharlatan Hellseher
` (2 preceding siblings ...)
2023-02-24 22:23 ` [bug#61772] [PATCH 4/5] gnu: Add sbcl-cl-cairo2 Sharlatan Hellseher
@ 2023-02-24 22:23 ` Sharlatan Hellseher
3 siblings, 0 replies; 7+ messages in thread
From: Sharlatan Hellseher @ 2023-02-24 22:23 UTC (permalink / raw)
To: 61772; +Cc: Sharlatan Hellseher
* gnu/packages/lisp-xyz.scm (cl-calm, sbcl-calm): New variables.
---
gnu/packages/lisp-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index e37a386232..99300e12e2 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -2801,6 +2801,42 @@ (define-public cl-calispel
(define-public ecl-calispel
(sbcl-package->ecl-package sbcl-calispel))
+(define-public sbcl-calm
+ (package
+ (name "sbcl-calm")
+ (version "0.0.33")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/VitoVan/calm")
+ (commit version)))
+ (file-name (git-file-name "calm" version))
+ (sha256
+ (base32 "0dh8100facv95yl8j9sbss6v2xplsl57fz32xdxmhbx5qq2vs77x"))))
+ (build-system asdf-build-system/sbcl)
+ (inputs
+ (list sbcl-cl-cairo2
+ sbcl-cl-str
+ sbcl-sdl2
+ sbcl-sdl2-image
+ sbcl-sdl2-mixer
+ sbcl-slime-swank))
+ (home-page "https://github.com/VitoVan/calm")
+ (synopsis "Vector graphic library for Common Lisp")
+ (description
+ "This package provides a SDL2 based vector graphic library for Common Lisp.")
+ (license license:gpl2)))
+
+(define-public cl-calm
+ (sbcl-package->cl-source-package sbcl-calm))
+
+;; TODO: ECL is not supported yet:
+;; https://github.com/VitoVan/calm/issues/70
+
+;; (define-public ecl-calm
+;; (sbcl-package->ecl-package sbcl-calm))
+
(define-public sbcl-esrap
(let ((commit "4c82a863871e117f0041b9ef37e61c0b62318aa7")
(revision "3"))
--
2.39.1
^ permalink raw reply related [flat|nested] 7+ messages in thread