unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#37170] [PATCH] gnu: Add opencsg.
@ 2019-08-24  0:25 Steve Sprang
       [not found] ` <handler.37170.B.15666063471580.ack@debbugs.gnu.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Steve Sprang @ 2019-08-24  0:25 UTC (permalink / raw)
  To: 37170

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



[-- Attachment #2: 0001-gnu-Add-opencsg.patch --]
[-- Type: text/x-patch, Size: 2315 bytes --]

From 796d4013b78bb596690f254bdc08f89143805ace Mon Sep 17 00:00:00 2001
From: Steve Sprang <scs@stevesprang.com>
Date: Fri, 23 Aug 2019 15:38:42 -0700
Subject: [PATCH] gnu: Add opencsg.

* gnu/packages/graphics.scm (opencsg): New variable.
---
 gnu/packages/graphics.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index ee56dae54e..9071884a3c 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -13,6 +13,7 @@
 ;;; Copyright © 2018 Kei Kebreau <kkebreau@posteo.net>
 ;;; Copyright © 2019 Mark H Weaver <mhw@netris.org>
 ;;; Copyright © 2019 Carlo Zancanaro <carlo@zancanaro.id.au>
+;;; Copyright © 2019 Steve Sprang <scs@stevesprang.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1018,3 +1019,41 @@ requirements.")
 performance subdivision surface (subdiv) evaluation on massively parallel CPU
 and GPU architectures.")
     (license license:asl2.0)))
+
+(define-public opencsg
+  (package
+    (name "opencsg")
+    (version "1.4.2")
+    (source (origin
+	      (method url-fetch)
+	      (uri (string-append "https://github.com/floriankirsch/OpenCSG/"
+				  "archive/opencsg-"
+				  (string-map
+				   (lambda (c)
+				     (if (char=? c #\.) #\- c)) version)
+				  "-release.tar.gz"))
+	      (sha256
+	       (base32
+		"0b18gb7w9rpwkrjrkxx9apy17v5infgh2hnbzg9y3f54rxcjwx1c"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+	 (replace 'configure
+	   (lambda* (#:key outputs #:allow-other-keys)
+	     (substitute* "src/Makefile"
+	       (("/usr/local") (assoc-ref outputs "out")))
+	     #t))
+	 (add-before 'build 'skip-example
+	   (lambda _ (chdir "src") #t)))))
+    (inputs
+     `(("glew" ,glew)
+       ("freeglut" ,freeglut)))
+    (synopsis "Library for rendering Constructive Solid Geometry (CSG)")
+    (description
+     "OpenCSG is a library for rendering Constructive Solid Geometry (CSG) using
+OpenGL.  CSG is an approach for modeling complex 3D-shapes using simpler ones.
+For example, two shapes can be combined by uniting them, by intersecting them,
+or by subtracting one shape from the other.")
+    (home-page "http://www.opencsg.org/")
+    (license license:gpl2)))
-- 
2.23.0


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

