diff options
author | Julien Lepiller <julien@lepiller.eu> | 2017-10-04 20:27:19 +0200 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2017-10-10 22:05:43 +0200 |
commit | f234c7a065118c0928f0359f4fb34cab6346d518 (patch) | |
tree | b8d55258c45847e2aa277f796323d52f05eee668 /gnu | |
parent | 0b5481dfd3c024ad18243016f297fc6848815e0b (diff) | |
download | patches-f234c7a065118c0928f0359f4fb34cab6346d518.tar patches-f234c7a065118c0928f0359f4fb34cab6346d518.tar.gz |
gnu: Add java-fasterxml-jackson-databind.
* gnu/packages/java.scm (java-fasterxml-jackson-databind): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/java.scm | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 38c731810f..1d9a24775b 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -5741,3 +5741,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 |