mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-19 05:07:11 -05:00
gnu: gaupol: Don't attempt to compile bytecode twice.
* gnu/packages/video.scm (gaupol)[arguments]: Disable needless compilation with a substitution. While here, remove trailing #t's.
This commit is contained in:
parent
dd5851e088
commit
869d69ad32
1 changed files with 9 additions and 4 deletions
|
@ -5057,6 +5057,13 @@ (define-public gaupol
|
||||||
`(#:tests? #f ; Tests seem to require networking.
|
`(#:tests? #f ; Tests seem to require networking.
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'disable-builtin-byte-compilation
|
||||||
|
(lambda _
|
||||||
|
;; The setup.py script attempts to compile bytecode and fails.
|
||||||
|
;; We compile bytecode in a separate phase, so just disable it.
|
||||||
|
(substitute* "setup.py"
|
||||||
|
(("distutils\\.util\\.byte_compile\\(.*")
|
||||||
|
""))))
|
||||||
;; gaupol's setup.py script does not support one of the Python build
|
;; gaupol's setup.py script does not support one of the Python build
|
||||||
;; system's default flags, "--single-version-externally-managed".
|
;; system's default flags, "--single-version-externally-managed".
|
||||||
(replace 'install
|
(replace 'install
|
||||||
|
@ -5071,8 +5078,7 @@ (define-public gaupol
|
||||||
(gi-typelib-path (getenv "GI_TYPELIB_PATH")))
|
(gi-typelib-path (getenv "GI_TYPELIB_PATH")))
|
||||||
(wrap-program (string-append out "/bin/gaupol")
|
(wrap-program (string-append out "/bin/gaupol")
|
||||||
`("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
|
`("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
|
||||||
`("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
|
`("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))))
|
||||||
#t))
|
|
||||||
(add-after 'unpack 'patch-data-dir
|
(add-after 'unpack 'patch-data-dir
|
||||||
;; Fix some path variables that setup.py seems to garble.
|
;; Fix some path variables that setup.py seems to garble.
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
@ -5081,8 +5087,7 @@ (define-public gaupol
|
||||||
(("DATA_DIR = \\{!r\\}\"\\.format\\(data_dir\\)")
|
(("DATA_DIR = \\{!r\\}\"\\.format\\(data_dir\\)")
|
||||||
(string-append "DATA_DIR = '" out "/share/gaupol'\""))
|
(string-append "DATA_DIR = '" out "/share/gaupol'\""))
|
||||||
(("LOCALE_DIR = \\{!r\\}\"\\.format\\(locale_dir\\)")
|
(("LOCALE_DIR = \\{!r\\}\"\\.format\\(locale_dir\\)")
|
||||||
(string-append "LOCALE_DIR = '" out "/share/locale'\"")))
|
(string-append "LOCALE_DIR = '" out "/share/locale'\"")))))))))
|
||||||
#t))))))
|
|
||||||
(synopsis "Editor for text-based subtitles")
|
(synopsis "Editor for text-based subtitles")
|
||||||
(description
|
(description
|
||||||
"Gaupol supports multiple subtitle file formats and provides means of
|
"Gaupol supports multiple subtitle file formats and provides means of
|
||||||
|
|
Loading…
Reference in a new issue