gnu: picard: Use build system features.

* gnu/packages/music.scm (picard)[arguments]: Leverage #:use-setuptools?
and #:configure-flags instead of a custom ‘install’ phase.
This commit is contained in:
Tobias Geerinckx-Rice 2019-05-11 17:52:10 +02:00
parent b421e91558
commit 251448f7f5
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 5 additions and 7 deletions

View File

@ -2556,7 +2556,10 @@ event-based scripts for scrobbling, notifications, etc.")
"19w5k3bf4886gdycxjds9nkjvir0gwy2r5cqkz0lbls4ikk4y14f"))))
(build-system python-build-system)
(arguments
'(#:phases
'(#:use-setuptools? #f
#:configure-flags
(list "--root=/")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-source
(lambda* (#:key inputs #:allow-other-keys)
@ -2564,12 +2567,7 @@ event-based scripts for scrobbling, notifications, etc.")
(("pyfpcalc")
(string-append
"pyfpcalc', '"
(assoc-ref inputs "chromaprint") "/bin/fpcalc")))))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(invoke "python" "setup.py" "install"
(string-append "--prefix=" (assoc-ref outputs "out"))
"--root=/"))))))
(assoc-ref inputs "chromaprint") "/bin/fpcalc"))))))))
(native-inputs
`(("gettext" ,gettext-minimal)))
(inputs