[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26803: [PATCH 26/36] gnu: Add java-commons-logging-minimal.
From: |
Roel Janssen |
Subject: |
bug#26803: [PATCH 26/36] gnu: Add java-commons-logging-minimal. |
Date: |
Wed, 10 May 2017 20:09:17 +0200 |
User-agent: |
mu4e 0.9.18; emacs 25.1.1 |
Ricardo Wurmus writes:
> * gnu/packages/java.scm (java-commons-logging-minimal): New variable.
> ---
> gnu/packages/java.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 47 insertions(+)
>
> diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
> index a9faf681d..859f9934a 100644
> --- a/gnu/packages/java.scm
> +++ b/gnu/packages/java.scm
> @@ -1930,6 +1930,53 @@ concurrency, I/O, hashing, primitives, reflection,
> string processing, and much
> more!")
> (license license:asl2.0)))
>
> +;; The java-commons-logging package provides adapters to many different
> +;; logging frameworks. To avoid an excessive dependency graph we try to
> build
> +;; it with only a minimal set of adapters.
> +(define-public java-commons-logging-minimal
> + (package
> + (name "java-commons-logging-minimal")
> + (version "1.2")
> + (source (origin
> + (method url-fetch)
> + (uri (string-append "mirror://apache/commons/logging/source/"
> + "commons-logging-" version "-src.tar.gz"))
> + (sha256
> + (base32
> + "10bwcy5w8d7y39n0krlwhnp8ds3kj5zhmzj0zxnkw0qdlsjmsrj9"))))
> + (build-system ant-build-system)
> + (arguments
> + `(#:tests? #f ; avoid dependency on logging frameworks
> + #:jar-name "commons-logging-minimal.jar"
> + #:phases
> + (modify-phases %standard-phases
> + (add-after 'unpack 'delete-adapters-and-tests
> + (lambda _
> + ;; Delete all adapters except for NoOpLog, SimpleLog, and
> + ;; LogFactoryImpl. NoOpLog is required to build; LogFactoryImpl
> + ;; is used by applications; SimpleLog is the only actually
> usable
> + ;; implementation that does not depend on another logging
> + ;; framework.
> + (for-each
> + (lambda (file)
> + (delete-file (string-append
> +
> "src/main/java/org/apache/commons/logging/impl/" file)))
> + (list "Jdk13LumberjackLogger.java"
> + "WeakHashtable.java"
> + "Log4JLogger.java"
> + "ServletContextCleaner.java"
> + "Jdk14Logger.java"
> + "AvalonLogger.java"
> + "LogKitLogger.java"))
> + (delete-file-recursively "src/test")
Interesting.
> + #t)))))
> + (home-page "http://commons.apache.org/logging/")
> + (synopsis "Common API for logging implementations")
> + (description "The Logging package is a thin bridge between different
> +logging implementations. A library that uses the commons-logging API can be
> +used with any logging implementation at runtime.")
> + (license license:asl2.0)))
> +
> (define-public java-commons-cli
> (package
> (name "java-commons-cli")
LGTM!
I have to fix the Guile 2.0 -> 2.2 transition now, so it'll take a
little longer before I can comment on the next patch.
Kind regards,
Roel Janssen
bug#26803: [PATCH 26/36] gnu: Add java-commons-logging-minimal., Ricardo Wurmus, 2017/05/06
bug#26803: [PATCH 21/36] gnu: Add java-jmock-1., Ricardo Wurmus, 2017/05/06
bug#26803: [PATCH 20/36] gnu: Add java-commons-daemon., Ricardo Wurmus, 2017/05/06
bug#26803: [PATCH 28/36] gnu: Add java-httpcomponents-httpcore., Ricardo Wurmus, 2017/05/06
bug#26803: [PATCH 29/36] gnu: Add java-httpcomponents-httpcore-nio., Ricardo Wurmus, 2017/05/06