mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-21 01:26:43 +01:00
gnu: emacs-emacsql: Adjust to changes in emacs-build-system.
* gnu/packages/emacs-xyz.scm (emacs-emacsql)[#:phases]: Use standard build and install phases. [build-emacsql-sqlite]: Use cc-for-target.
This commit is contained in:
parent
7549981cec
commit
710c6f49db
1 changed files with 2 additions and 12 deletions
|
@ -15641,7 +15641,6 @@ (define-public emacs-emacsql
|
|||
(srfi srfi-26))
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(delete 'build) ;‘build-emacsql-sqlite’ compiles ‘*.el’ files.
|
||||
(add-before 'install 'patch-elisp-shell-shebangs
|
||||
(lambda _
|
||||
(substitute* (find-files "." "\\.el")
|
||||
|
@ -15652,7 +15651,7 @@ (define-public emacs-emacsql
|
|||
(setenv "SHELL" "sh")))
|
||||
(add-after 'setenv-shell 'build-emacsql-sqlite
|
||||
(lambda _
|
||||
(invoke "make" "binary" "CC=gcc")))
|
||||
(invoke "make" "binary" (string-append "CC=" ,(cc-for-target)))))
|
||||
(add-after 'build-emacsql-sqlite 'install-emacsql-sqlite
|
||||
;; This build phase installs emacs-emacsql binary.
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
|
@ -15673,16 +15672,7 @@ (define-public emacs-emacsql
|
|||
;; in the right place.
|
||||
("(defvar emacsql-sqlite-executable"
|
||||
(string-append (assoc-ref outputs "out")
|
||||
"/bin/emacsql-sqlite"))))))
|
||||
(replace 'install
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out")))
|
||||
(install-file "sqlite/emacsql-sqlite"
|
||||
(string-append out "/bin"))
|
||||
(for-each (cut install-file <>
|
||||
(string-append out "/share/emacs/site-lisp"))
|
||||
(find-files "." "\\.elc*$")))
|
||||
#t)))))
|
||||
"/bin/emacsql-sqlite")))))))))
|
||||
(inputs
|
||||
`(("emacs-minimal" ,emacs-minimal)
|
||||
("mariadb" ,mariadb "lib")
|
||||
|
|
Loading…
Reference in a new issue