* [bug#37170] Acknowledgement ([PATCH] gnu: Add opencsg.)
       [not found] ` <handler.37170.B.15666063471580.ack@debbugs.gnu.org>
@ 2019-08-29 20:44   ` Steve Sprang
  2019-09-10 21:25     ` bug#37170: " Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Steve Sprang @ 2019-08-29 20:44 UTC (permalink / raw)
  To: 37170

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

Here's an updated patch. Switched from url-fetch to git-fetch and
fixed lint complaints.

On Fri, Aug 23, 2019 at 5:26 PM GNU bug Tracking System
<help-debbugs@gnu.org> wrote:
>
> Thank you for filing a new bug report with debbugs.gnu.org.
>
> This is an automatically generated reply to let you know your message
> has been received.
>
> Your message is being forwarded to the package maintainers and other
> interested parties for their attention; they will reply in due course.
>
> Your message has been sent to the package maintainer(s):
>  guix-patches@gnu.org
>
> If you wish to submit further information on this problem, please
> send it to 37170@debbugs.gnu.org.
>
> Please do not send mail to help-debbugs@gnu.org unless you wish
> to report a problem with the Bug-tracking system.
>
> --
> 37170: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=37170
> GNU Bug Tracking System
> Contact help-debbugs@gnu.org with problems

[-- Attachment #2: 0001-gnu-Add-opencsg.patch --]
[-- Type: text/x-patch, Size: 2613 bytes --]

From 76a898ef18a9d2cee77bbb1bae3fc1878d6bd1c3 Mon Sep 17 00:00:00 2001
From: Steve Sprang <scs@stevesprang.com>
Date: Fri, 23 Aug 2019 15:38:42 -0700
Subject: [PATCH] gnu: Add opencsg.

* gnu/packages/graphics.scm (opencsg): New variable.
---
 gnu/packages/graphics.scm | 41 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index ee56dae54e..1f1871d4ed 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -13,6 +13,7 @@
 ;;; Copyright © 2018 Kei Kebreau <kkebreau@posteo.net>
 ;;; Copyright © 2019 Mark H Weaver <mhw@netris.org>
 ;;; Copyright © 2019 Carlo Zancanaro <carlo@zancanaro.id.au>
+;;; Copyright © 2019 Steve Sprang <scs@stevesprang.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1018,3 +1019,43 @@ requirements.")
 performance subdivision surface (subdiv) evaluation on massively parallel CPU
 and GPU architectures.")
     (license license:asl2.0)))
+
+(define-public opencsg
+  (let ((dot-to-dash (lambda (c) (if (char=? c #\.) #\- c))))
+    (package
+      (name "opencsg")
+      (version "1.4.2")
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/floriankirsch/OpenCSG.git")
+               (commit (string-append "opencsg-"
+                                      (string-map dot-to-dash version)
+                                      "-release"))))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "00m4vs6jn3scqczscc4591l1d6zg6anqp9v1ldf9ymf70rdyvm7m"))))
+      (build-system gnu-build-system)
+      (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           (replace 'configure
+             (lambda* (#:key outputs #:allow-other-keys)
+               (substitute* "src/Makefile"
+                 (("/usr/local") (assoc-ref outputs "out")))
+               #t))
+           (add-before 'build 'skip-example
+             (lambda _ (chdir "src") #t)))))
+      (inputs
+       `(("glew" ,glew)
+         ("freeglut" ,freeglut)))
+      (synopsis "Library for rendering Constructive Solid Geometry (CSG)")
+      (description
+       "OpenCSG is a library for rendering Constructive Solid Geometry (CSG) using
+OpenGL.  CSG is an approach for modeling complex 3D-shapes using simpler ones.
+For example, two shapes can be combined by uniting them, by intersecting them,
+or by subtracting one shape from the other.")
+      (home-page "http://www.opencsg.org/")
+      (license license:gpl2))))
-- 
2.23.0


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

* bug#37170: Acknowledgement ([PATCH] gnu: Add opencsg.)
  2019-08-29 20:44   ` [bug#37170] Acknowledgement ([PATCH] gnu: Add opencsg.) Steve Sprang
@ 2019-09-10 21:25     ` Ludovic Courtès
  0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2019-09-10 21:25 UTC (permalink / raw)
  To: Steve Sprang; +Cc: 37170-done

Hi Steve,

Steve Sprang <steve.sprang@gmail.com> skribis:

> From 76a898ef18a9d2cee77bbb1bae3fc1878d6bd1c3 Mon Sep 17 00:00:00 2001
> From: Steve Sprang <scs@stevesprang.com>
> Date: Fri, 23 Aug 2019 15:38:42 -0700
> Subject: [PATCH] gnu: Add opencsg.
>
> * gnu/packages/graphics.scm (opencsg): New variable.

Applied, sorry for the delay!

Ludo’.

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

end of thread, other threads:[~2019-09-10 21:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-24  0:25 [bug#37170] [PATCH] gnu: Add opencsg Steve Sprang
     [not found] ` <handler.37170.B.15666063471580.ack@debbugs.gnu.org>
2019-08-29 20:44   ` [bug#37170] Acknowledgement ([PATCH] gnu: Add opencsg.) Steve Sprang
2019-09-10 21:25     ` bug#37170: " Ludovic Courtès

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).