From patchwork Fri Apr 16 01:24:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Gerwitz X-Patchwork-Id: 28583 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6DFA527BC76; Fri, 16 Apr 2021 02:29:02 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E9C0527BC77 for ; Fri, 16 Apr 2021 02:29:01 +0100 (BST) Received: from localhost ([::1]:44940 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXDI5-0006lQ-5l for patchwork@mira.cbaines.net; Thu, 15 Apr 2021 21:29:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXDH8-0006Ky-Q9 for guix-patches@gnu.org; Thu, 15 Apr 2021 21:28:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56345) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lXDH7-0003dD-Qi for guix-patches@gnu.org; Thu, 15 Apr 2021 21:28:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lXDH7-0008Tm-M7 for guix-patches@gnu.org; Thu, 15 Apr 2021 21:28:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47789] [PATCH 5/6] gnu: Add java-jline-reader. Resent-From: Mike Gerwitz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 16 Apr 2021 01:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47789 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47789@debbugs.gnu.org Received: via spool by 47789-submit@debbugs.gnu.org id=B47789.161853644132536 (code B ref 47789); Fri, 16 Apr 2021 01:28:01 +0000 Received: (at 47789) by debbugs.gnu.org; 16 Apr 2021 01:27:21 +0000 Received: from localhost ([127.0.0.1]:39654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXDGF-0008SO-9q for submit@debbugs.gnu.org; Thu, 15 Apr 2021 21:27:21 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXDGD-0008R7-L3 for 47789@debbugs.gnu.org; Thu, 15 Apr 2021 21:27:05 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47786) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXDG7-0003Hr-21 for 47789@debbugs.gnu.org; Thu, 15 Apr 2021 21:27:00 -0400 Received: from localhost ([::1]:39240 helo=mikegerwitz-pc) by fencepost.gnu.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lXDFy-0000ie-1R for 47789@debbugs.gnu.org; Thu, 15 Apr 2021 21:26:54 -0400 From: Mike Gerwitz In-Reply-To: Date: Thu, 15 Apr 2021 21:24:26 -0400 References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) X-From-Line: ec42242cb183cb1a446d9eed3d683af5dd8bfbd9 Mon Sep 17 00:00:00 2001 Message-Id: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches This package is part of JLine 3. * gnu/packages/java.scm (java-jline-reader): New variable. --- gnu/packages/java.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 9bf26b1dc7..a474c40ebb 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -12523,6 +12523,47 @@ find most of the command editing features of JLine to be familiar. This package includes the @var{Terminal} API and implementations.") (license license:bsd-3))) +(define-public java-jline-reader + (package + (name "java-jline-reader") + (version "3.14.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jline/jline3") + (commit (string-append "jline-parent-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0ilhk9ljp0pivl1rn0bb06syshc67p6imcjhrg6vr7kv15p3w4lr")))) + (build-system ant-build-system) + (arguments + `(#:jar-name "jline-reader.jar" + #:jdk ,openjdk11 + #:source-dir "reader/src/main/java" + #:test-dir "reader/src/test" + #:phases + (modify-phases %standard-phases + (add-before 'build 'remove-build-file + (lambda _ + ;; conflicts with build directory generated by ant-build-system + (delete-file "build")))))) + (native-inputs + `(("java-junit" ,java-junit) + ("java-easymock" ,java-easymock))) + (inputs + `(("java-jline-terminal" ,java-jline-terminal))) + (home-page "https://github.com/jline/jline3") + (synopsis "Java JLine line reader") + (description "JLine is a Java library for handling console input. It is +similar in functionality to BSD editline and GNU readline but with additional +features that bring it in par with ZSH line editor. People familiar with the +readline/editline capabilities for modern shells (such as bash and tcsh) will +find most of the command editing features of JLine to be familiar. + +This package includes the line reader.") + (license license:bsd-3))) + (define-public java-xmlunit (package (name "java-xmlunit")