From fb64a1bd58481ba7e282b59fae2d0d75371cf34b Mon Sep 17 00:00:00 2001 From: Liliana Marie Prikler Date: Sat, 29 Jul 2023 16:54:21 +0200 Subject: [PATCH] gnu: Add java-httpcomponents-httpclient-osgi. * gnu/packages/java.scm (java-httpcomponents-httpclient-osgi): New variable. --- gnu/packages/java.scm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index fb8472f407..4e0146f7a7 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")