Re: [PATCH] gnu: Add guile-opengl

2014-06-26 Thread Mark H Weaver
David Thompson writes: > + (lambda* (#:key inputs outputs #:allow-other-keys) > + (define (dynamic-link-substitute file lib input) > + (substitute* file > + (("dynamic-link \"lib([a-zA-Z]+)\"" _ lib) > +

Re: [PATCH] gnu: Add guile-opengl

2014-06-26 Thread Ludovic Courtès
David Thompson skribis: > From 4e63b47f868f5eab5573e8e70c40f23545f3645a Mon Sep 17 00:00:00 2001 > From: David Thompson > Date: Tue, 24 Jun 2014 21:59:47 -0400 > Subject: [PATCH] gnu: Add guile-opengl. > > * gnu/packages/gl.scm (guile-opengl): New variable. Looks good to me, please push. Ludo’.

Re: [PATCH] gnu: Add guile-opengl

2014-06-25 Thread David Thompson
it work to do something like: > > (substitute* file > (("dynamic-link \"lib[a-zA-Z]+\" _ libname) > (string-append ...))) > > ? > Yes, that's better. Updated patch attached. >From 4e63b47f868f5eab5573e8e70c40f23545f3645a Mon Sep 17 00:

Re: [PATCH] gnu: Add guile-opengl

2014-06-25 Thread Ludovic Courtès
David Thompson skribis: > Finally got around to finishing up this package. I ran the example > programs shipped with guile-opengl and confirmed that they work as > expected. :) > > How does it look? Looks good to me! One comment: > + (define (dynamic-link-substitute file lib

[PATCH] gnu: Add guile-opengl

2014-06-24 Thread David Thompson
:47 -0400 Subject: [PATCH] gnu: Add guile-opengl. * gnu/packages/gl.scm (guile-opengl): New variable. --- gnu/packages/gl.scm | 43 ++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm index 2741595..d314