import/cran: Also search Makevars file for libraries.

* guix/import/cran.scm (needed-libraries-in-directory): Look at Makevars in
addition to Makevars.in for libraries.
This commit is contained in:
Ricardo Wurmus 2023-06-02 12:48:42 +02:00
parent bb27e3b8b1
commit 67183e25ad
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -503,7 +503,7 @@ (define (needed-libraries-in-directory dir)
packages
(list-matches libraries-pattern line))))))))))
(set)
(find-files dir "(Makevars.in*|configure.*)"))))
(find-files dir "(Makevars(.in.*)?|configure.*)"))))
(define (directory-needs-pkg-config? dir)
"Return #T if any of the Makevars files in the src directory DIR reference