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:
Efraim Flashner 2019-07-18 18:52:43 +03:00
parent 2fba90a8b2
commit 262f904ebd
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351

View File

@ -63,11 +63,10 @@
(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")
(with-directory-excursion "tests"
(substitute* "Makefile"
(("../libi2pd/") (string-append source "/libi2pd/")))
(apply invoke "make" "all"
@ -75,8 +74,7 @@
`("-j" ,(number->string
(parallel-job-count)))
'())
,@make-flags))
(chdir oldpwd))))
,@make-flags))))))
(add-after 'install 'install-headers
(lambda* (#:key outputs #:allow-other-keys)
(let* ((install-dir (assoc-ref outputs "out"))