From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dA6D0-0002NJ-RM for guix-patches@gnu.org; Sun, 14 May 2017 22:58:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dA6Cy-0000rt-B7 for guix-patches@gnu.org; Sun, 14 May 2017 22:58:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:42681) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dA6Cy-0000rd-8P for guix-patches@gnu.org; Sun, 14 May 2017 22:58:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dA6Cy-0006IO-2W for guix-patches@gnu.org; Sun, 14 May 2017 22:58:04 -0400 Subject: bug#26935: [PATCH 3/3] gnu: video: add mediainfo Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dA6CO-0002Bu-QT for guix-patches@gnu.org; Sun, 14 May 2017 22:57:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dA6CN-0000Ny-Pz for guix-patches@gnu.org; Sun, 14 May 2017 22:57:28 -0400 Received: from mail-yb0-x243.google.com ([2607:f8b0:4002:c09::243]:34662) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dA6CN-0000Nj-Ky for guix-patches@gnu.org; Sun, 14 May 2017 22:57:27 -0400 Received: by mail-yb0-x243.google.com with SMTP id l192so3707456ybl.1 for ; Sun, 14 May 2017 19:57:27 -0700 (PDT) From: "Ethan R. Jones" Date: Sun, 14 May 2017 22:57:01 -0400 Message-Id: <20170515025701.2492-3-doubleplusgood23@gmail.com> In-Reply-To: <20170515025701.2492-1-doubleplusgood23@gmail.com> References: <20170515025701.2492-1-doubleplusgood23@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 26935@debbugs.gnu.org Cc: "Ethan R. Jones" --- gnu/packages/video.scm | 56 +++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 51 insertions(+), 5 deletions(-) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index d04bfab96..b91874dad 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -1506,11 +1506,11 @@ format changes.") '(#:phases (modify-phases %standard-phases (add-before - 'configure 'pre-configure - (lambda _ - (chdir "build/generic") - (substitute* "configure" - (("#! /bin/sh") (string-append "#!" (which "sh"))))))) + 'configure 'pre-configure + (lambda _ + (chdir "build/generic") + (substitute* "configure" + (("#! /bin/sh") (string-append "#!" (which "sh"))))))) ;; No 'check' target. #:tests? #f)) (home-page "https://www.xvid.com/") @@ -2147,3 +2147,49 @@ practically any type of media.") (description "Shared library for mediainfo.") (license license:bsd-2))) +;; TODO also have a GUI version available +(define-public mediainfo + (package + (name "mediainfo") + (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 + "0dy51a3i79jppmg1gi4f6h7jx4hcgnkmfim4d7d3gmnlbkjh8anv")))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config) + ("zlib" ,zlib) + ("libmediainfo", libmediainfo) + ("libzen" ,libzen))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f ; lacks tests + #:phases + ;; build scripts not in root of archive + (modify-phases %standard-phases + (add-before + 'configure 'pre-configure + (lambda _ + (chdir "Project/GNU/CLI"))) + (add-before 'configure 'autogen + (lambda _ + (zero? (system* "./autogen.sh"))))))) + (home-page "https://mediaarea.net/en/MediaInfo") + (synopsis "Display media tags") + (description "MediaInfo is a convenient unified display of the most +relevant technical and tag data for video and audio files.") + (license license:bsd-2))) -- 2.13.0