mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: i2pd: Rewrite 'check phase using with-directory-excursion.
* gnu/packages/i2p.scm (i2pd)[arguments]: In custom 'check phase use with-directory-excursion to change directory.
This commit is contained in:
parent
2fba90a8b2
commit
262f904ebd
1 changed files with 10 additions and 12 deletions
|
@ -63,20 +63,18 @@ (define-public i2pd
|
|||
(make-flags '())
|
||||
(parallel-tests? #t)
|
||||
#:allow-other-keys)
|
||||
(let ((oldpwd (getcwd))
|
||||
(source (assoc-ref %build-inputs "source")))
|
||||
(let ((source (assoc-ref %build-inputs "source")))
|
||||
(copy-recursively (string-append source "/tests")
|
||||
"./tests")
|
||||
(chdir "./tests")
|
||||
(substitute* "Makefile"
|
||||
(("../libi2pd/") (string-append source "/libi2pd/")))
|
||||
(apply invoke "make" "all"
|
||||
`(,@(if parallel-tests?
|
||||
`("-j" ,(number->string
|
||||
(parallel-job-count)))
|
||||
'())
|
||||
,@make-flags))
|
||||
(chdir oldpwd))))
|
||||
(with-directory-excursion "tests"
|
||||
(substitute* "Makefile"
|
||||
(("../libi2pd/") (string-append source "/libi2pd/")))
|
||||
(apply invoke "make" "all"
|
||||
`(,@(if parallel-tests?
|
||||
`("-j" ,(number->string
|
||||
(parallel-job-count)))
|
||||
'())
|
||||
,@make-flags))))))
|
||||
(add-after 'install 'install-headers
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((install-dir (assoc-ref outputs "out"))
|
||||
|
|
Loading…
Reference in a new issue