Subject: [PATCH v3 3/5] gnu: Add taglib-extras.

From: Sughosha <[email-masked]>
Date: Sat, 1 Feb 2025 21:34:39 +0530

* gnu/packages/mp3.scm (taglib-extras): New variable.

Change-Id: I6b4ad693001c89e576fadbb02d981d43f7d568ab
---
 gnu/packages/mp3.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/mp3.scm b/gnu/packages/mp3.scm
index 9dfce6313f..2c54ba978f 100644
--- a/gnu/packages/mp3.scm
+++ b/gnu/packages/mp3.scm
@@ -63,6 +63,7 @@ (define-module (gnu packages mp3)
   #:use-module (guix packages)
   #:use-module (guix download)
   #:use-module (guix git-download)
+  #:use-module (guix svn-download)
   #:use-module (guix utils)
   #:use-module (guix build-system copy)
   #:use-module (guix build-system gnu)
@@ -278,6 +279,34 @@ (define-public taglib
     ;; Dual-licensed: user may choose between LGPLv2.1 or MPLv1.1.
     (license (list license:lgpl2.1 license:mpl1.1))))
 
+(define-public taglib-extras
+  (package
+    (name "taglib-extras")
+    ;; 2 changes after mentioning version 1.0.2 in ChangeLog, which fixes
+    ;; finding taglib.
+    (version "1.0.2-2")
+    (source
+     (origin
+       (method svn-fetch)
+       (uri
+        (svn-reference
+          (url "svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib-extras")
+          (revision 1444333)))
+       (file-name (string-append name "-" version "-checkout"))
+       (sha256
+        (base32
+         "1qsima3ln6j63mzdp5y1yjaijxvk3wnriwld5ijdp1xv1dx4hqjc"))))
+    (build-system cmake-build-system)
+    (inputs
+     (list taglib))
+    (arguments
+     (list #:tests? #f)) ;no test suite
+    (home-page "https://websvn.kde.org/trunk/kdesupport/taglib-extras")
+    (synopsis "Additional TagLib plugins")
+    (description
+     "This package provides TagLib plugins for Audible and RealMedia tags.")
+    (license (list license:lgpl2.1+ license:gpl2+))))
+
 (define-public minimp3
   ;; The latest commit is used as there is no release.
   (let ((commit   "afb604c06bc8beb145fecd42c0ceb5bda8795144")
-- 
2.47.1