From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQuzu-0006FN-KD for guix-patches@gnu.org; Fri, 30 Jun 2017 08:26:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQuzr-0001Y8-9M for guix-patches@gnu.org; Fri, 30 Jun 2017 08:26:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:42910) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dQuzr-0001Y4-6K for guix-patches@gnu.org; Fri, 30 Jun 2017 08:26:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dQuzq-0007gu-Ty for guix-patches@gnu.org; Fri, 30 Jun 2017 08:26:02 -0400 Subject: [bug#27537] [PATCH 3/6] gnu: Add java-slf4j-api. Resent-Message-ID: From: Ricardo Wurmus Date: Fri, 30 Jun 2017 14:25:20 +0200 Message-Id: <20170630122523.30510-3-rekado@elephly.net> In-Reply-To: <20170630122523.30510-1-rekado@elephly.net> References: <20170630122523.30510-1-rekado@elephly.net> 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: 27537@debbugs.gnu.org Cc: Ricardo Wurmus * gnu/packages/java.scm (java-slf4j-api): New variable. --- gnu/packages/java.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index d8f5eacc1..f23138050 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -4151,6 +4151,43 @@ more efficient storage-wise than an uncompressed bitmap (as implemented in the ;; GPL2.0 derivates are explicitly allowed. (license license:asl2.0))) +(define-public java-slf4j-api + (package + (name "java-slf4j-api") + (version "1.7.25") + (source (origin + (method url-fetch) + (uri (string-append "https://www.slf4j.org/dist/slf4j-" + version ".tar.gz")) + (sha256 + (base32 + "13j51sgzmhhdrfa74gkal5zpip7r1440dh7zsi2c8bpb2zs1v8kb")) + (modules '((guix build utils))) + ;; Delete bundled jars. + (snippet + '(begin + (for-each delete-file (find-files "." "\\.jar$")) + #t)))) + (build-system ant-build-system) + (arguments + ;; FIXME: org.slf4j.NoBindingTest fails with the ominous "This code + ;; should have never made it into slf4j-api.jar". + `(#:tests? #f + #:jar-name "slf4j-api.jar" + #:source-dir "slf4j-api/src/main" + #:test-dir "slf4j-api/src/test")) + (inputs + `(("java-junit" ,java-junit) + ("java-hamcrest-core" ,java-hamcrest-core))) + (home-page "https://www.slf4j.org/") + (synopsis "Simple logging facade for Java") + (description "The Simple Logging Facade for Java (SLF4J) serves as a +simple facade or abstraction for various logging +frameworks (e.g. @code{java.util.logging}, @code{logback}, @code{log4j}) +allowing the end user to plug in the desired logging framework at deployment +time.") + (license license:expat))) + (define-public antlr2 (package (name "antlr2") -- 2.12.2