gnu: Add java-metadata-extractor.

* gnu/packages/java.scm (java-metadata-extractor): New variable.
This commit is contained in:
Julien Lepiller 2019-05-03 12:31:35 +02:00
parent 357f456400
commit a005c63a21
No known key found for this signature in database
GPG key ID: 43111F4520086A0C

View file

@ -11319,3 +11319,40 @@ (define-public java-xmp
into the file itself. The XMP Toolkit for Java is based on the C++ XMPCore
library and the API is similar.")
(license license:bsd-3)))
(define-public java-metadata-extractor
(package
(name "java-metadata-extractor")
(version "2.11.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/drewnoakes/metadata-extractor")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"06yrq0swrl1r40yjbk5kqzjxr04jlkq9lfi711jvfgjf5kp2qinj"))))
(build-system ant-build-system)
(arguments
`(#:jar-name "metadata-extractor.jar"
#:source-dir "Source"
#:test-dir "Tests"
#:phases
(modify-phases %standard-phases
(add-before 'check 'fix-test-dir
(lambda _
(substitute* "build.xml"
(("/java\">") "\">"))
#t)))))
(propagated-inputs
`(("java-xmp" ,java-xmp)))
(native-inputs
`(("java-hamcrest-core" ,java-hamcrest-core)
("java-junit" ,java-junit)))
(home-page "https://github.com/drewnoakes/metadata-extractor")
(synopsis "Extract metadata from image and video files")
(description "Metadata-extractor is a straightforward Java library for
reading metadata from image files. It is able to read metadata in Exif,
IPTC, XMP, ICC and more formats.")
(license license:asl2.0)))