unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: Guix-devel <guix-devel@gnu.org>
Subject: [PATCH] Add sfarklib & sfarkxtc
Date: Tue, 23 Jun 2015 21:26:56 +0200	[thread overview]
Message-ID: <87k2uuz0n3.fsf@elephly.net> (raw)

[-- Attachment #1: 0001-gnu-Add-sfarklib.patch --]
[-- Type: text/x-patch, Size: 2782 bytes --]

From bac01c1b64ed14fc1c26f35961f1c8fd29caabcb Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <rekado@elephly.net>
Date: Tue, 23 Jun 2015 21:25:19 +0200
Subject: [PATCH 1/2] gnu: Add sfarklib.

* gnu/packages/compression.scm (sfarklib): New variable.
---
 gnu/packages/compression.scm | 37 ++++++++++++++++++++++++++++++++++++-
 1 file changed, 36 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 78f967c..898d9c2 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -4,6 +4,7 @@
 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
 ;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org>
+;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -24,10 +25,12 @@
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system perl)
   #:use-module (gnu packages base)
-  #:use-module (gnu packages perl))
+  #:use-module (gnu packages perl)
+  #:use-module ((srfi srfi-1) #:select (last)))
 
 (define-public zlib
   (package
@@ -328,6 +331,38 @@ processed by a Bourne-type shell to unpack the original collection of files.
 This package is mostly for compatibility and historical interest.")
     (license license:gpl3+)))
 
+(define-public sfarklib
+  (package
+    (name "sfarklib")
+    (version "2.23.5ca96b779")
+    (source (origin
+              ;; The 2.23 tarball does not include the Makefile, but only
+              ;; Makefile.am.
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/raboof/sfArkLib.git")
+                    (commit (last (string-split version #\.)))))
+              (sha256
+               (base32
+                "1hk1x88dl5b9jq016r6rx5wyszxknyv0sa7gmil4m4alnhwl4h7h"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f ;no "check" target
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'configure
+                  (lambda* (#:key outputs #:allow-other-keys)
+                    (substitute* "Makefile"
+                      (("/usr/local") (assoc-ref outputs "out")))
+                    #t)))))
+    (inputs
+     `(("zlib" ,zlib)))
+    (home-page "https://github.com/raboof/sfArkLib")
+    (synopsis "Library for SoundFont decompression")
+    (description
+     "Library for decompressing SoundFonts compressed with sfArk.")
+    (license license:gpl3+)))
+
 (define-public libmspack
   (package
     (name "libmspack")
-- 
2.4.3


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0002-gnu-Add-sfarkxtc.patch --]
[-- Type: text/x-patch, Size: 2006 bytes --]

From 5618f7936ca27261265040dc59d2fba6ffbefd72 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <rekado@elephly.net>
Date: Tue, 23 Jun 2015 21:25:57 +0200
Subject: [PATCH 2/2] gnu: Add sfarkxtc.

* gnu/packages/compression.scm (sfarkxtc): New variable.
---
 gnu/packages/compression.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 898d9c2..1cf84a3 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -363,6 +363,39 @@ This package is mostly for compatibility and historical interest.")
      "Library for decompressing SoundFonts compressed with sfArk.")
     (license license:gpl3+)))
 
+(define-public sfarkxtc
+  (package
+    (name "sfarkxtc")
+    (version "b5e0a2ba39")
+    (source (origin
+              ;; There are no release tarballs, so we just fetch the latest
+              ;; commit at this time.
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/raboof/sfarkxtc.git")
+                    (commit version)))
+              (sha256
+               (base32
+                "0f5x6i46qfl6ry21s7g2p4sd4b2r1g4fb03yqi2vv4kq3saryhvj"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f ;no "check" target
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'configure
+                  (lambda* (#:key outputs #:allow-other-keys)
+                    (substitute* "Makefile"
+                      (("/usr/local") (assoc-ref outputs "out")))
+                    #t)))))
+    (inputs
+     `(("zlib" ,zlib)
+       ("sfarklib" ,sfarklib)))
+    (home-page "https://github.com/raboof/sfarkxtc")
+    (synopsis "Basic sfArk decompressor")
+    (description "SfArk extractor converts SoundFonts in the legacy sfArk v2
+file format to the sf2.")
+    (license license:gpl3+)))
+
 (define-public libmspack
   (package
     (name "libmspack")
-- 
2.4.3


             reply	other threads:[~2015-06-23 19:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-23 19:26 Ricardo Wurmus [this message]
2015-06-26 12:57 ` [PATCH] Add sfarklib & sfarkxtc Ludovic Courtès
2015-06-28 17:41   ` Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k2uuz0n3.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).