[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
76/242: gnu: Add java-antlr4-runtime-cpp.
From: |
guix-commits |
Subject: |
76/242: gnu: Add java-antlr4-runtime-cpp. |
Date: |
Wed, 11 May 2022 18:02:54 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit 93b4df462b0abd174bc6a81f617d5696551d28d1
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 97eae386de..36baefaa7a 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)
@@ -8629,6 +8630,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)
- 65/242: gnu: Add python-ordered-set., (continued)
- 65/242: gnu: Add python-ordered-set., guix-commits, 2022/05/11
- 68/242: gnu: python-setuptools: Update to 62.0.0., guix-commits, 2022/05/11
- 86/242: gnu: Add font-amiri., guix-commits, 2022/05/11
- 73/242: gnu: python-jupyter-packaging: Update to 0.12.0, run test suite., guix-commits, 2022/05/11
- 77/242: gnu: Add python-fonttools-next., guix-commits, 2022/05/11
- 81/242: gnu: Add python-skia-pathops., guix-commits, 2022/05/11
- 84/242: gnu: Add python-ufo2ft., guix-commits, 2022/05/11
- 91/242: gnu: python-flask: Update to 2.1.1., guix-commits, 2022/05/11
- 94/242: gnu: pylint: Run tests in parallel., guix-commits, 2022/05/11
- 90/242: gnu: python-click: Update to 8.1.2 and honor TESTS?., guix-commits, 2022/05/11
- 76/242: gnu: Add java-antlr4-runtime-cpp.,
guix-commits <=
- 85/242: gnu: Add python-sfdlib., guix-commits, 2022/05/11
- 97/242: gnu: Add python-debugpy., guix-commits, 2022/05/11
- 100/242: gnu: python-pytest-xdist-next: Update to 2.5.0., guix-commits, 2022/05/11
- 102/242: gnu: python-nest-asyncio: Update to 1.5.5., guix-commits, 2022/05/11
- 103/242: gnu: python-jupyter-core: Update to 4.10.0., guix-commits, 2022/05/11
- 104/242: gnu: python-jupyter-client: Update to 7.2.2., guix-commits, 2022/05/11
- 105/242: gnu: python-ipykernel: Update to 6.13.0., guix-commits, 2022/05/11
- 107/242: gnu: python-ipyparallel: Update to 8.2.1., guix-commits, 2022/05/11
- 108/242: gnu: python-anyio: Replace python-pytest-trio with python-trio., guix-commits, 2022/05/11
- 115/242: gnu: python-nbval: Fix build., guix-commits, 2022/05/11