gnu: translate-shell: Use 'git-fetch'.
* gnu/packages/dictionaries.scm (translate-shell)[source]: Use 'git-fetch'. [arguments]: Add custom phase to remove "translate" file.
This commit is contained in:
parent
5895696e4c
commit
cfa3b7182d
|
@ -250,18 +250,24 @@ and a Python library.")
|
||||||
(version "0.9.6.8")
|
(version "0.9.6.8")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (string-append "https://github.com/soimort/" name "/archive/v"
|
(uri (git-reference
|
||||||
version ".tar.gz"))
|
(url"https://github.com/soimort/translate-shell.git")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"17yc2kwk8957wwxyih0jmsai720ai2yqyvmrqrglcncqg6zdbz9w"))
|
"17fc5nlc594lvmihx39h4ddmi8ja3qqsyswzxadbaz7l3zm356b8"))))
|
||||||
(file-name (string-append name "-" version ".tar.gz"))))
|
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(delete 'configure) ; no configure phase
|
(delete 'configure) ; no configure phase
|
||||||
|
(add-after 'unpack 'remove-unnecessary-file
|
||||||
|
;; This file gets generated during the build phase.
|
||||||
|
(lambda _
|
||||||
|
(delete-file "translate")
|
||||||
|
#t))
|
||||||
(add-after 'install 'emacs-install
|
(add-after 'install 'emacs-install
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
|
Loading…
Reference in New Issue