me
/
guix
Archived
1
0
Fork 0

gnu: lyx: Remove reference to '%outputs'.

* gnu/packages/tex.scm (lyx)[arguments]: Rewrite as gexps.  Refer
to #$output instead of '%outputs', which 'qt-build-system' no longer
defines.
master
Ludovic Courtès 2021-11-21 15:48:37 +01:00
parent 85de88f1ad
commit 3f66b4c266
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 26 additions and 27 deletions

View File

@ -38,6 +38,7 @@
(define-module (gnu packages tex)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system copy)
@ -7299,15 +7300,15 @@ and Karl Berry.")
#t))))
(build-system qt-build-system)
(arguments
`(#:configure-flags `("-DLYX_USE_QT=QT5"
(list #:configure-flags
#~(list "-DLYX_USE_QT=QT5"
"-DLYX_EXTERNAL_BOOST=1"
"-DLYX_INSTALL=1"
"-DLYX_RELEASE=1"
"-DLYX_PROGRAM_SUFFIX=OFF"
,(string-append "-DLYX_INSTALL_PREFIX="
(assoc-ref %outputs "out")))
(string-append "-DLYX_INSTALL_PREFIX=" #$output))
#:phases
(modify-phases %standard-phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-python
(lambda* (#:key inputs #:allow-other-keys)
(substitute* '("lib/configure.py"
@ -7318,14 +7319,12 @@ and Karl Berry.")
(("\"python ")
(string-append "\""
(assoc-ref inputs "python")
"/bin/python3 ")))
#t))
"/bin/python3 ")))))
(add-after 'unpack 'add-missing-test-file
(lambda _
;; Create missing file that would cause tests to fail.
(with-output-to-file "src/tests/check_layout.cmake"
(const #t))
#t)))))
(const #t)))))))
(inputs
`(("boost" ,boost)
("hunspell" ,hunspell) ; Note: Could also use aspell instead.