mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-06 19:09:27 +01:00
gnu: openshot: Use free font.
* gnu/packages/video.scm (openshot)[inputs]: Use font-dejavu. [patch-font-location]: Adjust accordingly.
This commit is contained in:
parent
a923127d30
commit
f6a979860c
1 changed files with 4 additions and 3 deletions
|
@ -4535,7 +4535,7 @@ API. It includes bindings for Python, Ruby, and other languages.")
|
|||
(build-system python-build-system)
|
||||
(inputs
|
||||
`(("ffmpeg" ,ffmpeg)
|
||||
("font-ubuntu" ,font-ubuntu)
|
||||
("font-dejavu" ,font-dejavu)
|
||||
("libopenshot" ,libopenshot)
|
||||
("python" ,python)
|
||||
("python-pyqt" ,python-pyqt)
|
||||
|
@ -4556,10 +4556,11 @@ API. It includes bindings for Python, Ruby, and other languages.")
|
|||
(invoke "python" "src/tests/query_tests.py")))
|
||||
(add-after 'unpack 'patch-font-location
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((font (assoc-ref inputs "font-ubuntu")))
|
||||
(let ((font (assoc-ref inputs "font-dejavu")))
|
||||
(substitute* "src/classes/app.py"
|
||||
(("info.IMAGES_PATH") (string-append "\"" font "\""))
|
||||
(("fonts") "share/fonts/truetype")))
|
||||
(("fonts") "share/fonts/truetype")
|
||||
(("[A-Za-z_-]+.ttf") "DejaVuSans.ttf")))
|
||||
#t))
|
||||
(add-before 'install 'set-tmp-home
|
||||
(lambda _
|
||||
|
|
Loading…
Add table
Reference in a new issue