all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#38950] [PATCH] Add chipmunk2d
@ 2020-01-05 17:54 Nicolas Goaziou
  2020-01-17 13:03 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2020-01-05 17:54 UTC (permalink / raw)
  To: 38950

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

Hello,

The following patch adds Chipmunk2D.

Feedback welcome.

Regards,

-- 
Nicolas Goaziou

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Add chipmunk2d --]
[-- Type: text/x-diff, Size: 1822 bytes --]

From b1d239f57cf870fa525d2429069ec60993af1b4c Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Date: Sun, 5 Jan 2020 18:52:49 +0100
Subject: [PATCH] gnu: Add chipmunk2d.

* gnu/packages/game-development.scm (chipmunk2d): New variable.
---
 gnu/packages/game-development.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index 7aef6b09d2..58623c4a4a 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -2029,3 +2029,31 @@ environments and virtual creatures.  It is currently used in many
 computer games, 3D authoring tools and simulation tools.")
     ;; Software is dual-licensed.
     (license (list license:lgpl2.1+ license:expat))))
+
+(define-public chipmunk2d
+  (package
+    (name "chipmunk2d")
+    (version "7.0.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/slembcke/Chipmunk2D.git")
+             (commit (string-append "Chipmunk-" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1qmkn01g06p3rnhmbyffmjns6wj5vhgf9cscigk3wzxcpwv1hyxb"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:tests? #f                      ;no test
+       #:configure-flags '("-DBUILD_STATIC=OFF"
+                           "-DBUILD_DEMOS=OFF")))
+    (inputs
+     `(("freeglut" ,freeglut)
+       ("libxmu" ,libxmu)
+       ("libxrandr" ,libxrandr)))
+    (home-page "http://chipmunk2d.net/")
+    (synopsis "Fast and lightweight 2D game physics library")
+    (description "Chipmunk2D is a simple, lightweight, fast and
+portable 2D rigid body physics library written in C.")
+    (license license:expat)))
-- 
2.24.1


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

* [bug#38950] [PATCH] Add chipmunk2d
  2020-01-05 17:54 [bug#38950] [PATCH] Add chipmunk2d Nicolas Goaziou
@ 2020-01-17 13:03 ` Ludovic Courtès
  2020-01-17 20:19   ` bug#38950: " Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2020-01-17 13:03 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 38950

Hello,

Nicolas Goaziou <mail@nicolasgoaziou.fr> skribis:

>>From b1d239f57cf870fa525d2429069ec60993af1b4c Mon Sep 17 00:00:00 2001
> From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
> Date: Sun, 5 Jan 2020 18:52:49 +0100
> Subject: [PATCH] gnu: Add chipmunk2d.
>
> * gnu/packages/game-development.scm (chipmunk2d): New variable.

LGTM, thanks!

Ludo’.

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

* bug#38950: [PATCH] Add chipmunk2d
  2020-01-17 13:03 ` Ludovic Courtès
@ 2020-01-17 20:19   ` Nicolas Goaziou
  0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2020-01-17 20:19 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 38950-done

Hello,

Ludovic Courtès <ludo@gnu.org> writes:

> Hello,
>
> Nicolas Goaziou <mail@nicolasgoaziou.fr> skribis:
>
>>>From b1d239f57cf870fa525d2429069ec60993af1b4c Mon Sep 17 00:00:00 2001
>> From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
>> Date: Sun, 5 Jan 2020 18:52:49 +0100
>> Subject: [PATCH] gnu: Add chipmunk2d.
>>
>> * gnu/packages/game-development.scm (chipmunk2d): New variable.
>
> LGTM, thanks!

I changed the name to "chipmunk", as upstream uses both names, and every
distribution I could check uses this instead of "chipmunk2d".

I then applied the patch as d6ab5f4fa71a965c4e0dffd5eecb7a4345c9c89f.

Thank you for the review.

Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2020-01-17 20:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-05 17:54 [bug#38950] [PATCH] Add chipmunk2d Nicolas Goaziou
2020-01-17 13:03 ` Ludovic Courtès
2020-01-17 20:19   ` bug#38950: " Nicolas Goaziou

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.