diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/metadata-extractor |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/metadata-extractor')
-rw-r--r-- | dev-java/metadata-extractor/Manifest | 5 | ||||
-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, 76 insertions, 0 deletions
diff --git a/dev-java/metadata-extractor/Manifest b/dev-java/metadata-extractor/Manifest new file mode 100644 index 000000000000..1e4b9ecc972a --- /dev/null +++ b/dev-java/metadata-extractor/Manifest @@ -0,0 +1,5 @@ +DIST metadata-extractor-2.8.1.tar.gz 3132397 SHA256 0d734971e9896709fb9e11406cefbeaa0cf11d57fa7dca6b02acaf92a2a686fd SHA512 4e9fe88be4112fbf9ce481e7fd3b3a7c9544d1d5b1ebd646d2c6e2a2a1fe2d53a4b80ab859fe5e277c3e72f5e035aa46d7af7a953a182f5b8215edf9cde99974 WHIRLPOOL bc296ebe64b82ec9485f364e287139369bb1da5f98eab47db5014d0f1d263378d0341383da95bda3efa5fba6c81c3ebb9c30a3586aa7277ec893d2ad6ac5e52f +EBUILD metadata-extractor-2.8.1.ebuild 1179 SHA256 b97c87e0c9afe3100d7d683b8da13fda243369687170e0d9adeeaf15f83fe557 SHA512 86edd91c93b17f35fb6e62f4fe04a69f27cce096d0470c46be2f3bc02c296104cc80703cd4feb40c1b38d2327ed962076e0a9ddae7a094770b1a9a095ce93aab WHIRLPOOL 9d2c9c9a008fe3002f2739061a56a15f424ee9c066cb2a9c57a5657f00bdc7f83ab9a5898f8485f70a7f761e466a6c271c4361ab62f6f234a3f2e638bcde35fc +MISC ChangeLog 3491 SHA256 f9aa02d0637c09f9efd7d612a6f49d5d8e59fe124d6f69122785c46031962dcb SHA512 f2648ce70155222c1659180a6beec4600cc2101cfc21d9be65fad8687a78f7316eb33e71e276bae0a1998d15a3949bf0e967d783688e0345dcf01e9e30dab3cd WHIRLPOOL 4515e15008ae0c3d998c7e0d7fd895d89f8202e41f7e7afade3c4607e418fc07b529f2e71c6a681db72072c9a0e28f897e5eeb5a0dc9dc4d3aa04c4a7224cff4 +MISC ChangeLog-2015 2622 SHA256 a98a432afc33015b707c185dea0df0a0110617a5f821faea2ce85f191bd8553e SHA512 1ef656c925896fa7f488d11c83c2ca7bdc5ab78d19a64f6e40db79af2b14fe2be0b0f0c8918dcf66b359dcf483f017f0979606dc0d3a3f58d3f848244387c8d2 WHIRLPOOL 5c304157e1a482a9eed3890a6e373be3036464ff32e2125090426eefc80d76bba5450f3930cb24a612e5f33d29e9a282c14f086ea4cd62fad015ebad921f76f4 +MISC metadata.xml 748 SHA256 0fde4b02f4e3243963f3b5bf88f34d37bdf7466739647c28fd547a0ac54f883f SHA512 d92645cf069566265332a113fa053a8ca33ae6146a79adabae34714294a11ed030008945a6a7704b103b5c253241a191e0071794d4cc87732becab772d0449a1 WHIRLPOOL ce3fb0edf3f2d4e35eaaa7ed533539a6fa7dd60b8767d4185ced45f26e062d32981e5c16de3491f1747d32738fedc9c6feb2eccd577ab490659edbcfc7fe0416 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..3d82341578d3 --- /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> |