all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] Add sfarklib & sfarkxtc
@ 2015-06-23 19:26 Ricardo Wurmus
  2015-06-26 12:57 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Wurmus @ 2015-06-23 19:26 UTC (permalink / raw)
  To: Guix-devel

[-- 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Add sfarklib & sfarkxtc
  2015-06-23 19:26 [PATCH] Add sfarklib & sfarkxtc Ricardo Wurmus
@ 2015-06-26 12:57 ` Ludovic Courtès
  2015-06-28 17:41   ` Ricardo Wurmus
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2015-06-26 12:57 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: Guix-devel

Ricardo Wurmus <rekado@elephly.net> skribis:

> 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.

[...]

> +    (home-page "https://github.com/raboof/sfArkLib")
> +    (synopsis "Library for SoundFont decompression")
> +    (description
> +     "Library for decompressing SoundFonts compressed with sfArk.")

Try to add more details, like:

  SfArkLib is a $LANGUAGE library for decompressing $DATATYPE files in
  the SoundFont format compressed with the sfArk $KIND.

> 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.

[...]

> +    (description "SfArk extractor converts SoundFonts in the legacy sfArk v2
> +file format to the sf2.")

Likewise.

OK with these changes!

Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Add sfarklib & sfarkxtc
  2015-06-26 12:57 ` Ludovic Courtès
@ 2015-06-28 17:41   ` Ricardo Wurmus
  0 siblings, 0 replies; 3+ messages in thread
From: Ricardo Wurmus @ 2015-06-28 17:41 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Guix-devel

> OK with these changes!

Thanks for the review.  I updated the descriptions and pushed them.

~~ Ricardo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-06-28 17:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-23 19:26 [PATCH] Add sfarklib & sfarkxtc Ricardo Wurmus
2015-06-26 12:57 ` Ludovic Courtès
2015-06-28 17:41   ` Ricardo Wurmus

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.