GNU bug report logs - #56959
[PATCH] gnu: packages: Add glad2.

Previous Next

Package: guix-patches;

Reported by: "(" <paren <at> disroot.org>

Date: Wed, 3 Aug 2022 19:47:02 UTC

Severity: normal

Tags: patch

Done: "(" <paren <at> disroot.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 56959 in the body.
You can then email your comments to 56959 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#56959; Package guix-patches. (Wed, 03 Aug 2022 19:47:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "(" <paren <at> disroot.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 03 Aug 2022 19:47:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "(" <paren <at> disroot.org>
To: guix-patches <at> gnu.org
Cc: "\(" <paren <at> disroot.org>
Subject: [PATCH] gnu: packages: Add glad2.
Date: Wed,  3 Aug 2022 20:46:25 +0100
* gnu/packages/gl.scm (glad2): New variable.
---
 gnu/packages/gl.scm | 46 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index c740c087dd..3539b66a2a 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -17,6 +17,7 @@
 ;;; Copyright © 2021 Ivan Gankevich <i.gankevich <at> spbu.ru>
 ;;; Copyright © 2021 John Kehayias <john.kehayias <at> protonmail.com>
 ;;; Copyright © 2022 Petr Hodina <phodina <at> protonmail.com>
+;;; Copyright © 2022 ( <paren <at> disroot.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -66,6 +67,7 @@ (define-module (gnu packages gl)
   #:use-module (guix build-system meson)
   #:use-module (guix build-system python)
   #:use-module (guix build-system waf)
+  #:use-module (guix gexp)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix utils)
@@ -215,6 +217,50 @@ (define-public glad
 generate a GL/GLES/EGL/GLX/WGL loader tailored for specific requirements.")
     (license license:expat)))
 
+(define-public glad2
+  (let ((commit "b1051403cf81b984f9fc11cc5916adb5afd34766")
+	(revision "2"))
+    (package
+      (name "glad2")
+      (version (git-version "0.1.36" revision commit))
+      (source (origin
+	       (method git-fetch)
+	       (uri (git-reference
+		     (url "https://github.com/Dav1dde/glad")
+		     (commit commit)))
+	       (sha256
+	        (base32
+                 "03q3gxg2z9lpx7hqac2fd3ld94avhkg4mdxjfjgrgh97kyx9knpm"))))
+      (build-system python-build-system)
+      (arguments
+       (list #:phases
+             #~(modify-phases %standard-phases
+                 (add-after 'install 'install-cmake-plugin
+                   (lambda* (#:key outputs #:allow-other-keys)
+                     (let* ((out (assoc-ref outputs "out"))
+                            (cmake-dir (string-append
+                                        out "/share/cmake/glad")))
+                       (mkdir-p cmake-dir)
+                       (copy-file "cmake/CMakeLists.txt"
+                                  (string-append cmake-dir
+                                                 "/glad.cmake"))))))))
+      (inputs (list python-jinja2))
+      (home-page "https://glad.sh")
+      (synopsis "Multi-language OpenGL/Vulkan loader generator")
+      (description
+       "GLAD 2 is an improved iteration of the GLAD graphics API loader
+generator. It generates bindings to Vulkan and GL-related APIs from the
+official Khronos specifications. Among the improvements are:
+@enumerate
+@item Better EGL, GLX, and WGL support
+@item Support for generating Vulkan bindings
+@item A Rust frontend
+@item More generator options (such as an option to make GLAD header-only)
+@item Improvements to CMake support
+@item Better API
+@end enumerate")
+      (license license:expat))))
+
 (define-public s2tc
   (package
     (name "s2tc")
-- 
2.37.1





Information forwarded to guix-patches <at> gnu.org:
bug#56959; Package guix-patches. (Thu, 11 Aug 2022 14:20:02 GMT) Full text and rfc822 format available.

Message #8 received at 56959 <at> debbugs.gnu.org (full text, mbox):

From: Jean Pierre De Jesus DIAZ <me <at> jeandudey.tech>
To: "56959 <at> debbugs.gnu.org" <56959 <at> debbugs.gnu.org>
Cc: "paren <at> disroot.org" <paren <at> disroot.org>
Subject: [PATCH] gnu: packages: Add glad2.
Date: Thu, 11 Aug 2022 14:19:08 +0000
Hello,

Small review:

>+                   (lambda* (#:key outputs #:allow-other-keys)
>+                     (let* ((out (assoc-ref outputs "out"))
>+                            (cmake-dir (string-append
>+                                        out "/share/cmake/glad")))

--8<---------------cut here---------------start------------->8---
                   (lambda _
                     (let ((cmake-dir (string-append
                                        #$output "/share/cmake/glad")))
--8<---------------cut here---------------start------------->8---

>+generator. It generates bindings to Vulkan and GL-related APIs from the
>+official Khronos specifications. Among the improvements are:

Missing the additional space after the dots.

—
Jean-Pierre De Jesus DIAZ




Information forwarded to guix-patches <at> gnu.org:
bug#56959; Package guix-patches. (Fri, 12 Aug 2022 06:52:02 GMT) Full text and rfc822 format available.

Message #11 received at 56959 <at> debbugs.gnu.org (full text, mbox):

From: "(" <paren <at> disroot.org>
To: "Jean Pierre De Jesus DIAZ" <me <at> jeandudey.tech>, "56959 <at> debbugs.gnu.org"
 <56959 <at> debbugs.gnu.org>
Subject: Re: [PATCH] gnu: packages: Add glad2.
Date: Fri, 12 Aug 2022 07:50:58 +0100
Thanks for the mini-review! I'll send a second patch with those corrections
shortly.

    -- (




Information forwarded to guix-patches <at> gnu.org:
bug#56959; Package guix-patches. (Fri, 12 Aug 2022 07:01:02 GMT) Full text and rfc822 format available.

Message #14 received at 56959 <at> debbugs.gnu.org (full text, mbox):

From: "(" <paren <at> disroot.org>
To: 56959 <at> debbugs.gnu.org
Cc: "\(" <paren <at> disroot.org>
Subject: [PATCH v2] gnu: packages: Add glad2.
Date: Fri, 12 Aug 2022 07:59:58 +0100
* gnu/packages/gl.scm (glad2): New variable.
---
 gnu/packages/gl.scm | 46 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index c740c087dd..50c7b91526 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -17,6 +17,7 @@
 ;;; Copyright © 2021 Ivan Gankevich <i.gankevich <at> spbu.ru>
 ;;; Copyright © 2021 John Kehayias <john.kehayias <at> protonmail.com>
 ;;; Copyright © 2022 Petr Hodina <phodina <at> protonmail.com>
+;;; Copyright © 2022 ( <paren <at> disroot.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -66,6 +67,7 @@ (define-module (gnu packages gl)
   #:use-module (guix build-system meson)
   #:use-module (guix build-system python)
   #:use-module (guix build-system waf)
+  #:use-module (guix gexp)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix utils)
@@ -215,6 +217,50 @@ (define-public glad
 generate a GL/GLES/EGL/GLX/WGL loader tailored for specific requirements.")
     (license license:expat)))
 
+(define-public glad2
+  (let ((commit "b1051403cf81b984f9fc11cc5916adb5afd34766")
+	(revision "2"))
+    (package
+      (name "glad2")
+      (version (git-version "0.1.36" revision commit))
+      (source (origin
+	       (method git-fetch)
+	       (uri (git-reference
+		     (url "https://github.com/Dav1dde/glad")
+		     (commit commit)))
+	       (sha256
+	        (base32
+                 "03q3gxg2z9lpx7hqac2fd3ld94avhkg4mdxjfjgrgh97kyx9knpm"))))
+      (build-system python-build-system)
+      (arguments
+       (list #:phases
+             #~(modify-phases %standard-phases
+                 (add-after 'install 'install-cmake-plugin
+                   (lambda _
+                     (let ((cmake-dir (string-append #$output
+                                                     "/share/cmake/glad")))
+                       (mkdir-p cmake-dir)
+                       (copy-file "cmake/CMakeLists.txt"
+                                  (string-append cmake-dir
+                                                 "/glad.cmake"))))))))
+      (inputs (list python-jinja2))
+      (home-page "https://glad.sh")
+      (synopsis "Multi-language OpenGL/Vulkan loader generator")
+      (description
+       "GLAD 2 is a graphics library binding generator.  It generates code
+for calling into Vulkan and GL-related APIs from the official Khronos XML
+specifications.  Among the improvements are:
+@enumerate
+@item Better EGL, GLX, and WGL support
+@item Support for generating Vulkan bindings
+@item A Rust frontend
+@item More generator options for enabling features such as the generation
+of header-only C bindings
+@item Improvements for CMake support
+@item Better API
+@end enumerate")
+      (license license:expat))))
+
 (define-public s2tc
   (package
     (name "s2tc")
-- 
2.37.1





bug closed, send any further explanations to 56959 <at> debbugs.gnu.org and "(" <paren <at> disroot.org> Request was from "(" <paren <at> disroot.org> to control <at> debbugs.gnu.org. (Sat, 05 Nov 2022 15:24:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 04 Dec 2022 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 136 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.