[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: highlight: Build perl bindings.
From: |
guix-commits |
Subject: |
branch master updated: gnu: highlight: Build perl bindings. |
Date: |
Fri, 21 Feb 2020 08:11:11 -0500 |
This is an automated email from the git hooks/post-receive script.
pgarlick pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new b24d523 gnu: highlight: Build perl bindings.
b24d523 is described below
commit b24d523e74b7999362c517622af5de3f1f9c4c23
Author: Paul Garlick <address@hidden>
AuthorDate: Fri Feb 21 12:35:07 2020 +0000
gnu: highlight: Build perl bindings.
* gnu/packages/pretty-print.scm (highlight)[native-inputs]: Add swig.
[inputs]: Add perl.
[arguments]: Specify lua version for pkg-config command, add
'install-perl-bindings' phase.
---
gnu/packages/pretty-print.scm | 27 +++++++++++++++++++++++----
1 file changed, 23 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/pretty-print.scm b/gnu/packages/pretty-print.scm
index fc98478..e656069 100644
--- a/gnu/packages/pretty-print.scm
+++ b/gnu/packages/pretty-print.scm
@@ -5,6 +5,7 @@
;;; Copyright © 2017 Ludovic Courtès <address@hidden>
;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <address@hidden>
;;; Copyright © 2019 Meiyo Peng <address@hidden>
+;;; Copyright © 2020 Paul Garlick <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -40,7 +41,8 @@
#:use-module (gnu packages lua)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
- #:use-module (gnu packages compression))
+ #:use-module (gnu packages compression)
+ #:use-module (gnu packages swig))
(define-public a2ps
(package
@@ -270,12 +272,29 @@ seen in a terminal.")
(string-append assignment "lua-" ,(version-major+minor
(package-version lua))
"\n")))
- #t)))))
+ (substitute* "extras/swig/makefile"
+ (("lua") (string-append "lua-" ,(version-major+minor
+ (package-version lua)))))
+ #t))
+ (add-after 'install 'install-perl-bindings
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((perldir (string-append (assoc-ref outputs "out")
+ "/lib/perl5/site_perl/"
+ ,(package-version perl)))
+ (autodir (string-append perldir "/auto/highlight")))
+ (with-directory-excursion "extras/swig"
+ (invoke "make" "perl")
+ (invoke "perl" "-I" "." "testmod.pl")
+ (install-file "highlight.pm" perldir)
+ (install-file "highlight.so" autodir))
+ #t))))))
(inputs
`(("lua" ,lua)
- ("boost" ,boost)))
+ ("boost" ,boost)
+ ("perl" ,perl)))
(native-inputs
- `(("pkg-config" ,pkg-config)))
+ `(("pkg-config" ,pkg-config)
+ ("swig" ,swig)))
(home-page "http://www.andre-simon.de/doku/highlight/en/highlight.php")
(synopsis "Convert code to documents with syntax highlighting")
(description "Highlight converts source code to HTML, XHTML, RTF, LaTeX,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: highlight: Build perl bindings.,
guix-commits <=