GNU bug report logs -
#62017
[PATCH 0/2]: gnu: Add cl-raylib.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 62017 in the body.
You can then email your comments to 62017 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#62017
; Package
guix-patches
.
(Mon, 06 Mar 2023 23:41:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Sharlatan Hellseher <sharlatanus <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Mon, 06 Mar 2023 23:41:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi Guix!
This patch serials enables shared library build for raylib game library and
provides CFFI bindings for Common Lisp library cl-raylib.
One think to mention - Raylib has a decent amount of bundled sources in
src/external some of them are availalbe in Guix, which can be unbundled.
> ./pre-inst-env guix build --rounds=2 sbcl-cl-raylib ecl-cl-raylib
> /gnu/store/80a82vn5db9law9qldyxwpsac1icajr4-ecl-cl-raylib-0.0.1-0.985ceeb
> /gnu/store/wpnc98flcmh3ynmdnqq0b4raas07nycd-sbcl-cl-raylib-0.0.1-0.985ceeb
Sharlatan Hellseher (2):
gnu: raylib: Build shared libraries.
gnu: Add cl-raylib.
gnu/packages/game-development.scm | 5 +++-
gnu/packages/lisp-xyz.scm | 43 +++++++++++++++++++++++++++++++
2 files changed, 47 insertions(+), 1 deletion(-)
base-commit: fd4545a47a527fff437abb9991156cfee4137d2b
--
2.39.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#62017
; Package
guix-patches
.
(Mon, 06 Mar 2023 23:43:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 62017 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/game-development.scm (raylib):
[arguments]{#:configure-flags}: Enable building shared libraries.
---
gnu/packages/game-development.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index a0de1b339e..a384572a9d 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -2847,12 +2847,15 @@ (define-public raylib
(url "https://github.com/raysan5/raylib/")
(commit version)))
(file-name (git-file-name name version))
+ ;; TODO: Unbundle src/external
(sha256
(base32
"14v5iwxh8grywiyw9agpd2sfpyriq1rwwkd9f2s4iihh0z5j7hk8"))))
(build-system cmake-build-system)
(arguments
- (list #:tests? #f)) ;no test
+ (list #:tests? #f ;no test
+ #:configure-flags
+ #~(list "-DBUILD_SHARED_LIBS=ON" )))
(inputs (list alsa-lib
libx11
libxrandr
--
2.39.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#62017
; Package
guix-patches
.
(Mon, 06 Mar 2023 23:43:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 62017 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/lisp-xyz.scm (cl-raylib, ecl-cl-raylib, sbcl-cl-raylib):
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 a8792dee52..c3a1cd08d1 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -4289,6 +4289,49 @@ (define-public cl-sqlite
(define-public ecl-cl-sqlite
(sbcl-package->ecl-package sbcl-cl-sqlite))
+(define-public sbcl-cl-raylib
+ (let ((commit "985ceebef4cb56c651cddc23bd71812f2be38c2d")
+ (revision "0"))
+ (package
+ (name "sbcl-cl-raylib")
+ (version (git-version "0.0.1" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/longlene/cl-raylib")
+ (commit commit)))
+ (file-name (git-file-name "cl-raylib" version))
+ (sha256
+ (base32 "1kighj35g6dn426mhr2ppz3gm49v1q4n42ydn619pclrqwyrnc2z"))))
+ (build-system asdf-build-system/sbcl)
+ (arguments
+ `(#:tests? #f ; no tests https://github.com/longlene/cl-raylib/issues/40
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "src/library.lisp"
+ (("libraylib\\.so")
+ (search-input-file inputs "/lib/libraylib.so"))))))))
+ (inputs
+ (list raylib
+ sbcl-cffi
+ sbcl-alexandria
+ sbcl-3d-vectors
+ sbcl-3d-matrices))
+ (home-page "https://github.com/longlene/cl-raylib")
+ (synopsis "Common Lisp bindings to raylib")
+ (description "This package provides a Common Lisp CFFI bindings to game
+development library Ralib.")
+ (license license:expat))))
+
+(define-public cl-raylib
+ (sbcl-package->cl-source-package sbcl-cl-raylib))
+
+(define-public ecl-cl-raylib
+ (sbcl-package->ecl-package sbcl-cl-raylib))
+
(define-public sbcl-cl-redis
(let ((commit "7d592417421cf7cd1cffa96043b457af0490df7d")
(revision "0"))
--
2.39.1
Reply sent
to
Guillaume Le Vaillant <glv <at> posteo.net>
:
You have taken responsibility.
(Tue, 07 Mar 2023 10:42:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Sharlatan Hellseher <sharlatanus <at> gmail.com>
:
bug acknowledged by developer.
(Tue, 07 Mar 2023 10:42:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 62017-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Patches pushed as e08ae5900a16ac29e6adc369f513f574137eb86e and
following.
Thanks.
[signature.asc (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 04 Apr 2023 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 359 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.