From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHRPy-0002vj-OC for guix-patches@gnu.org; Wed, 22 Nov 2017 04:34:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eHRPv-0007I0-L0 for guix-patches@gnu.org; Wed, 22 Nov 2017 04:34:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:43131) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eHRPv-0007Hr-Hm for guix-patches@gnu.org; Wed, 22 Nov 2017 04:34:03 -0500 Subject: [bug#29359] [PATCH 08/31] gnu: Add java-jansi. Resent-Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 22 Nov 2017 10:33:56 +0100 From: julien lepiller In-Reply-To: <20171119175805.902-8-julien@lepiller.eu> References: <20171119175805.902-1-julien@lepiller.eu> <20171119175805.902-8-julien@lepiller.eu> Message-ID: <62e8bafe388882f1dcb7a1e6b33006e0@lepiller.eu> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 29359@debbugs.gnu.org Le 2017-11-19 18:57, Julien Lepiller a écrit : > * gnu/packages/java.scm (java-jansi): New variable. > --- > gnu/packages/java.scm | 27 +++++++++++++++++++++++++++ > 1 file changed, 27 insertions(+) > > diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm > index 3811dcdc8..5d45a9949 100644 > --- a/gnu/packages/java.scm > +++ b/gnu/packages/java.scm > @@ -7714,3 +7714,30 @@ that is part of the SWT Tools project.") > (synopsis "Native library for jansi") > (description "Java-jansi-native contains the native library for > jansi.") > (license license:asl2.0))) > + > +(define-public java-jansi > + (package > + (name "java-jansi") > + (version "1.16") > + (source (origin > + (method url-fetch) > + (uri (string-append > "https://github.com/fusesource/jansi/archive/" > + "jansi-project-" version ".tar.gz")) > + (sha256 > + (base32 > + > "11kh3144i3fzp21dpy8zg52mjmsr214k7km9p8ly0rqk2px0qq2z")))) > + (build-system ant-build-system) > + (arguments > + `(#:jar-name "jansi.jar" > + #:source-dir "jansi/src/main/java" > + #:test-dir "jansi/src/test")) > + (inputs > + `(("java-jansi-native" ,java-jansi-native))) > + (native-inputs > + `(("java-junit" ,java-junit) > + ("java-hamcrest-core" ,java-hamcrest-core))) > + (home-page "https://fusesource.github.io/jansi/") > + (synopsis "Portable ANSI escape sequences") > + (description "Jansi is a Java library that allows you to use ANSI > escape > +sequences to format your console output which works on every > platform.") > + (license license:asl2.0))) There's a small issue with this package: when it runs its tests, it will output formatted text with colors but forgets to clean the console afterwards, which leaves the console with a bold red font. Any idea on how to clean that? Shouldn't the environment block this kind of thing?