guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: Add libantlr3c.


From: guix-commits
Subject: branch master updated: gnu: Add libantlr3c.
Date: Tue, 31 Mar 2020 22:33:25 -0400

This is an automated email from the git hooks/post-receive script.

apteryx pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new f1cf62f  gnu: Add libantlr3c.
f1cf62f is described below

commit f1cf62f5dc829d98d1818ad6e9e55658c97fb476
Author: Raghav Gururajan <address@hidden>
AuthorDate: Sat Mar 28 14:21:35 2020 -0400

    gnu: Add libantlr3c.
    
    * gnu/packages/java.scm (libantlr3c): New variable.
    
    Co-authored by Maxim Cournoyer.
    
    Signed-off-by: Maxim Cournoyer <address@hidden>
---
 gnu/packages/java.scm | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index c99e123..4d305aa 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -11,6 +11,9 @@
 ;;; Copyright © 2018 Chris Marusich <address@hidden>
 ;;; Copyright © 2018, 2019, 2020 Efraim Flashner <address@hidden>
 ;;; Copyright © 2019, 2020 Björn Höfling <address@hidden>
+;;; Copyright © 2020 Raghav Gururajan <address@hidden>
+;;; Copyright © 2020 Maxim Cournoyer <address@hidden>
+
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -105,6 +108,44 @@
 ;; build framework.  We then build the more recent JDKs Icedtea 2.x and
 ;; Icedtea 3.x.
 
+(define-public libantlr3c
+  (package
+    (name "libantlr3c")
+    (version "3.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append "https://www.antlr3.org/download/C/";
+                       name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0lpbnb4dq4azmsvlhp6khq1gy42kyqyjv8gww74g5lm2y6blm4fa"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:configure-flags (list "--enable-debuginfo" "--disable-static")
+       #:phases (modify-phases %standard-phases
+                  (replace 'configure
+                    (lambda* (#:key build target native-inputs inputs outputs
+                              (configure-flags '()) out-of-source? system
+                              #:allow-other-keys)
+                      (let ((configure (assoc-ref %standard-phases 'configure))
+                            (enable-64bit? (member system '("aarch64-linux"
+                                                            "x86_64-linux"
+                                                            
"mips64el-linux"))))
+                        (configure #:build build #:target target
+                                   #:native-inputs native-inputs
+                                   #:inputs inputs #:outputs outputs
+                                   #:configure-flags `(,(if enable-64bit?
+                                                            "--enable-64bit"
+                                                            '())
+                                                       ,@configure-flags)
+                                   #:out-of-source? out-of-source?)))))))
+    (synopsis "ANTLR C Library")
+    (description "LIBANTLR3C provides run-time C libraries for ANTLR3 (ANother
+Tool for Language Recognition v3).")
+    (home-page "https://www.antlr3.org/";)
+    (license license:bsd-3)))
+
 (define jikes
   (package
     (name "jikes")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]