~ruther/guix-local

fee4693e4289c7b53903312fab48b3f574273edf — 宋文武 11 years ago 23a22af
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.
1 files changed, 4 insertions(+), 2 deletions(-)

M gnu/packages/textutils.scm
M gnu/packages/textutils.scm => gnu/packages/textutils.scm +4 -2
@@ 44,11 44,13 @@
    (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")