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.
This commit is contained in:
宋文武 2015-04-15 12:04:51 +08:00
parent 23a22af694
commit fee4693e42
1 changed files with 4 additions and 2 deletions

View File

@ -44,11 +44,13 @@
(arguments (arguments
'(#:phases '(#:phases
(alist-cons-before (alist-cons-before
'check 'fix-setup-py 'check 'pre-check
(lambda _ (lambda _
(substitute* "tests/setup.py" (substitute* "tests/setup.py"
(("([[:space:]]*)include_dirs=.*" all space) (("([[: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))) %standard-phases)))
(home-page "https://github.com/pinard/Recode") (home-page "https://github.com/pinard/Recode")
(synopsis "Text encoding converter") (synopsis "Text encoding converter")