diff options
author | Maxim Cournoyer <maxim@guixotic.coop> | 2025-07-22 13:03:13 +0900 |
---|---|---|
committer | Maxim Cournoyer <maxim@guixotic.coop> | 2025-07-22 13:04:57 +0900 |
commit | f9d368f345a5bc6d42686e2e7a23c4c430b9f060 (patch) | |
tree | 3829f4acfe9999c20ebe7cbab53993aac53a9399 /gnu/packages/gstreamer.scm | |
parent | 4b6110a6c3ebf0b60b56d6021d15593be18a8d04 (diff) |
gnu: ccextractor: Update to 0.94-0.81fdecd.
* gnu/packages/gstreamer.scm (ccextractor): Update to 0.94-0.81fdecd.
[source]: Delete patches.
[#:configure-flags]: Add LDFLAGS.
[native-inputs]: Replace autoconf with autoconf-2.72, leptonica-1.80
with leptonica and tesseract-ocr-4 with tesseract-ocr.
* gnu/packages/patches/ccextractor-add-missing-header.patch
* gnu/packages/patches/ccextractor-autoconf-tesseract.patch
* gnu/packages/patches/ccextractor-fix-ocr.patch: Delete files
* gnu/local.mk (dist_patch_DATA): De-register them.
Change-Id: Ice1336754bc5ddf77fee7c03a1336cd1c3543d4c
Diffstat (limited to 'gnu/packages/gstreamer.scm')
-rw-r--r-- | gnu/packages/gstreamer.scm | 100 |
1 files changed, 51 insertions, 49 deletions
diff --git a/gnu/packages/gstreamer.scm b/gnu/packages/gstreamer.scm index f31a1b6c27..e224d69c8b 100644 --- a/gnu/packages/gstreamer.scm +++ b/gnu/packages/gstreamer.scm @@ -10,7 +10,7 @@ ;;; Copyright © 2019, 2020 Marius Bakke <mbakke@fastmail.com> ;;; Copyright © 2020 Liliana Marie Prikler <liliana.prikler@gmail.com> ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de> -;;; Copyright © 2023, 2024 Maxim Cournoyer <maxim.cournoyer@gmail.com> +;;; Copyright © 2023-2025 Maxim Cournoyer <maxim@guixotic.coop> ;;; Copyright © 2024 Remco van 't Veer <remco@remworks.net> ;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org> ;;; @@ -172,56 +172,58 @@ module for the DMA capture of the video flow.") (license license:lgpl2.0+))) (define-public ccextractor - (package - (name "ccextractor") - (version "0.94") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/CCExtractor/ccextractor") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - ;; FIXME: Delete the 'src/thirdparty directory and unbundle the - ;; libraries it contains, such as freetype, libpng, zlib, and others. - (patches (search-patches "ccextractor-add-missing-header.patch" - "ccextractor-autoconf-tesseract.patch" - "ccextractor-fix-ocr.patch")) - (sha256 - (base32 "1hrk4xlzkvk9pnv0yr4whcsh8h4fzk42mrf30dsr3xzh1lgpfslg")))) - (build-system gnu-build-system) - (arguments - (list #:configure-flags - #~(list "--enable-ffmpeg" - "--enable-ocr" - "--enable-hardsubx" - ;; Disable Rust support, as there's no rust source included - ;; and cargo wants to fetch the crates from the network - ;; (see: - ;; https://github.com/CCExtractor/ccextractor/issues/1502). - "--without-rust") - #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'chdir - (lambda _ - (chdir "linux"))) - (add-after 'chdir 'patch-pre-build.sh - (lambda _ - (substitute* "pre-build.sh" - (("/usr/bin/env") (which "env"))))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - ;; There is no test suite; simply run the binary - ;; to validate there are no obvious problems. - (invoke "./ccextractor" "--help"))))))) - (native-inputs (list autoconf automake pkg-config)) - (inputs (list ffmpeg-3.4 leptonica-1.80 tesseract-ocr-4)) - (synopsis "Closed Caption Extractor") - (description "CCExtractor is a tool that analyzes video files and produces + (let ((commit "81fdecd5af683ff25b953339fdb0d84e141d60c1") + (revision "0")) + (package + (name "ccextractor") + (version (git-version "0.94" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/CCExtractor/ccextractor") + (commit commit))) + (file-name (git-file-name name version)) + ;; FIXME: Delete the 'src/thirdparty directory and unbundle the + ;; libraries it contains, such as freetype, libpng, zlib, and others. + (sha256 + (base32 "0rcig2zma4nrvlx90pkcy1spc1ha2ig0jixm2dnc0f04bzf2n00q")))) + (build-system gnu-build-system) + (arguments + (list #:configure-flags + #~(list "--enable-ffmpeg" + "--enable-ocr" + "--enable-hardsubx" + ;; Disable Rust support, as there's no rust source included + ;; and cargo wants to fetch the crates from the network + ;; (see: + ;; https://github.com/CCExtractor/ccextractor/issues/1502). + "--without-rust" + ;; Workaround the lack of a link directive to tesseract + ;; for the hardsubx module. + "LDFLAGS=-ltesseract") + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "linux"))) + (add-after 'chdir 'patch-pre-build.sh + (lambda _ + (substitute* "pre-build.sh" + (("/usr/bin/env") (which "env"))))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; There is no test suite; simply run the binary + ;; to validate there are no obvious problems. + (invoke "./ccextractor" "--help"))))))) + (native-inputs (list autoconf-2.72 automake pkg-config)) + (inputs (list ffmpeg gpac leptonica tesseract-ocr)) + (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+))) + (home-page "https://www.ccextractor.org/") + (license license:gpl2+)))) (define-public libvisual (package |