aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorLiliana Marie Prikler <liliana.prikler@gmail.com>2023-07-29 16:32:46 +0200
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2023-08-05 13:39:44 +0200
commit6facf26f0eea08533323b5cebd441d520840df01 (patch)
treeef2ab3532ec1bdfaf9f449ac177632fed0129fc0 /gnu/packages
parent50281136d41c8e7953b8ea3d4b25b441d904d5df (diff)
downloadguix-6facf26f0eea08533323b5cebd441d520840df01.tar.gz
guix-6facf26f0eea08533323b5cebd441d520840df01.zip
gnu: Add java-httpcomponents-httpclient-cache.
* gnu/packages/java.scm (java-httpcomponents-httpclient-cache): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/java.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index f3cc4822b2..2106dfd074 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6278,6 +6278,34 @@ feature-rich package implementing the client side of the most recent HTTP
standards and recommendations.")
(license license:asl2.0)))
+(define-public java-httpcomponents-httpclient-cache
+ (package (inherit java-httpcomponents-httpclient)
+ (name "java-httpcomponents-httpclient-cache")
+ (arguments
+ `(#:jar-name "httpcomponents-httpclient-cache.jar"
+ #:source-dir "src/main/java"
+ #:test-dir "src/test"
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'delete-unused-impls
+ (lambda _
+ (for-each
+ delete-file-recursively
+ '("src/main/java/org/apache/http/impl/client/cache/ehcache/"
+ "src/main/java/org/apache/http/impl/client/cache/memcached/"
+ "src/test/java/org/apache/http/impl/client/cache/ehcache/"
+ "src/test/java/org/apache/http/impl/client/cache/memcached/"))))
+ (add-after 'unpack 'chdir
+ (lambda _ (chdir "httpclient-cache"))))))
+ (inputs
+ (modify-inputs (package-inputs java-httpcomponents-httpclient)
+ (prepend java-httpcomponents-httpclient
+ java-httpcomponents-httpmime
+ java-hamcrest-core)))
+ (native-inputs (list java-easymock-3.2 java-easymock-class-extension))
+ (description "This package provides an API for caching accessed HTTP
+resources.")))
+
(define-public java-httpcomponents-httpmime
(package (inherit java-httpcomponents-httpclient)
(name "java-httpcomponents-httpmime")