summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/metadata-extractor
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-java/metadata-extractor')
-rw-r--r--dev-java/metadata-extractor/Manifest1
-rw-r--r--dev-java/metadata-extractor/files/metadata-extractor-2.2.2-buildfix.patch46
-rw-r--r--dev-java/metadata-extractor/metadata-extractor-2.2.2-r2.ebuild40
-rw-r--r--dev-java/metadata-extractor/metadata-extractor-2.2.2-r4.ebuild45
-rw-r--r--dev-java/metadata-extractor/metadata.xml10
5 files changed, 142 insertions, 0 deletions
diff --git a/dev-java/metadata-extractor/Manifest b/dev-java/metadata-extractor/Manifest
new file mode 100644
index 000000000000..6e18d8ce580c
--- /dev/null
+++ b/dev-java/metadata-extractor/Manifest
@@ -0,0 +1 @@
+DIST metadata-extractor-2.2.2-src.jar 3936358 SHA256 38f8b12418afde99286b9b7c86158eb4fd2c47a23ed4af025af77bae301e1783 SHA512 5004ecef28e9fc1f24a4b13b4596c801e9b20fcb9c20165e79b2543837187b8cb019aa32c301e2850939a95a23224444d6eb7e23c45d8bf54cf267899052b2f7 WHIRLPOOL ff35285df14741babe45b2b1906b0d5ceacbc76a12684d0e676cb7ad784eeafaa9bee4016489ce5643d5bcf85d1140d69667f8f9a646c9720ae4eb2602bbf031
diff --git a/dev-java/metadata-extractor/files/metadata-extractor-2.2.2-buildfix.patch b/dev-java/metadata-extractor/files/metadata-extractor-2.2.2-buildfix.patch
new file mode 100644
index 000000000000..fb455f4f0943
--- /dev/null
+++ b/dev-java/metadata-extractor/files/metadata-extractor-2.2.2-buildfix.patch
@@ -0,0 +1,46 @@
+--- metadata-extractor.build 2009-01-31 15:22:58.000000000 +0200
++++ metadata-extractor.build.fixed 2009-01-31 15:37:02.000000000 +0200
+@@ -24,25 +24,38 @@
+ srcdir="${src}"
+ destdir="${build}"
+ debug="${debug}"
+- verbose="${verbose}"/>
++ verbose="${verbose}">
++ <exclude name="**/test/*.java"/>
++ </javac>
++ </target>
++
++ <target name="compile-test" description="compile the source">
++ <javac classpath="${classpath}"
++ srcdir="${src}"
++ destdir="${build}"
++ debug="${debug}"
++ verbose="${verbose}">
++ <include name="**/test/*.java"/>
++ </javac>
+ </target>
+
+- <target name="dist-binaries" depends="clean, compile, test" description="generate binary distribution">
++ <target name="dist-binaries" depends="clean, compile" description="generate binary distribution">
+ <jar destfile="${dist}/metadata-extractor-${version}.jar" update="false" basedir="${build}">
+ <manifest>
+ <attribute name="Main-Class" value="com.drew.imaging.jpeg.JpegMetadataReader"/>
+- </manifest>
++ </manifest>
++ <exclude name="**/test/*.class"/>
+ </jar>
+ </target>
+
+- <target name="dist-source" depends="clean, compile, test" description="generate source distribution">
++ <target name="dist-source" depends="clean, compile" description="generate source distribution">
+ <jar destfile="${dist}/metadata-extractor-${version}-src.jar" update="false">
+ <fileset dir="."
+ includes="${src}/**/*.java, ${src}/**/*.jpg, ${lib}/junit.jar, metadata-extractor.build, ReleaseNotes.txt"/>
+ </jar>
+ </target>
+
+- <target name="test" depends="compile" description="run all junit tests">
++ <target name="test" depends="compile-test" description="run all junit tests">
+ <junit printsummary="yes" fork="yes" haltonfailure="yes">
+ <classpath>
+ <pathelement location="${build}"/>
diff --git a/dev-java/metadata-extractor/metadata-extractor-2.2.2-r2.ebuild b/dev-java/metadata-extractor/metadata-extractor-2.2.2-r2.ebuild
new file mode 100644
index 000000000000..7f9981b5da45
--- /dev/null
+++ b/dev-java/metadata-extractor/metadata-extractor-2.2.2-r2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Metadata extraction framework for Exif and IPTC metadata segments, extraction support for JPEG files"
+HOMEPAGE="http://www.drewnoakes.com/code/exif/"
+SRC_URI="http://www.drewnoakes.com/code/exif/metadata-extractor-${PV}-src.jar"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 ~ppc amd64"
+IUSE="test"
+
+DEPEND="
+ || ( =virtual/jdk-1.6* =virtual/jdk-1.5* =virtual/jdk-1.4* )
+ =dev-java/junit-3.8*
+ app-arch/unzip"
+RDEPEND=">=virtual/jre-1.4"
+S=${WORKDIR}/
+
+src_unpack() {
+ jar xf "${DISTDIR}/${A}"
+ sed -e "s:clean, compile, test:clean, compile:" -i metadata-extractor.build || die "sed failed"
+ mv metadata-extractor.build build.xml
+
+ java-pkg_jar-from --build-only --into lib/ junit junit.jar
+}
+
+EANT_DOC_TARGET=""
+EANT_BUILD_TARGET="dist-binaries"
+
+src_install() {
+ dodoc ReleaseNotes.txt
+ java-pkg_newjar dist/*.jar "${PN}.jar"
+}
+
+src_test() {
+ ANT_TASKS="ant-junit" eant test
+}
diff --git a/dev-java/metadata-extractor/metadata-extractor-2.2.2-r4.ebuild b/dev-java/metadata-extractor/metadata-extractor-2.2.2-r4.ebuild
new file mode 100644
index 000000000000..d8fd51fbdb73
--- /dev/null
+++ b/dev-java/metadata-extractor/metadata-extractor-2.2.2-r4.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit java-pkg-2 java-ant-2 eutils
+
+DESCRIPTION="Metadata extraction framework for Exif and IPTC metadata segments, extraction support for JPEG files"
+HOMEPAGE="http://www.drewnoakes.com/code/exif/"
+SRC_URI="http://www.drewnoakes.com/code/exif/metadata-extractor-${PV}-src.jar"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+IUSE="test"
+
+DEPEND="|| ( =virtual/jdk-1.6* =virtual/jdk-1.5* =virtual/jdk-1.4* )
+ test? ( dev-java/junit:0 )
+ app-arch/unzip:0"
+
+RDEPEND=">=virtual/jre-1.4"
+S=${WORKDIR}
+
+java_prepare() {
+ epatch "${FILESDIR}"/${P}-buildfix.patch
+
+ mv metadata-extractor.build build.xml || die
+
+ use test && java-pkg_jar-from --build-only --into lib/ junit junit.jar
+}
+
+EANT_DOC_TARGET=""
+EANT_BUILD_TARGET="dist-binaries"
+
+src_install() {
+ java-pkg_newjar dist/*.jar ${PN}.jar
+
+ dodoc ReleaseNotes.txt
+}
+
+src_test() {
+ ANT_TASKS="ant-junit" eant test
+}
diff --git a/dev-java/metadata-extractor/metadata.xml b/dev-java/metadata-extractor/metadata.xml
new file mode 100644
index 000000000000..d8e75a94dca2
--- /dev/null
+++ b/dev-java/metadata-extractor/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+ <longdescription>
+ A general metadata extraction framework. Support currently exists for
+ Exif and Iptc metadata segments. Extraction of these segments is
+ provided for Jpeg files.
+ </longdescription>
+</pkgmetadata>