From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMYbC-0001W1-NG for guix-patches@gnu.org; Sat, 26 May 2018 08:47:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMYbA-0006dI-QC for guix-patches@gnu.org; Sat, 26 May 2018 08:47:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:41215) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fMYbA-0006dE-Mq for guix-patches@gnu.org; Sat, 26 May 2018 08:47:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fMYbA-0007ef-GP for guix-patches@gnu.org; Sat, 26 May 2018 08:47:04 -0400 Subject: [bug#31604] [PATCH 6/8] gnu: Add java-janino. Resent-Message-ID: From: Julien Lepiller Date: Sat, 26 May 2018 14:45:48 +0200 Message-Id: <20180526124550.5136-6-julien@lepiller.eu> In-Reply-To: <20180526124550.5136-1-julien@lepiller.eu> References: <20180526144338.72814509@lepiller.eu> <20180526124550.5136-1-julien@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: 31604@debbugs.gnu.org * gnu/packages/java.scm (java-janino): New variable. --- gnu/packages/java.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index cfd8f8159..a810a5358 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -10017,3 +10017,26 @@ adds Plexus support to the Sisu-Inject container.") @code{IExpressionEvaluator}, @code{IScriptEvaluator}, @code{IClassBodyEvaluator} and @code{ISimpleCompiler} interfaces.") (license license:bsd-3))) + +(define-public java-janino + (package + (inherit java-commons-compiler) + (name "java-janino") + (arguments + `(#:jar-name "janino.jar" + #:source-dir "src/main/java" + #:phases + (modify-phases %standard-phases + (add-before 'configure 'chdir + (lambda _ + (chdir "janino")))))) + (inputs + `(("java-commons-compiler" ,java-commons-compiler))) + (native-inputs + `(("java-junit" ,java-junit) + ("java-hamcrest-core" ,java-hamcrest-core))) + (description "Janino is a Java compiler. Janino can compile a set of +source files to a set of class files like @code{javac}, but also compile a +Java expression, block, class body or source file in memory, load the bytecode +and execute it directly in the same JVM. @code{janino} can also be used for +static code analysis or code manipulation."))) -- 2.17.0