guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#26933: [PATCH 2/3] gnu: video: add libmediainfo


From: Ethan R. Jones
Subject: bug#26933: [PATCH 2/3] gnu: video: add libmediainfo
Date: Sun, 14 May 2017 22:57:00 -0400

---
 gnu/packages/video.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 1eaba0dd5..d04bfab96 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -2101,3 +2101,49 @@ practically any type of media.")
     (description "Shared library for libmediainfo and mediainfo.")
     (license license:bsd-2)))
 
+(define-public libmediainfo
+  (package
+    (name "libmediainfo")
+    (version "0.7.95")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://mediaarea.net/download/source/";
+                                  name
+                                  "/"
+                                  version
+                                  "/"
+                                  name
+                                  "_"
+                                  version
+                                  ".tar.bz2"))
+              (file-name (string-append name "-" version ".tar.bz2"))
+              (sha256
+               (base32
+                "1kchh6285b07z5nixv619hc9gml2ysdayicdiv30frrlqiyxqw4b"))))
+    (native-inputs
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("libtool" ,libtool)
+       ("pkg-config" ,pkg-config)
+       ("zlib" ,zlib)
+       ("tinyxml2" ,tinyxml2)
+       ("curl" ,curl)
+       ("libzen" ,libzen)))
+    (build-system gnu-build-system)
+    (arguments
+     '(#:tests? #f ; test currently requires an external video file
+       #:phases
+       ;; build scripts not in root of archive
+       (modify-phases %standard-phases
+         (add-before
+             'configure 'pre-configure
+           (lambda _
+             (chdir "Project/GNU/Library")))
+         (add-before 'configure 'autogen
+           (lambda _
+             (zero? (system* "./autogen.sh")))))))
+    (home-page "https://mediaarea.net/en/MediaInfo";)
+    (synopsis "Library for mediainfo")
+    (description "Shared library for mediainfo.")
+    (license license:bsd-2)))
+
-- 
2.13.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]