Subject: [bug#28663] [PATCH 18/22] gnu: Add java-osgi-service-jdbc.

From: [email-masked]
Date: Sun, 1 Oct 2017 19:53:30 +0200

From: Julien Lepiller <[email-masked]>

* gnu/packages/java.scm (java-osgi-service-jdbc): New variable.
---
 gnu/packages/java.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 16e39c150..9e588e520 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5165,3 +5165,35 @@ and service platform for the Java programming language.")
 and service platform for the Java programming language.  This package contains
 the log service.")
     (license license:asl2.0)))
+
+(define-public java-osgi-service-jdbc
+  (package
+    (name "java-osgi-service-jdbc")
+    (version "1.0.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "http://central.maven.org/maven2/org/osgi/"
+                                  "org.osgi.service.jdbc/"
+                                  version "/org.osgi.service.jdbc-"
+                                  version "-sources.jar"))
+              (sha256
+               (base32
+                "11iln5v7bk469cgb9ddkrz9sa95b3733gqgaqw9xf5g6wq652yjz"))))
+    (build-system ant-build-system)
+    (arguments
+     `(#:jar-name "osgi-service-jdbc.jar"
+       #:tests? #f)); no tests
+    (home-page "http://www.osgi.org")
+    (synopsis "Factory for JDBC connection factories")
+    (description
+      "OSGi, for Open Services Gateway initiative framework, is a module system
+and service platform for the Java programming language.  This package contains
+A factory for JDBC connection factories. There are 3 preferred connection
+factories for getting JDBC connections:
+
+@begin{itemize}
+@item @code{javax.sql.DataSource};
+@item @code{javax.sql.ConnectionPoolDataSource};
+@item @code{javax.sql.XADataSource}.
+@end{itemize}")
+    (license license:asl2.0)))
-- 
2.14.1