[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
76/166: gnu: Add java-antlr4-runtime-cpp.
From: |
guix-commits |
Subject: |
76/166: gnu: Add java-antlr4-runtime-cpp. |
Date: |
Tue, 19 Apr 2022 09:12:22 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython+polyglossia
in repository guix.
commit 9de28178b3947183953430b790d3e06bf81475b4
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Apr 7 11:30:15 2022 -0400
gnu: Add java-antlr4-runtime-cpp.
* gnu/packages/java.scm (java-antlr4-runtime-cpp): New variable.
---
gnu/packages/java.scm | 35 ++++++++++++++++++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 43422f383f..539a6e6f6a 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -13,7 +13,7 @@
;;; Copyright © 2019, 2020, 2021 Björn Höfling
<bjoern.hoefling@bjoernhoefling.de>
;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2020 Raghav Gururajan <raghavgururajan@disroot.org>
-;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2020, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021 Vincent Legoll <vincent.legoll@gmail.com>
;;; Copyright © 2021 Mike Gerwitz <mtg@gnu.org>
;;; Copyright © 2021 Pierre Langlois <pierre.langlois@gmx.com>
@@ -45,6 +45,7 @@
#:use-module (guix utils)
#:use-module (guix gexp)
#:use-module (guix build-system ant)
+ #:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (guix build-system maven)
#:use-module (guix build-system trivial)
@@ -8619,6 +8620,38 @@ actual rendering.")
sources by ANTLR.")
(license license:bsd-3)))
+(define-public java-antlr4-runtime-cpp
+ (package
+ (inherit java-antlr4-runtime)
+ (name "java-antlr4-runtime-cpp")
+ (outputs '("out" "static"))
+ (build-system cmake-build-system)
+ (arguments
+ (list
+ ;; TODO: try to run the tests under
+ ;; runtime-testsuite/test/org/antlr/v4/test/runtime/cpp with antlr4.
+ #:tests? #f ;no CMake test target
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'chdir
+ (lambda _
+ (chdir "runtime/Cpp")))
+ (add-after 'install 'move-static-library
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((static (assoc-ref outputs "static"))
+ (libantlr4-runtime.a (search-input-file
+ outputs "lib/libantlr4-runtime.a")))
+ (mkdir-p (string-append static "/lib"))
+ (rename-file
+ libantlr4-runtime.a
+ (string-append static "/lib/"
+ (basename libantlr4-runtime.a)))))))))
+ (native-inputs (list pkg-config))
+ (inputs (list `(,util-linux "lib"))) ;libuuid
+ (synopsis "ANTL C++ runtime library")
+ (description "This package contains the C++ runtime library used with C++
+generated sources by ANTLR.")))
+
(define-public antlr4
(package
(inherit java-antlr4-runtime)
- 19/166: gnu: Add python-pcpp., (continued)
- 19/166: gnu: Add python-pcpp., guix-commits, 2022/04/19
- 74/166: gnu: python-scipy: Move input fields below arguments field., guix-commits, 2022/04/19
- 12/166: gnu: Add texlive-paralist., guix-commits, 2022/04/19
- 29/166: gnu: Add python-fontparts-bootstrap., guix-commits, 2022/04/19
- 49/166: gnu: python-mypy: Update to 0.942 and fix search path., guix-commits, 2022/04/19
- 28/166: gnu: Add python-booleanoperations., guix-commits, 2022/04/19
- 45/166: gnu: Add python-path-bootstrap., guix-commits, 2022/04/19
- 16/166: gnu: Add texlive-csplain., guix-commits, 2022/04/19
- 83/166: gnu: Add python-compreffor., guix-commits, 2022/04/19
- 18/166: gnu: Add texlive-zref., guix-commits, 2022/04/19
- 76/166: gnu: Add java-antlr4-runtime-cpp.,
guix-commits <=
- 41/166: gnu: Add python-types-freezegun., guix-commits, 2022/04/19
- 42/166: gnu: Add python-types-pytz., guix-commits, 2022/04/19
- 57/166: gnu: Add python-pip-run., guix-commits, 2022/04/19
- 43/166: gnu: Add python-pytest-freezegun., guix-commits, 2022/04/19
- 87/166: gnu: Add font-sil-ezra., guix-commits, 2022/04/19
- 40/166: gnu: Add python-autocommand., guix-commits, 2022/04/19
- 39/166: gnu: Add python-jaraco-functools-bootstrap., guix-commits, 2022/04/19
- 54/166: gnu: Add python-jaraco-functools., guix-commits, 2022/04/19
- 32/166: gnu: Add python-fontparts., guix-commits, 2022/04/19
- 21/166: gnu: Add python-opentype-sanitizer., guix-commits, 2022/04/19