diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2021-05-06 14:22:59 +0300 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2021-05-06 14:27:55 +0300 |
| commit | 2e4f61908b0214290fc58398355316ceb40b625f (patch) | |
| tree | 2cdb559de772d881730677b39334560fe0731455 /gnu/packages/dictionaries.scm | |
| parent | 0d6eb69266535c1570b8b85c9e88872de34626e5 (diff) | |
gnu: translate-shell: Adjust to changes in emacs-build-system.
* gnu/packages/dictionaries.scm (translate-shell)[arguments]: Replace
custom 'emacs-install phase with the 'install phase from the
emacs-build-system. Also add 'emacs-make-autoload and
'emacs-autoloads-completion phases from the emacs-build-system. Adjust
modules and imported modules accordingly.
Diffstat (limited to 'gnu/packages/dictionaries.scm')
| -rw-r--r-- | gnu/packages/dictionaries.scm | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gnu/packages/dictionaries.scm b/gnu/packages/dictionaries.scm index c4c377580cc..30995bf9869 100644 --- a/gnu/packages/dictionaries.scm +++ b/gnu/packages/dictionaries.scm | |||
| @@ -277,17 +277,18 @@ and a Python library.") | |||
| 277 | rlwrap "/bin"))))) | 277 | rlwrap "/bin"))))) |
| 278 | #t)) | 278 | #t)) |
| 279 | (add-after 'install 'emacs-install | 279 | (add-after 'install 'emacs-install |
| 280 | (lambda* (#:key inputs outputs #:allow-other-keys) | 280 | (assoc-ref emacs:%standard-phases 'install)) |
| 281 | (let* ((out (assoc-ref outputs "out")) | 281 | (add-after 'emacs-install 'emacs-make-autoloads |
| 282 | (dest (string-append out "/share/emacs/site-lisp")) | 282 | (assoc-ref emacs:%standard-phases 'make-autoloads)) |
| 283 | (emacs (string-append (assoc-ref inputs "emacs") "/bin/emacs"))) | 283 | (add-after 'emacs-make-autoloads 'emacs-autoloads-compilation |
| 284 | (install-file "google-translate-mode.el" dest) | 284 | (assoc-ref emacs:%standard-phases 'enable-autoloads-compilation))) |
| 285 | (emacs-generate-autoloads ,name dest))))) | ||
| 286 | #:make-flags (list (string-append "PREFIX=" %output) | 285 | #:make-flags (list (string-append "PREFIX=" %output) |
| 287 | "NETWORK_ACCESS=no test") | 286 | "NETWORK_ACCESS=no test") |
| 288 | #:imported-modules (,@%gnu-build-system-modules (guix build emacs-utils)) | 287 | #:imported-modules (,@%gnu-build-system-modules |
| 288 | (guix build emacs-build-system) | ||
| 289 | (guix build emacs-utils)) | ||
| 289 | #:modules ((guix build gnu-build-system) | 290 | #:modules ((guix build gnu-build-system) |
| 290 | (guix build emacs-utils) | 291 | ((guix build emacs-build-system) #:prefix emacs:) |
| 291 | (guix build utils)) | 292 | (guix build utils)) |
| 292 | #:test-target "test")) | 293 | #:test-target "test")) |
| 293 | (inputs | 294 | (inputs |
