From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: [PATCH 2/2] gnu: Add guile-sdl. Date: Sun, 02 Nov 2014 12:14:22 -0500 Message-ID: <8738a1wmmp.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> References: <878ujtwmpn.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <8761exwmnv.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/x-diff Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkyjY-0007SB-K2 for guix-devel@gnu.org; Sun, 02 Nov 2014 12:14:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkyjS-0006s3-DS for guix-devel@gnu.org; Sun, 02 Nov 2014 12:14:32 -0500 Received: from na3sys009aog138.obsmtp.com ([74.125.149.19]:51800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkyjS-0006rx-5X for guix-devel@gnu.org; Sun, 02 Nov 2014 12:14:26 -0500 Received: by mail-qc0-f180.google.com with SMTP id o8so7887758qcw.25 for ; Sun, 02 Nov 2014 09:14:25 -0800 (PST) Received: from izanagi (209-6-40-86.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com. [209.6.40.86]) by mx.google.com with ESMTPSA id n10sm14730997qax.40.2014.11.02.09.14.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Nov 2014 09:14:23 -0800 (PST) In-Reply-To: <8761exwmnv.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> Content-Disposition: inline; filename=0002-gnu-Add-guile-sdl.patch List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org >From bde00797a13304f69e61b1cd87033b75a6174bba Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 2 Nov 2014 11:55:21 -0500 Subject: [PATCH 2/2] gnu: Add guile-sdl. * gnu/packages/sdl.scm (guile-sdl): New variable. --- gnu/packages/sdl.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm index fc374c0..8f78b90 100644 --- a/gnu/packages/sdl.scm +++ b/gnu/packages/sdl.scm @@ -24,6 +24,7 @@ #:use-module (guix build-system gnu) #:use-module (guix build-system trivial) #:use-module ((gnu packages fontutils) #:prefix font:) + #:use-module (gnu packages guile) #:use-module (gnu packages image) #:use-module (gnu packages linux) #:use-module (gnu packages mp3) @@ -266,3 +267,37 @@ SDL.") (description "Union of all SDL libraries.") (home-page (package-home-page sdl)) (license (package-license sdl)))) + +(define-public guile-sdl + (package + (name "guile-sdl") + (version "0.5.1") + (source (origin + (method url-fetch) + (uri + (string-append "mirror://gnu/guile-sdl/guile-sdl-" + version ".tar.xz")) + (sha256 + (base32 + "126n4rd0ydh6i2s11ari5k85iivradlf12zq13b34shf9k1wn5am")))) + (build-system gnu-build-system) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("guile" ,guile-2.0) + ("sdl-union" ,sdl-union))) + (arguments + '(#:configure-flags + (list (string-append "--with-sdl-prefix=" + (assoc-ref %build-inputs "sdl-union"))) + #:phases + (alist-cons-before + 'configure 'disable-guile-auto-compile + (lambda _ + (setenv "GUILE_AUTO_COMPILE" "0")) + %standard-phases))) + (synopsis "SDL bindings for GNU Guile.") + (description "Guile-SDL is a set of modules that provide bindings for SDL +to enable Guile programmers to do all the nice things you can do with SDL.") + (home-page "http://gnu.org/s/guile-sdl") + (license gpl3+))) -- 2.1.1