[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
52/100: gnu: Add ccextractor.
From: |
guix-commits |
Subject: |
52/100: gnu: Add ccextractor. |
Date: |
Wed, 8 Jul 2020 03:36:47 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 4f5623b2202b776e98edaae0c369a6100ff34456
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Mon Jun 29 01:58:27 2020 -0400
gnu: Add ccextractor.
* gnu/packages/gstreamer.scm (ccextractor): New variable.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/gstreamer.scm | 54 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/gnu/packages/gstreamer.scm b/gnu/packages/gstreamer.scm
index 8b62894..b06dcbd 100644
--- a/gnu/packages/gstreamer.scm
+++ b/gnu/packages/gstreamer.scm
@@ -30,6 +30,7 @@
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
+ #:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (guix build-system meson)
#:use-module (guix utils)
@@ -63,6 +64,7 @@
#:use-module (gnu packages multiprecision)
#:use-module (gnu packages ncurses)
#:use-module (gnu packages networking)
+ #:use-module (gnu packages ocr)
#:use-module (gnu packages perl)
#:use-module (gnu packages pulseaudio)
#:use-module (gnu packages qt)
@@ -81,6 +83,58 @@
#:use-module (gnu packages assembly)
#:use-module (gnu packages xml))
+(define-public ccextractor
+ (package
+ (name "ccextractor")
+ (version "0.88")
+ (source
+ (origin
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "https://github.com/CCExtractor/ccextractor.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1sya45hvv4d46bk7541yimmafgvgyhkpsvwfz9kv6pm4yi1lz6nb"))))
+ (build-system cmake-build-system)
+ (arguments
+ `(#:tests? #f ; No target
+ #:configure-flags
+ (list
+ "-DWITH_FFMPEG=ON"
+ "-DWITH_OCR=ON"
+ "-DWITH_SHARING=ON"
+ "-DWITH_HARDSUBX=ON")
+ #:phases
+ (modify-phases %standard-phases
+ ;; The package is in a sub-dir of this repo.
+ (add-after 'unpack 'chdir
+ (lambda _
+ (chdir "src")
+ #t))
+ (add-after 'chdir 'fix-build-errors
+ (lambda _
+ (substitute* "CMakeLists.txt"
+ (("libnanomsg")
+ "nanomsg"))
+ #t)))))
+ (native-inputs
+ `(("perl" ,perl)
+ ("pkg-config" ,pkg-config)
+ ("python" ,python-wrapper)))
+ (inputs
+ `(("ffmeg" ,ffmpeg-3.4)
+ ("nanomsg" ,nanomsg)
+ ("ocr" ,tesseract-ocr)
+ ("zlib" ,zlib)))
+ (synopsis "Closed Caption Extractor")
+ (description "CCExtractor is a tool that analyzes video files and produces
+independent subtitle files from the closed captions data. It is portable,
small,
+and very fast.")
+ (home-page "https://www.ccextractor.org/")
+ (license license:gpl2+)))
+
(define-public libvisual
(package
(name "libvisual")
- 33/100: gnu: Add sysprof., (continued)
- 33/100: gnu: Add sysprof., guix-commits, 2020/07/08
- 34/100: gnu: gjs: Update to 1.58.8., guix-commits, 2020/07/08
- 41/100: gnu: glib: Update package definition., guix-commits, 2020/07/08
- 43/100: gnu: glib-networking: Update to 2.64.3., guix-commits, 2020/07/08
- 37/100: gnu: graphene: Update package definition., guix-commits, 2020/07/08
- 38/100: gnu: gsettings-desktop-schemas: Update package definition., guix-commits, 2020/07/08
- 46/100: gnu: Add libvisual., guix-commits, 2020/07/08
- 40/100: gnu: faad2: Update to 2.8.8., guix-commits, 2020/07/08
- 45/100: gnu: gstreamer: Update package definition., guix-commits, 2020/07/08
- 51/100: gnu: Add nng., guix-commits, 2020/07/08
- 52/100: gnu: Add ccextractor.,
guix-commits <=
- 50/100: gnu: Add nanomsg., guix-commits, 2020/07/08
- 42/100: gnu: glib-with-documentation: Update package definition., guix-commits, 2020/07/08
- 47/100: gnu: Add libvisual-plugins., guix-commits, 2020/07/08
- 54/100: gnu: Add ruby-slim., guix-commits, 2020/07/08
- 64/100: gnu: Add libde265., guix-commits, 2020/07/08
- 59/100: gnu: Add directfb., guix-commits, 2020/07/08
- 62/100: gnu: Add ffmpeg-2.8., guix-commits, 2020/07/08
- 69/100: gnu: Add libofa., guix-commits, 2020/07/08
- 70/100: gnu: Add libopenmpt., guix-commits, 2020/07/08
- 72/100: gnu: Add lksctp-tools., guix-commits, 2020/07/08