This is an automated email from the git hooks/post-receive script.

guix_mirror_bot pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new a74e1277c9 gnu: Add angelscript.
a74e1277c9 is described below

commit a74e1277c970eb6b2754fe114e9f8228a0e6d40f
Author: Andy Tai <[email protected]>
AuthorDate: Fri Feb 6 23:32:18 2026 -0800

    gnu: Add angelscript.
    
    * gnu/packages/game-development.scm (angelscript): New variable.
    
    Closes: guix/guix#6194
    Change-Id: Ib11291648ea427ccf168a0b231f40583bb6f20ec
    Signed-off-by: 宋文武 <[email protected]>
---
 gnu/packages/game-development.scm | 46 ++++++++++++++++++++++++++++++++++++++-
 1 file changed, 45 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/game-development.scm 
b/gnu/packages/game-development.scm
index 8e912f790b..1d1ce8c474 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -24,7 +24,7 @@
 ;;; Copyright © 2021 Dmitry Polyakov <[email protected]>
 ;;; Copyright © 2020-2022, 2024-2025 James Smith <[email protected]>
 ;;; Copyright © 2021 Ekaitz Zarraga <[email protected]>
-;;; Copyright © 2021 Andy Tai <[email protected]>
+;;; Copyright © 2021, 2026 Andy Tai <[email protected]>
 ;;; Copyright © 2022 Felix Gruber <[email protected]>
 ;;; Copyright © 2022 Jai Vetrivelan <[email protected]>
 ;;; Copyright © 2022 dan <[email protected]>
@@ -4128,6 +4128,50 @@ calculations and create complete applications.")
 @uref{https://www.shlomifish.org/, Shlomi Fish's} projects.")
       (license license:expat))))
 
+(define-public angelscript
+  (package
+    (name "angelscript")
+    (version "2.38.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://www.angelcode.com/angelscript/sdk/files/angelscript_";
+             version ".zip"))
+       (sha256
+        (base32 "0vrflpmj3ldfq96js45czkk4r6266bc570v2gpv7wc8hvay5sfxk"))))
+    (build-system cmake-build-system)
+    (outputs '("out" "doc"))
+    (arguments
+     (list
+      #:tests? #f ;there are no tests
+      #:configure-flags
+      #~(list "-DBUILD_SHARED_LIBS=true")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'chdir
+            (lambda _
+              (chdir "angelscript/projects/cmake")))
+          (add-after 'install 'install-doc
+            (lambda* (#:key outputs #:allow-other-keys)
+              (chdir "../../../")
+              (let ((docdir (string-append (assoc-ref outputs "doc")
+                                           "/share/doc/anglescript")))
+                (copy-recursively "docs" docdir)))))))
+    (native-inputs (list unzip))
+    (home-page "https://www.angelcode.com/angelscript/";)
+    (synopsis "Flexible cross-platform scripting library")
+    (description
+     "AngelScript is an cross-platform scripting library designed to allow
+applications to extend their functionality through external scripts.  It has
+been designed from the beginning to be an easy to use component, both for the
+application programmer and the script writer.  It can call standard C functions
+and C++ methods with little to no need for proxy functions.  The application
+registers the functions, objects, and methods that the scripts work with.  The
+same functions used by the application internally can be used by the scripting
+engine, which eliminates the need to duplicate functionality.")
+    (license license:zlib)))
+
 (define-public rinutils
   (package
     (name "rinutils")

Reply via email to