From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: [PATCH] gnu: Add sox. Date: Tue, 14 Jul 2015 19:08:11 +0300 Message-ID: <87d1zuhgd0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZF2km-0007fJ-O5 for guix-devel@gnu.org; Tue, 14 Jul 2015 12:08:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZF2kh-0006Hs-2D for guix-devel@gnu.org; Tue, 14 Jul 2015 12:08:19 -0400 Received: from mail-lb0-x22d.google.com ([2a00:1450:4010:c04::22d]:36203) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZF2kg-0006Hk-PG for guix-devel@gnu.org; Tue, 14 Jul 2015 12:08:14 -0400 Received: by lbbpo10 with SMTP id po10so9044931lbb.3 for ; Tue, 14 Jul 2015 09:08:13 -0700 (PDT) Received: from leviafan ([217.107.192.146]) by smtp.gmail.com with ESMTPSA id k9sm381119lbp.13.2015.07.14.09.08.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Jul 2015 09:08:12 -0700 (PDT) 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 Is "audio.scm" the right place for this package? BTW there is "audacity.scm"; shouldn't 'audacity' package be moved to "audio.scm" as well? --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-sox.patch Content-Transfer-Encoding: quoted-printable >From cbbebb51841f073a64a83d5c56e92333d1b743fe Mon Sep 17 00:00:00 2001 From: Alex Kost Date: Mon, 13 Jul 2015 19:15:07 +0300 Subject: [PATCH] gnu: Add sox. * gnu/packages/audio.scm (sox): New variable. --- gnu/packages/audio.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm index ff6fb46..0af1661 100644 --- a/gnu/packages/audio.scm +++ b/gnu/packages/audio.scm @@ -2,6 +2,7 @@ ;;; Copyright =C2=A9 2015 Ricardo Wurmus ;;; Copyright =C2=A9 2015 Taylan Ulrich Bay=C4=B1rl=C4=B1/Kammer ;;; Copyright =C2=A9 2015 Andreas Enge +;;; Copyright =C2=A9 2015 Alex Kost ;;; ;;; This file is part of GNU Guix. ;;; @@ -45,6 +46,7 @@ #:use-module (gnu packages gtk) #:use-module (gnu packages gnome) #:use-module (gnu packages gperf) + #:use-module (gnu packages image) #:use-module (gnu packages ncurses) #:use-module (gnu packages qt) #:use-module (gnu packages linux) @@ -1518,6 +1520,47 @@ application developers writing sound processing tool= s that require tempo/pitch control functionality, or just for playing around with the sound effects.") (license license:lgpl2.1+))) =20 +(define-public sox + (package + (name "sox") + (version "14.4.2") + (source (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/sox/sox-" + version ".tar.bz2")) + (sha256 + (base32 + "170lx90r1nlnb2j6lg00524iwvqy72p48vii4xc5prrh8dnrb9l1")))) + (build-system gnu-build-system) + (arguments + '(#:configure-flags + ;; The upstream asks to identify the distribution to diagnose SoX + ;; bug reports. + '("--with-distro=3DGuix System Distribution"))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("alsa-lib" ,alsa-lib) + ("ao" ,ao) + ("flac" ,flac) + ("lame" ,lame) + ("libid3tag" ,libid3tag) + ("libltdl" ,libltdl) + ("libmad" ,libmad) + ("libpng" ,libpng) + ("libvorbis" ,libvorbis) + ("pulseaudio" ,pulseaudio))) + (home-page "http://sox.sourceforge.net") + (synopsis "Sound processing utility") + (description + "SoX (Sound eXchange) is a command line utility that can convert +various formats of computer audio files to other formats. It can also +apply various effects to these sound files, and, as an added bonus, SoX +can play and record audio files.") + ;; sox.c is distributed under GPL, while the files that make up + ;; libsox are licensed under LGPL. + (license (list license:gpl2+ license:lgpl2.1+)))) + (define-public soxr (package (name "soxr") --=20 2.4.3 --=-=-=--