unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#49187] [PATCH 0/2]: gnu: Add cl-sdl2
@ 2021-06-23 13:29 Sharlatan Hellseher
  2021-06-23 13:32 ` [bug#49187] [PATCH 1/2]: gnu: Update cl-autowrap to 1.0-2.a5d71eb Sharlatan Hellseher
  2021-06-23 13:32 ` [bug#49187] [PATCH 2/2]: gnu: Add cl-sdl2 Sharlatan Hellseher
  0 siblings, 2 replies; 4+ messages in thread
From: Sharlatan Hellseher @ 2021-06-23 13:29 UTC (permalink / raw)
  To: 49187

Hi Guix team!

Here is the last package for ViralityEngine I've resolved to pack,
cl-autowrap had missing system which prevented to build it.

1 file changed, 45 insertions(+)
gnu/packages/lisp-xyz.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++

1 file changed, 6 insertions(+), 4 deletions(-)
gnu/packages/lisp-xyz.scm | 10 ++++++----

-- 
… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#49187] [PATCH 1/2]: gnu: Update cl-autowrap to 1.0-2.a5d71eb
  2021-06-23 13:29 [bug#49187] [PATCH 0/2]: gnu: Add cl-sdl2 Sharlatan Hellseher
@ 2021-06-23 13:32 ` Sharlatan Hellseher
  2021-06-23 13:32 ` [bug#49187] [PATCH 2/2]: gnu: Add cl-sdl2 Sharlatan Hellseher
  1 sibling, 0 replies; 4+ messages in thread
From: Sharlatan Hellseher @ 2021-06-23 13:32 UTC (permalink / raw)
  To: 49187

[-- Attachment #1: Type: text/plain, Size: 356 bytes --]

-- 
… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.

[-- Attachment #2: 0001-gnu-cl-autowrap-Update-to-1.0-2.a5d71eb.patch --]
[-- Type: text/x-patch, Size: 1717 bytes --]

From 8e8144da5ec4b836f03144688d449f4e946df7ec Mon Sep 17 00:00:00 2001
From: Sharlatan Hellseher <sharlatanus@gmail.com>
Date: Wed, 23 Jun 2021 14:16:38 +0100
Subject: [PATCH] gnu: cl-autowrap: Update to 1.0-2.a5d71eb

* gnu/packages/lisp-xyx.scm: (sbcl-cl-autowrap) Update to 1.0-2.a5d71eb
  [file-name]: Altered format
  [arguments]: Add missing system cl-plus-c
---
 gnu/packages/lisp-xyz.scm | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 204a470df0..31a9193b04 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -6712,8 +6712,8 @@ extension-points via the concept of hooks.")
   (sbcl-package->ecl-package sbcl-cl-hooks))
 
 (define-public sbcl-cl-autowrap
-  (let ((revision "1")
-        (commit "ae846d6968fc0d000de0c541638929a157f3009e"))
+  (let ((revision "2")
+        (commit "a5d71ebd7c21b87f449db1e16ab815750d7c0ea4"))
     ;; no taged branches
     (package
       (name "sbcl-cl-autowrap")
@@ -6724,10 +6724,12 @@ extension-points via the concept of hooks.")
          (uri (git-reference
                (url "https://github.com/rpav/cl-autowrap")
                (commit commit)))
-         (file-name (git-file-name name version))
+         (file-name (git-file-name "cl-autowrap" version))
          (sha256
-          (base32 "1gisldp2zns92kdcaikghm7c38ldy2d884n8bfg0wcjvbz78p3ar"))))
+          (base32 "0795c817m1c41cz3ywzzg83z4pgkxdg6si553pay9mdgjvmrwmaw"))))
       (build-system asdf-build-system/sbcl)
+      (arguments
+       `(#:asd-systems '("cl-plus-c" "cl-autowrap")))
       (inputs
        `(("alexandria" ,sbcl-alexandria)
          ("cffi" ,sbcl-cffi)
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#49187] [PATCH 2/2]: gnu: Add cl-sdl2
  2021-06-23 13:29 [bug#49187] [PATCH 0/2]: gnu: Add cl-sdl2 Sharlatan Hellseher
  2021-06-23 13:32 ` [bug#49187] [PATCH 1/2]: gnu: Update cl-autowrap to 1.0-2.a5d71eb Sharlatan Hellseher
@ 2021-06-23 13:32 ` Sharlatan Hellseher
  2021-06-24  9:05   ` bug#49187: " Guillaume Le Vaillant
  1 sibling, 1 reply; 4+ messages in thread
From: Sharlatan Hellseher @ 2021-06-23 13:32 UTC (permalink / raw)
  To: 49187

[-- Attachment #1: Type: text/plain, Size: 356 bytes --]

-- 
… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.

[-- Attachment #2: 0001-gnu-Add-cl-sdl2.patch --]
[-- Type: text/x-patch, Size: 2323 bytes --]

From 679cf6966f76a7a38815ea2754bdcb07810bdcea Mon Sep 17 00:00:00 2001
From: Sharlatan Hellseher <sharlatanus@gmail.com>
Date: Wed, 23 Jun 2021 14:23:33 +0100
Subject: [PATCH] gnu: Add cl-sdl2

* gnu/packages/lisp-xyz.scm: (sbcl-sdl2, ecl-sdl2, cl-sdl2): New variables.
---
 gnu/packages/lisp-xyz.scm | 45 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 31a9193b04..7c37122d2e 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -17745,3 +17745,48 @@ setup.")
 
 (define-public cl-posix-mqueue
   (sbcl-package->cl-source-package sbcl-cl-posix-mqueue))
+
+(define-public sbcl-sdl2
+  (let ((commit "bb2aa2a41cf799e3bb1ddf50de41fe389c6db668")
+        (revision "1"))
+    (package
+      (name "sbcl-sdl2")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/lispgames/cl-sdl2")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1a4904310z2wwq80grnlixmyz30452vgd4lh74y105j2yrr43z97"))))
+      (build-system asdf-build-system/sbcl)
+      (arguments
+       `(#: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)))))
+      (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)))
+      (home-page "https://github.com/lispgames/cl-sdl2")
+      (synopsis "Common Lisp bindings for SDL2 using C2FFI")
+      (description
+       "This pckage provides a Commn Lisp wrapper system for SDL 2.0 C
+Library.")
+      (license license:expat))))
+
+(define-public ecl-sdl2
+  (sbcl-package->ecl-package sbcl-sdl2))
+
+(define-public cl-sdl2
+  (sbcl-package->cl-source-package sbcl-sdl2))
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#49187: [PATCH 2/2]: gnu: Add cl-sdl2
  2021-06-23 13:32 ` [bug#49187] [PATCH 2/2]: gnu: Add cl-sdl2 Sharlatan Hellseher
@ 2021-06-24  9:05   ` Guillaume Le Vaillant
  0 siblings, 0 replies; 4+ messages in thread
From: Guillaume Le Vaillant @ 2021-06-24  9:05 UTC (permalink / raw)
  To: Sharlatan Hellseher; +Cc: 49187-done

[-- Attachment #1: Type: text/plain, Size: 82 bytes --]

Patches pushed as d2f297894ad958449a514113ca97f96de5b39c62 and
following.
Thanks.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-06-24  9:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-23 13:29 [bug#49187] [PATCH 0/2]: gnu: Add cl-sdl2 Sharlatan Hellseher
2021-06-23 13:32 ` [bug#49187] [PATCH 1/2]: gnu: Update cl-autowrap to 1.0-2.a5d71eb Sharlatan Hellseher
2021-06-23 13:32 ` [bug#49187] [PATCH 2/2]: gnu: Add cl-sdl2 Sharlatan Hellseher
2021-06-24  9:05   ` bug#49187: " Guillaume Le Vaillant

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).