From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: Re: [PATCH 1/2] gnu: Add sdl-union. Date: Sat, 08 Nov 2014 21:11:14 -0500 Message-ID: <87mw81nmwt.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: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnHyN-0005ZY-M8 for guix-devel@gnu.org; Sat, 08 Nov 2014 21:11:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XnHyH-0005zS-U4 for guix-devel@gnu.org; Sat, 08 Nov 2014 21:11:23 -0500 Received: from na3sys009aog109.obsmtp.com ([74.125.149.201]:55683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnHyH-0005zO-Lc for guix-devel@gnu.org; Sat, 08 Nov 2014 21:11:17 -0500 Received: by mail-qc0-f176.google.com with SMTP id x3so4359898qcv.35 for ; Sat, 08 Nov 2014 18:11:16 -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 w8sm12144709qag.2.2014.11.08.18.11.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Nov 2014 18:11:15 -0800 (PST) In-Reply-To: <8761exwmnv.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> 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 --=-=-= Content-Type: text/plain New patch! --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-Add-sdl-union.patch >From 6b119f2ab64f84ff03d1ddf9a1b3c715a3b17e9f Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 2 Nov 2014 11:54:20 -0500 Subject: [PATCH 1/2] gnu: Add sdl-union. * gnu/packages/sdl.scm (sdl-union): New variable. --- gnu/packages/sdl.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm index a4dbe7d..609088b 100644 --- a/gnu/packages/sdl.scm +++ b/gnu/packages/sdl.scm @@ -22,6 +22,7 @@ #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system gnu) + #:use-module (guix build-system trivial) #:use-module ((gnu packages fontutils) #:prefix font:) #:use-module (gnu packages image) #:use-module (gnu packages linux) @@ -240,3 +241,31 @@ SDL.") (description "SDL_ttf is a TrueType font rendering library for SDL.") (home-page "http://www.libsdl.org/projects/SDL_ttf/") (license zlib))) + +(define sdl-union + (package + (name "sdl-union") + (version (package-version sdl)) + (source #f) + (build-system trivial-build-system) + (arguments + '(#:modules ((guix build union)) + #:builder (begin + (use-modules (ice-9 match) + (guix build union)) + (match %build-inputs + (((names . directories) ...) + (union-build (assoc-ref %outputs "out") + directories)))))) + (inputs `(("sdl" ,sdl) + ("sdl-gfx" ,sdl-gfx) + ("sdl-image" ,sdl-image) + ("sdl-mixer" ,sdl-mixer) + ("sdl-ttf" ,sdl-ttf))) + (synopsis "Union of all SDL libraries.") + (description + "A union of SDL and its extension libraries. A union is required because +sdl-config assumes that all of the headers and libraries are in the same +directory.") + (home-page (package-home-page sdl)) + (license (package-license sdl)))) -- 2.1.1 --=-=-= Content-Type: text/plain -- David Thompson Web Developer - Free Software Foundation - http://fsf.org GPG Key: 0FF1D807 Support the FSF: https://fsf.org/donate --=-=-=--