diff mbox series

[bug#64934,12/42] gnu: Add java-httpcomponents-httpclient-osgi.

Message ID 7642d5e8de3f7704f281343065398d966669594e.1690646441.git.liliana.prikler@gmail.com
State New
Headers show
Series I tried to semantic the web, and after downloading half the Internet, these are some packages I came up with | expand

Commit Message

Liliana Marie Prikler July 29, 2023, 2:54 p.m. UTC
* gnu/packages/java.scm (java-httpcomponents-httpclient-osgi): New variable.
---
 gnu/packages/java.scm | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index c84d34634a..6374112b99 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6332,6 +6332,23 @@  (define-public java-httpcomponents-httpclient-cache
     (description "This package provides an API for caching accessed HTTP
 resources.")))
 
+(define-public java-httpcomponents-httpclient-osgi
+  (package (inherit java-httpcomponents-httpclient)
+    (name "java-httpcomponents-httpclient-osgi")
+    (arguments
+     `(#:jar-name "httpcomponents-httpclient-osgi.jar"
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'chdir
+           (lambda _ (chdir "httpclient-osgi") #t)))))
+    (inputs
+     (modify-inputs (package-inputs java-httpcomponents-httpclient)
+                    (prepend java-httpcomponents-httpclient
+                             java-httpcomponents-httpclient-cache
+                             java-osgi-framework
+                             java-osgi-service-cm
+                             java-hamcrest-core)))))
+
 (define-public java-httpcomponents-httpmime
   (package (inherit java-httpcomponents-httpclient)
     (name "java-httpcomponents-httpmime")