gnu: OpenShot: Update to 2.6.1.

* gnu/packages/video.scm (openshot): Update to 2.6.1.
[arguments]: Add a 'fix-symbolic-link' phase to work around a broken symlink.
Run the custom 'check' phase when tests? are enabled.
This commit is contained in:
Leo Famulari 2021-10-22 15:14:24 -04:00
parent 7eaacf0ece
commit 0cfc13104f
No known key found for this signature in database
GPG key ID: 2646FA30BACA7F08

View file

@ -4724,7 +4724,7 @@ (define-public libopenshot
(define-public openshot (define-public openshot
(package (package
(name "openshot") (name "openshot")
(version "2.5.1") (version "2.6.1")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@ -4733,7 +4733,7 @@ (define-public openshot
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"0qc5i0ay6j2wab1whl41sjb71cj02pg6y79drf7asrprq8b2rmfq")) "0pa8iwl217503bjlqg2zlrw5lxyq5hvxrf5apxrh3843hj1w1myv"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet
'(begin '(begin
@ -4758,9 +4758,10 @@ (define-public openshot
#:phases (modify-phases %standard-phases #:phases (modify-phases %standard-phases
(delete 'build) ;install phase does all the work (delete 'build) ;install phase does all the work
(replace 'check (replace 'check
(lambda _ (lambda* (#:key tests? #:allow-other-keys)
(setenv "QT_QPA_PLATFORM" "offscreen") (when tests?
(invoke "python" "src/tests/query_tests.py"))) (setenv "QT_QPA_PLATFORM" "offscreen")
(invoke "python" "src/tests/query_tests.py"))))
(add-after 'unpack 'patch-font-location (add-after 'unpack 'patch-font-location
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(let ((font (assoc-ref inputs "font-dejavu"))) (let ((font (assoc-ref inputs "font-dejavu")))
@ -4769,6 +4770,12 @@ (define-public openshot
(("fonts") "share/fonts/truetype") (("fonts") "share/fonts/truetype")
(("[A-Za-z_-]+.ttf") "DejaVuSans.ttf"))) (("[A-Za-z_-]+.ttf") "DejaVuSans.ttf")))
#t)) #t))
;; https://github.com/OpenShot/openshot-qt/issues/4502
(add-before 'ensure-no-mtimes-pre-1980 'fix-symbolic-link
(lambda _
(delete-file "images/Humanity/actions/custom/razor_line_with_razor.png")
(symlink "../../../../src/timeline/media/images/razor_line_with_razor.png"
"images/Humanity/actions/custom/razor_line_with_razor.png")))
(add-before 'install 'set-tmp-home (add-before 'install 'set-tmp-home
(lambda _ (lambda _
;; src/classes/info.py "needs" to create several ;; src/classes/info.py "needs" to create several