From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:33765) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igWLO-0005hL-9y for guix-patches@gnu.org; Sun, 15 Dec 2019 11:02:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igWLK-00014H-Bv for guix-patches@gnu.org; Sun, 15 Dec 2019 11:02:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:59322) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1igWLK-00013T-72 for guix-patches@gnu.org; Sun, 15 Dec 2019 11:02:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1igWLK-0004nY-5h for guix-patches@gnu.org; Sun, 15 Dec 2019 11:02:02 -0500 Subject: [bug#38623] [PATCH 2/3] gnu: Add mojoshader-cs. Resent-Message-ID: From: Pierre Neidhardt Date: Sun, 15 Dec 2019 17:01:19 +0100 Message-Id: <20191215160120.25948-2-mail@ambrevar.xyz> In-Reply-To: <20191215160120.25948-1-mail@ambrevar.xyz> References: <20191215160120.25948-1-mail@ambrevar.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 38623@debbugs.gnu.org * gnu/packages/gl.scm (mojoshader-cs): New variable. --- gnu/packages/gl.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm index 63e12efe06..dc6b003c5d 100644 --- a/gnu/packages/gl.scm +++ b/gnu/packages/gl.scm @@ -42,6 +42,7 @@ #:use-module (gnu packages image) #:use-module (gnu packages linux) #:use-module (gnu packages llvm) + #:use-module (gnu packages mono) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) @@ -889,3 +890,39 @@ the shaders at runtime.") (description "This is the last version of the mojoshader library with the glProgramViewportFlip before it was replaced with glProgramViewportInfo.") (license license:zlib)))) + +(define-public mojoshader-cs + (let ((commit "10d0dba21ff1cfe332eb7de328a2adce01286bd7")) + (package + (name "mojoshader-cs") + (version (git-version "20191205" "1" commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/FNA-XNA/MojoShader") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "11mdhf3fmb9rsn2iv753gmb596j4dh5j2iipgw078vg0lj23rml7")))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f ; No tests. + #:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda _ + (invoke "make" "-C" "csharp"))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (install-file "csharp/bin/MojoShader-CS.dll" (string-append out "/lib")) + #t)))))) + (native-inputs + `(("mono" ,mono))) + (home-page "https://github.com/FNA-XNA/MojoShader") + (synopsis "C# wrapper for MojoShader") + (description + "This is an hg->git mirror of MojoShader, with MojoShader# added for FNA.") + (license license:zlib)))) -- 2.23.0