diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-java/metadata-extractor | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/metadata-extractor')
-rw-r--r-- | dev-java/metadata-extractor/Manifest | 3 | ||||
-rw-r--r-- | dev-java/metadata-extractor/metadata-extractor-2.8.1.ebuild | 51 | ||||
-rw-r--r-- | dev-java/metadata-extractor/metadata.xml | 20 |
3 files changed, 74 insertions, 0 deletions
diff --git a/dev-java/metadata-extractor/Manifest b/dev-java/metadata-extractor/Manifest new file mode 100644 index 000000000000..02f5bb7a0153 --- /dev/null +++ b/dev-java/metadata-extractor/Manifest @@ -0,0 +1,3 @@ +DIST metadata-extractor-2.8.1.tar.gz 3132397 BLAKE2B 919a0bdb04304255efbe3cc39def8c8d6440334853e840acaf5c2c51f4eec53860f0abb5d2c99d26c8865c846270f5a331372cebce7cdf1fea9831e3701afe41 SHA512 4e9fe88be4112fbf9ce481e7fd3b3a7c9544d1d5b1ebd646d2c6e2a2a1fe2d53a4b80ab859fe5e277c3e72f5e035aa46d7af7a953a182f5b8215edf9cde99974 +EBUILD metadata-extractor-2.8.1.ebuild 1179 BLAKE2B 30e087e1e06bcb51f6ecc53def755d7984da880b6fd63e46fccbd159716d1737d82f82c96a723264ba5f33dae13fd2199ac0135293b5f2842d201081cc708a8f SHA512 86edd91c93b17f35fb6e62f4fe04a69f27cce096d0470c46be2f3bc02c296104cc80703cd4feb40c1b38d2327ed962076e0a9ddae7a094770b1a9a095ce93aab +MISC metadata.xml 744 BLAKE2B 6fa67251c20eefea15005ed8e193ea650a9f8b7fa0c4acabd38173ca7fa25be53a45efcf8a1e2da24a43a6513350adb5d714077e13e7069357f01210a61de921 SHA512 a83a4d45bd9abc54687d55cf3aa0756915d261391ec317f27775639b08a8e973f865e9f1885d306a5344630f101ee5cffc0b080b791ace2c35c46812d946c780 diff --git a/dev-java/metadata-extractor/metadata-extractor-2.8.1.ebuild b/dev-java/metadata-extractor/metadata-extractor-2.8.1.ebuild new file mode 100644 index 000000000000..d92aacdc6272 --- /dev/null +++ b/dev-java/metadata-extractor/metadata-extractor-2.8.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Access the metadata in digital images and video via a simple Java API" +HOMEPAGE="http://www.drewnoakes.com/code/exif/" +SRC_URI="https://github.com/drewnoakes/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples test" + +CDEPEND="dev-java/xmpcore:0" + +DEPEND="${CDEPEND} + >=virtual/jdk-1.6 + test? ( dev-java/junit:4 )" + +RDEPEND="${CDEPEND} + >=virtual/jre-1.6" + +S="${WORKDIR}/${P}" +JAVA_SRC_DIR="Source" +JAVA_GENTOO_CLASSPATH="xmpcore" + +java_prepare() { + java-pkg_clean +} + +src_install() { + java-pkg-simple_src_install + dodoc {CONTRIBUTING,README}.md + use examples && java-pkg_doexamples Samples +} + +src_test() { + local DIR=Tests + local CP="${DIR}:${S}/${PN}.jar:$(java-pkg_getjars junit-4,${JAVA_GENTOO_CLASSPATH})" + local TESTS=$(find ${DIR} -name "*Test.java") + TESTS="${TESTS//Tests\/}" + TESTS="${TESTS//.java}" + TESTS="${TESTS//\//.}" + + ejavac -cp "${CP}" -d ${DIR} $(find ${DIR} -name "*.java") + ejunit4 -classpath "${CP}" ${TESTS} +} diff --git a/dev-java/metadata-extractor/metadata.xml b/dev-java/metadata-extractor/metadata.xml new file mode 100644 index 000000000000..9ad285ab6075 --- /dev/null +++ b/dev-java/metadata-extractor/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <longdescription> + metadata-extractor is a straightforward Java library for reading metadata from image files. + + Metadata metadata = ImageMetadataReader.readMetadata(imagePath); + + With that metadata object, you can iterate or query the various tag values that were read from the image. + + The library understands several formats of metadata, many of which may be present in a single image. + </longdescription> + <upstream> + <remote-id type="github">drewnoakes/metadata-extractor</remote-id> + </upstream> +</pkgmetadata> |