mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: asymptote: Use G-expressions.
* gnu/packages/plotutils.scm (asymptote)[arguments]<#:phases>: Use G-expressions.
This commit is contained in:
parent
d1cc373033
commit
85f026f36a
1 changed files with 62 additions and 62 deletions
|
@ -345,68 +345,68 @@ colors, styles, options and details.")
|
||||||
#$output
|
#$output
|
||||||
"/share/texmf/tex/context/third"))
|
"/share/texmf/tex/context/third"))
|
||||||
#:phases
|
#:phases
|
||||||
`(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'locate-tirpc
|
(add-after 'unpack 'locate-tirpc
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(substitute* (list "configure.ac")
|
(substitute* (list "configure.ac")
|
||||||
(("/usr/include/tirpc")
|
(("/usr/include/tirpc")
|
||||||
(search-input-directory inputs "include/tirpc")))))
|
(search-input-directory inputs "include/tirpc")))))
|
||||||
(add-after 'unpack 'unbundle-rapidjson
|
(add-after 'unpack 'unbundle-rapidjson
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(substitute* (list "Makefile.in")
|
(substitute* (list "Makefile.in")
|
||||||
(("\\$\\(CMAKE\\)" all)
|
(("\\$\\(CMAKE\\)" all)
|
||||||
(string-append all " -DUSE_SYSTEM_RAPIDJSON=ON")))))
|
(string-append all " -DUSE_SYSTEM_RAPIDJSON=ON")))))
|
||||||
(add-after 'unpack 'fix-includes
|
(add-after 'unpack 'fix-includes
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* (find-files "." "\\.in$")
|
(substitute* (find-files "." "\\.in$")
|
||||||
(("#include <primitives.h>") "#include \"primitives.h\""))
|
(("#include <primitives.h>") "#include \"primitives.h\""))
|
||||||
(substitute* (find-files "prc" "\\.h$")
|
(substitute* (find-files "prc" "\\.h$")
|
||||||
(("#include \"config.h\"") "#include \"../config.h\""))
|
(("#include \"config.h\"") "#include \"../config.h\""))
|
||||||
(substitute* "prc/oPRCFile.h"
|
(substitute* "prc/oPRCFile.h"
|
||||||
(("#include \"xstream.h\"") "#include \"../xstream.h\""))
|
(("#include \"xstream.h\"") "#include \"../xstream.h\""))
|
||||||
(substitute* "v3dfile.h"
|
(substitute* "v3dfile.h"
|
||||||
(("#include <prc/oPRCFile.h>") "#include \"prc/oPRCFile.h\""))
|
(("#include <prc/oPRCFile.h>") "#include \"prc/oPRCFile.h\""))
|
||||||
(substitute* "LspCpp/src/lsp/ParentProcessWatcher.cpp"
|
(substitute* "LspCpp/src/lsp/ParentProcessWatcher.cpp"
|
||||||
(("#include <boost/process.hpp>" all)
|
(("#include <boost/process.hpp>" all)
|
||||||
(string-append "#include <algorithm>\n" all)))))
|
(string-append "#include <algorithm>\n" all)))))
|
||||||
(replace 'bootstrap
|
(replace 'bootstrap
|
||||||
(lambda _
|
(lambda _
|
||||||
(invoke "autoreconf" "-vfi")))
|
(invoke "autoreconf" "-vfi")))
|
||||||
(add-after 'unpack 'move-info-location
|
(add-after 'unpack 'move-info-location
|
||||||
;; Build process installs info file in the unusual
|
;; Build process installs info file in the unusual
|
||||||
;; "%out/share/info/asymptote/" location. Move it to
|
;; "%out/share/info/asymptote/" location. Move it to
|
||||||
;; "%out/share/info/" so it appears in the top-level directory.
|
;; "%out/share/info/" so it appears in the top-level directory.
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "doc/png/Makefile.in"
|
(substitute* "doc/png/Makefile.in"
|
||||||
(("(\\$\\(infodir\\))/asymptote" _ infodir) infodir))
|
(("(\\$\\(infodir\\))/asymptote" _ infodir) infodir))
|
||||||
(substitute* "doc/asymptote.texi"
|
(substitute* "doc/asymptote.texi"
|
||||||
(("asymptote/asymptote") "asymptote"))))
|
(("asymptote/asymptote") "asymptote"))))
|
||||||
(add-before 'build 'patch-pdf-viewer
|
(add-before 'build 'patch-pdf-viewer
|
||||||
(lambda _
|
(lambda _
|
||||||
;; Default to a free pdf viewer.
|
;; Default to a free pdf viewer.
|
||||||
(substitute* "settings.cc"
|
(substitute* "settings.cc"
|
||||||
(("defaultPDFViewer=\"acroread\"")
|
(("defaultPDFViewer=\"acroread\"")
|
||||||
"defaultPDFViewer=\"gv\""))))
|
"defaultPDFViewer=\"gv\""))))
|
||||||
(add-before 'check 'set-HOME
|
(add-before 'check 'set-HOME
|
||||||
;; Some tests require write access to $HOME, otherwise leading to
|
;; Some tests require write access to $HOME, otherwise leading to
|
||||||
;; "failed to create directory /homeless-shelter/.asy" error.
|
;; "failed to create directory /homeless-shelter/.asy" error.
|
||||||
(lambda _
|
(lambda _
|
||||||
(setenv "HOME" "/tmp")))
|
(setenv "HOME" "/tmp")))
|
||||||
(add-after 'install 'install-Emacs-data
|
(add-after 'install 'install-Emacs-data
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
;; Install related Emacs libraries into an appropriate location.
|
;; Install related Emacs libraries into an appropriate location.
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let ((lisp-dir
|
||||||
(lisp-dir (string-append out "/share/emacs/site-lisp")))
|
(string-append #$output "/share/emacs/site-lisp")))
|
||||||
(for-each (cut install-file <> lisp-dir)
|
(for-each (cut install-file <> lisp-dir)
|
||||||
(find-files "." "\\.el$"))
|
(find-files "." "\\.el$"))
|
||||||
(emacs-generate-autoloads ,name lisp-dir))))
|
(emacs-generate-autoloads #$name lisp-dir))))
|
||||||
(add-after 'install-Emacs-data 'wrap-python-script
|
(add-after 'install-Emacs-data 'wrap-python-script
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
;; Make sure 'xasy' runs with the correct PYTHONPATH.
|
;; Make sure 'xasy' runs with the correct PYTHONPATH.
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let ((path (getenv "GUIX_PYTHONPATH")))
|
||||||
(path (getenv "GUIX_PYTHONPATH")))
|
(wrap-program
|
||||||
(wrap-program (string-append out "/share/asymptote/GUI/xasy.py")
|
(string-append #$output "/share/asymptote/GUI/xasy.py")
|
||||||
`("GUIX_PYTHONPATH" ":" prefix (,path)))))))))
|
`("GUIX_PYTHONPATH" ":" prefix (,path)))))))))
|
||||||
(home-page "http://asymptote.sourceforge.net")
|
(home-page "http://asymptote.sourceforge.net")
|
||||||
(synopsis "Script-based vector graphics language")
|
(synopsis "Script-based vector graphics language")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue