diff options
author | gemmaro <gemmaro.dev@gmail.com> | 2023-08-07 23:05:42 +0900 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2023-08-15 00:33:51 +0200 |
commit | 03bc7bee942cb14edd709dbd14725e5e2c0e289f (patch) | |
tree | 43985fdb35ec96620adf5d32facdb67cf7a1f237 | |
parent | 820bf78cbc487d28457acc6cb790f4cbd7cc49b9 (diff) | |
download | guix-03bc7bee942cb14edd709dbd14725e5e2c0e289f.tar guix-03bc7bee942cb14edd709dbd14725e5e2c0e289f.tar.gz |
gnu: highlight: Fix paths for Perl bindings.
* gnu/packages/pretty-print.scm (highlight): Fix paths for Perl bindings.
[arguments]<phases>: Set hl_data_dir and hl_conf_dir in install-perl-bindings phase.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r-- | gnu/packages/pretty-print.scm | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gnu/packages/pretty-print.scm b/gnu/packages/pretty-print.scm index f8763b7b74..5d15b160f3 100644 --- a/gnu/packages/pretty-print.scm +++ b/gnu/packages/pretty-print.scm @@ -414,14 +414,19 @@ seen in a terminal.") (string-append "PREFIX=" out))))) (add-after 'install 'install-perl-bindings (lambda* (#:key outputs #:allow-other-keys) - (let* ((perldir (string-append (assoc-ref outputs - "out") + (let* ((out (assoc-ref outputs "out")) + (data (string-append out + "/share/highlight/")) + (conf (string-append out "/etc/highlight/")) + (perldir (string-append out "/lib/perl5/site_perl/" #$(package-version perl))) (autodir (string-append perldir "/auto/highlight"))) (with-directory-excursion "extras/swig" - (invoke "make" "perl") + (invoke "make" "perl" + (string-append "hl_data_dir=" data) + (string-append "hl_conf_dir=" conf)) (invoke "perl" "-I" "." "testmod.pl") (install-file "highlight.pm" perldir) (install-file "highlight.so" autodir))))) |