unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: julien@lepiller.eu
To: 28707@debbugs.gnu.org
Subject: [bug#28707] [PATCH 17/23] gnu: Add java-fasterxml-jackson-databind.
Date: Wed,  4 Oct 2017 22:37:29 +0200	[thread overview]
Message-ID: <20171004203735.21155-17-julien@lepiller.eu> (raw)
In-Reply-To: <20171004203735.21155-1-julien@lepiller.eu>

From: Julien Lepiller <julien@lepiller.eu>

* gnu/packages/java.scm (java-fasterxml-jackson-databind): New variable.
---
 gnu/packages/java.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 7abbc08dd..7202db8af 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5706,3 +5706,46 @@ not included are ones that require dependency to the Databind package.")
     (synopsis "")
     (description "")
     (license license:asl2.0))); found on wiki.fasterxml.com/JacksonLicensing
+
+(define-public java-fasterxml-jackson-databind
+  (package
+    (name "java-fasterxml-jackson-databind")
+    (version "2.9.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://github.com/FasterXML/"
+                                  "jackson-databind/archive/"
+                                  "jackson-databind-" version ".tar.gz"))
+              (sha256
+               (base32
+                "02xrbj6g7pzybq8q33xmpf7cxfapk6z6lgxvig7d38fijz400lji"))))
+    (build-system ant-build-system)
+    (arguments
+     `(#:jar-name "jackson-databind.jar"
+       #:source-dir "src/main/java"
+       #:tests? #f; requires javax.measures for which I can't find a free implementation
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'configure 'generate-PackageVersion.java
+           (lambda _
+             (let* ((out "src/main/java/com/fasterxml/jackson/databind/cfg/PackageVersion.java")
+                    (in (string-append out ".in")))
+               (copy-file in out)
+               (substitute* out
+                 (("@package@") "com.fasterxml.jackson.databind.cfg")
+                 (("@projectversion@") ,version)
+                 (("@projectgroupid@") "com.fasterxml.jackson.databind")
+                 (("@projectartifactid@") "jackson-databind")))))
+         (add-before 'build 'copy-resources
+           (lambda _
+             (copy-recursively "src/main/resources" "build/classes"))))))
+    (inputs
+     `(("java-fasterxml-jackson-annotations" ,java-fasterxml-jackson-annotations)
+       ("java-fasterxml-jackson-core" ,java-fasterxml-jackson-core)))
+    (home-page "https://github.com/FasterXML/jackson-databind")
+    (synopsis "Data-binding functionality and tree-model for the Jackson Data Processor")
+    (description "This package contains the general-purpose data-binding
+functionality and tree-model for Jackson Data Processor.  It builds on core
+streaming parser/generator package, and uses Jackson Annotations for
+configuration.")
+    (license license:asl2.0))); found on wiki.fasterxml.com/JacksonLicensing
-- 
2.14.2

  parent reply	other threads:[~2017-10-04 20:40 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-04 20:33 [bug#28707] [PATCH] java packages Julien Lepiller
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
2017-10-04 20:37   ` [bug#28707] [PATCH 02/23] gnu: Add java-ops4j-base-monitors julien
2017-10-04 20:37   ` [bug#28707] [PATCH 03/23] gnu: Add java-ops4j-base-io julien
2017-10-04 20:37   ` [bug#28707] [PATCH 04/23] gnu: Add java-ops4j-base-util julien
2017-10-04 20:37   ` [bug#28707] [PATCH 05/23] gnu: Add java-ops4j-base-util-property julien
2017-10-04 20:37   ` [bug#28707] [PATCH 06/23] gnu: Add java-ops4j-base-store julien
2017-10-04 20:37   ` [bug#28707] [PATCH 07/23] gnu: Add java-ops4j-base-spi julien
2017-10-04 20:37   ` [bug#28707] [PATCH 08/23] gnu: Add java-aqute-bnd-annotation julien
2017-10-04 20:37   ` [bug#28707] [PATCH 09/23] gnu: Add java-aqute-libg julien
2017-10-04 20:37   ` [bug#28707] [PATCH 10/23] gnu: Add java-aqute-bndlib julien
2017-10-04 20:37   ` [bug#28707] [PATCH 11/23] gnu: Add java-ops4j-pax-tinybundles julien
2017-10-04 20:37   ` [bug#28707] [PATCH 12/23] gnu: Add java-ops4j-pax-exam-core julien
2017-10-04 20:37   ` [bug#28707] [PATCH 13/23] gnu: Add java-ops4j-pax-exam-core-spi julien
2017-10-04 20:37   ` [bug#28707] [PATCH 14/23] gnu: Add java-ops4j-pax-exam-core-junit julien
2017-10-04 20:37   ` [bug#28707] [PATCH 15/23] gnu: Add java-fasterxml-jackson-annotations julien
2017-10-04 20:37   ` [bug#28707] [PATCH 16/23] gnu: Add java-fasterxml-jackson-core julien
2017-10-04 20:37   ` julien [this message]
2017-10-04 20:37   ` [bug#28707] [PATCH 18/23] gnu: Add java-fasterxml-jackson-modules-base-jaxb julien
2017-10-04 20:37   ` [bug#28707] [PATCH 19/23] gnu: Add java-snakeyaml julien
2017-10-04 20:37   ` [bug#28707] [PATCH 20/23] gnu: Add java-fasterxml-jackson-dataformat-yaml julien
2017-10-04 20:37   ` [bug#28707] [PATCH 21/23] gnu: Add java-stax2-api julien
2017-10-04 20:37   ` [bug#28707] [PATCH 22/23] gnu: Add java-woodstox-core julien
2017-10-04 20:37   ` [bug#28707] [PATCH 23/23] gnu: Add java-fasterxml-jackson-dataformat-xml julien
2017-10-09 19:36 ` [bug#28707] [PATCH] java packages Leo Famulari
2017-10-10 20:08   ` bug#28707: " Julien Lepiller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171004203735.21155-17-julien@lepiller.eu \
    --to=julien@lepiller.eu \
    --cc=28707@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).