summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-11-25 12:15:06 +0100
committerLudovic Courtès <ludo@gnu.org>2014-11-25 18:01:59 +0100
commit68ff528c75e7624f2c8e542b32398704d8db7d32 (patch)
treedc82550827cb20c8d9c793a8764024a8c4cfe3c4
parent2cdda52b1af41112a3344fb5fa2d646cfca05e75 (diff)
gnu: Add mp3info.
* gnu/packages/mp3.scm (mp3info): New variable.
-rw-r--r--gnu/packages/mp3.scm61
1 files changed, 61 insertions, 0 deletions
diff --git a/gnu/packages/mp3.scm b/gnu/packages/mp3.scm
index 54b81955d98..bb0549ea642 100644
--- a/gnu/packages/mp3.scm
+++ b/gnu/packages/mp3.scm
@@ -1,5 +1,6 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Andreas Enge <andreas@enge.fr> 2;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
3;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
3;;; 4;;;
4;;; This file is part of GNU Guix. 5;;; This file is part of GNU Guix.
5;;; 6;;;
@@ -24,6 +25,7 @@
24 #:use-module (gnu packages compression) 25 #:use-module (gnu packages compression)
25 #:use-module (gnu packages gettext) 26 #:use-module (gnu packages gettext)
26 #:use-module (gnu packages ghostscript) 27 #:use-module (gnu packages ghostscript)
28 #:use-module (gnu packages ncurses)
27 #:use-module (gnu packages glib) 29 #:use-module (gnu packages glib)
28 #:use-module (gnu packages gtk) 30 #:use-module (gnu packages gtk)
29 #:use-module (gnu packages pcre) 31 #:use-module (gnu packages pcre)
@@ -129,6 +131,65 @@ a highly stable and efficient implementation.")
129 (license license:lgpl2.0+) 131 (license license:lgpl2.0+)
130 (home-page "http://id3lib.sourceforge.net/"))) 132 (home-page "http://id3lib.sourceforge.net/")))
131 133
134(define-public mp3info
135 (package
136 (name "mp3info")
137 (version "0.8.5a")
138 (source (origin
139 (method url-fetch)
140 (uri (string-append
141 "ftp://ftp.ibiblio.org/pub/linux/apps/sound/mp3-utils/mp3info/mp3info-"
142 version ".tgz"))
143 (sha256
144 (base32
145 "042f1czcs9n2sbqvg4rsvfwlqib2gk976mfa2kxlfjghx5laqf04"))
146 (modules '((guix build utils)))
147 (snippet
148 '(substitute* "Makefile"
149 (("/bin/rm") "rm")
150 (("/usr/bin/install") "install")
151 (("man/man1") "share/man/man1")))))
152 (build-system gnu-build-system)
153 (outputs '("out" "gui")) ;GTK+ interface in "gui"
154 (arguments
155 '(#:phases (alist-replace
156 'configure
157 (lambda* (#:key outputs #:allow-other-keys)
158 (let ((out (assoc-ref outputs "out")))
159 (substitute* "Makefile"
160 (("prefix=.*")
161 (string-append "prefix := " out "\n")))))
162 (alist-cons-before
163 'install 'pre-install
164 (lambda* (#:key outputs #:allow-other-keys)
165 (let ((out (assoc-ref outputs "out")))
166 (mkdir-p (string-append out "/bin"))
167 (mkdir-p (string-append out "/share/man/man1"))))
168 (alist-cons-after
169 'install 'post-install
170 (lambda* (#:key outputs #:allow-other-keys)
171 ;; Move the GTK+ interface to "gui".
172 (let ((out (assoc-ref outputs "out"))
173 (gui (assoc-ref outputs "gui")))
174 (mkdir-p (string-append gui "/bin"))
175 (rename-file (string-append out "/bin/gmp3info")
176 (string-append gui "/bin/gmp3info"))))
177 %standard-phases)))
178 #:tests? #f))
179 (native-inputs
180 `(("pkg-config" ,pkg-config)))
181 (inputs
182 `(("gtk+" ,gtk+-2)
183 ("ncurses" ,ncurses)))
184 (home-page "http://www.ibiblio.org/mp3info/")
185 (synopsis "MP3 technical info viewer and ID3 1.x tag editor")
186 (description
187 "MP3Info is a little utility used to read and modify the ID3 tags of MP3
188files. MP3Info can also display various techincal aspects of an MP3 file
189including playing time, bit-rate, sampling frequency and other attributes in a
190pre-defined or user-specifiable output format.")
191 (license license:gpl2+)))
192
132(define-public libmp3splt 193(define-public libmp3splt
133 (package 194 (package
134 (name "libmp3splt") 195 (name "libmp3splt")