From patchwork Fri May 3 13:01:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Lepiller X-Patchwork-Id: 13859 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 541D316F8F; Fri, 3 May 2019 14:08:25 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 027B716F8D for ; Fri, 3 May 2019 14:08:25 +0100 (BST) Received: from localhost ([127.0.0.1]:40591 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMXvM-00034m-JX for patchwork@mira.cbaines.net; Fri, 03 May 2019 09:08:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMXpN-0006gK-HX for guix-patches@gnu.org; Fri, 03 May 2019 09:02:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMXpM-0000mV-9j for guix-patches@gnu.org; Fri, 03 May 2019 09:02:13 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34535) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hMXpM-0000mM-5L for guix-patches@gnu.org; Fri, 03 May 2019 09:02:12 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hMXpL-0005uZ-Pq for guix-patches@gnu.org; Fri, 03 May 2019 09:02:11 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35545] [PATCH 16/17] gnu: Add java-commons-jcs. Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 03 May 2019 13:02:11 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35545 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35545@debbugs.gnu.org Received: via spool by 35545-submit@debbugs.gnu.org id=B35545.155688851422600 (code B ref 35545); Fri, 03 May 2019 13:02:11 +0000 Received: (at 35545) by debbugs.gnu.org; 3 May 2019 13:01:54 +0000 Received: from localhost ([127.0.0.1]:48065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMXp3-0005sM-Oi for submit@debbugs.gnu.org; Fri, 03 May 2019 09:01:54 -0400 Received: from lepiller.eu ([89.234.186.109]:60758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMXoz-0005qH-2U for 35545@debbugs.gnu.org; Fri, 03 May 2019 09:01:49 -0400 Received: from localhost.localdomain (89-92-10-229.hfc.dyn.abo.bbox.fr [89.92.10.229]) by lepiller.eu (OpenSMTPD) with ESMTPSA id 2750d996 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for <35545@debbugs.gnu.org>; Fri, 3 May 2019 13:01:42 +0000 (UTC) From: Julien Lepiller Date: Fri, 3 May 2019 15:01:33 +0200 Message-Id: <20190503130134.24788-16-julien@lepiller.eu> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190503130134.24788-1-julien@lepiller.eu> References: <20190503145820.606f37db@sybil.lepiller.eu> <20190503130134.24788-1-julien@lepiller.eu> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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 * gnu/packages/java.scm (java-commons-jcs): New variable. --- gnu/packages/java.scm | 46 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 8f8809c467..1ddcd4a814 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -5062,6 +5062,52 @@ very large. This package provides a way to share a poole of connections to reduce that load.") (license license:asl2.0))) +(define-public java-commons-jcs + (package + (name "java-commons-jcs") + (version "2.2.1") + (source (origin + (method url-fetch) + (uri (string-append "mirror://apache/commons/jcs/source/" + "commons-jcs-dist-" version "-src.tar.gz")) + (sha256 + (base32 + "0syhq2npjbrl0azqfjm0gvash1qd5qjy4qmysxcrqjsk0nf9fa1q")))) + (build-system ant-build-system) + (arguments + `(#:jar-name "commons-jcs.jar" + #:source-dir "commons-jcs-core/src/main/java" + #:test-dir "commons-jcs-core/src/test" + #:tests? #f; requires hsqldb + #:phases + (modify-phases %standard-phases + (add-before 'build 'prepare + (lambda _ + (with-directory-excursion + "commons-jcs-core/src/main/java/org/apache/commons/jcs" + (substitute* + "auxiliary/disk/jdbc/dsfactory/SharedPoolDataSourceFactory.java" + (("commons.dbcp") "commons.dbcp2") + ((".*\\.setMaxActive.*") "")) + ;;; Remove dependency on velocity-tools + (delete-file "admin/servlet/JCSAdminServlet.java")) + #t))))) + (propagated-inputs + `(("java-classpathx-servletapi" ,java-classpathx-servletapi) + ("java-commons-logging-minimal" ,java-commons-logging-minimal) + ("java-commons-httpclient" ,java-commons-httpclient) + ("java-commons-dbcp" ,java-commons-dbcp2))) + (native-inputs + `(("java-junit" ,java-junit))) + (home-page "https://commons.apache.org/proper/commons-jcs/") + (synopsis "Distributed caching system in Java") + (description "JCS is a distributed caching system written in Java. It +is intended to speed up applications by providing a means to manage cached +data of various dynamic natures. Like any caching system, JCS is most useful +for high read, low put applications. Latency times drop sharply and +bottlenecks move away from the database in an effectively cached system.") + (license license:asl2.0))) + (define-public java-jsr250 (package (name "java-jsr250")