Skip to content
Snippets Groups Projects
Commit fee4693e authored by Sou Bunnbu (宋文武)'s avatar Sou Bunnbu (宋文武)
Browse files

gnu: recode: Fix tests.

* gnu/packages/textutils.scm (recode): Rename phase 'fix-setup-py to 'pre-check.
  Set LD_LIBRARY_PATH to "$(pwd)/src/.libs" in pre-check phase.
parent 23a22af6
No related branches found
No related tags found
No related merge requests found
......@@ -44,11 +44,13 @@ (define-public recode
(arguments
'(#:phases
(alist-cons-before
'check 'fix-setup-py
'check 'pre-check
(lambda _
(substitute* "tests/setup.py"
(("([[:space:]]*)include_dirs=.*" all space)
(string-append all space "library_dirs=['../src/.libs'],\n"))))
(string-append all space "library_dirs=['../src/.libs'],\n")))
;; The test extension 'Recode.so' lacks RUNPATH for 'librecode.so'.
(setenv "LD_LIBRARY_PATH" (string-append (getcwd) "/src/.libs")))
%standard-phases)))
(home-page "https://github.com/pinard/Recode")
(synopsis "Text encoding converter")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment