~ruther/guix-local

c0e57fb876b1bc996b3d30648f427dbf23bc99b4 — Sree Harsha Totakura 12 years ago 2977b30
gnu: curl: Fix tests.

* gnu/packages/curl.scm (curl): Add a new phase and python-2 to native-inputs.

Signed-off-by: Andreas Enge <andreas@enge.fr>
1 files changed, 12 insertions(+), 2 deletions(-)

M gnu/packages/curl.scm
M gnu/packages/curl.scm => gnu/packages/curl.scm +12 -2
@@ 31,6 31,7 @@
  #:use-module (gnu packages openldap)
  #:use-module (gnu packages perl)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages python)
  #:use-module (gnu packages ssh))

(define-public curl


@@ 59,9 60,18 @@
     `(("perl" ,perl)
       ;; to enable the --manual option and make test 1026 pass
       ("groff" ,groff)
       ("pkg-config" ,pkg-config)))
       ("pkg-config" ,pkg-config)
       ("python" ,python-2)))
   (arguments
    `(#:configure-flags '("--with-gnutls" "--with-gssapi")))
    `(#:configure-flags '("--with-gnutls" "--with-gssapi")
      ;; Add a phase to patch '/bin/sh' occurances in tests/runtests.pl
      #:phases
      (alist-cons-before
       'check 'patch-runtests
       (lambda _
           (substitute* "tests/runtests.pl"
             (("/bin/sh") (which "sh"))))
       %standard-phases)))
   (synopsis "curl, command line tool for transferring data with URL syntax")
   (description
    "curl is a command line tool for transferring data with URL syntax,