gnu: emacs: Remove 'info.info'.
* gnu/packages/emacs.scm (emacs)[arguments]: Use 'modify-phases'. Add 'remove-info.info' phase.
This commit is contained in:
		
							parent
							
								
									fb74174958
								
							
						
					
					
						commit
						fe542b9762
					
				
					 1 changed files with 15 additions and 9 deletions
				
			
		|  | @ -1,6 +1,6 @@ | ||||||
| ;;; GNU Guix --- Functional package management for GNU | ;;; GNU Guix --- Functional package management for GNU | ||||||
| ;;; Copyright © 2014 Taylan Ulrich Bayirli/Kammer <taylanbayirli@gmail.com> | ;;; Copyright © 2014 Taylan Ulrich Bayirli/Kammer <taylanbayirli@gmail.com> | ||||||
| ;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org> | ;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org> | ||||||
| ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org> | ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org> | ||||||
| ;;; Copyright © 2014, 2015 Alex Kost <alezost@gmail.com> | ;;; Copyright © 2014, 2015 Alex Kost <alezost@gmail.com> | ||||||
| ;;; Copyright © 2015 Federico Beffa <beffa@fbengineering.ch> | ;;; Copyright © 2015 Federico Beffa <beffa@fbengineering.ch> | ||||||
|  | @ -73,14 +73,20 @@ | ||||||
|              (patches (list (search-patch "emacs-exec-path.patch"))))) |              (patches (list (search-patch "emacs-exec-path.patch"))))) | ||||||
|     (build-system glib-or-gtk-build-system) |     (build-system glib-or-gtk-build-system) | ||||||
|     (arguments |     (arguments | ||||||
|      '(#:phases (alist-cons-before |      '(#:phases (modify-phases %standard-phases | ||||||
|                  'configure 'fix-/bin/pwd |                   (add-before 'configure 'fix-/bin/pwd | ||||||
|                  (lambda _ |                     (lambda _ | ||||||
|                    ;; Use `pwd', not `/bin/pwd'. |                       ;; Use `pwd', not `/bin/pwd'. | ||||||
|                    (substitute* (find-files "." "^Makefile\\.in$") |                       (substitute* (find-files "." "^Makefile\\.in$") | ||||||
|                      (("/bin/pwd") |                         (("/bin/pwd") | ||||||
|                       "pwd"))) |                          "pwd")))) | ||||||
|                  %standard-phases))) |                   (add-after 'install 'remove-info.info | ||||||
|  |                     (lambda* (#:key outputs #:allow-other-keys) | ||||||
|  |                       ;; Remove 'info.info', which is provided by Texinfo. | ||||||
|  |                       (let ((out (assoc-ref outputs "out"))) | ||||||
|  |                         (delete-file | ||||||
|  |                          (string-append out "/share/info/info.info.gz")) | ||||||
|  |                         #t)))))) | ||||||
|     (inputs |     (inputs | ||||||
|      `(("gnutls" ,gnutls) |      `(("gnutls" ,gnutls) | ||||||
|        ("ncurses" ,ncurses) |        ("ncurses" ,ncurses) | ||||||
|  |  | ||||||
		Reference in a new issue