summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerkan Kaba <serkan@gentoo.org>2009-01-31 13:46:37 +0000
committerSerkan Kaba <serkan@gentoo.org>2009-01-31 13:46:37 +0000
commit4c819a5aecc24203296ea87ca1957f093edf6091 (patch)
tree91be453e7b2037b12be4254f1f025234a976ca75 /dev-java/metadata-extractor
parentAdd upstream patches. Revbump. (diff)
downloadgentoo-2-4c819a5aecc24203296ea87ca1957f093edf6091.tar.gz
gentoo-2-4c819a5aecc24203296ea87ca1957f093edf6091.tar.bz2
gentoo-2-4c819a5aecc24203296ea87ca1957f093edf6091.zip
Migrate to EAPI 1. Limit jdk version to <=1.6. Compile tests with test USE flag only. Avoid packing unit tests into the jar.
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/metadata-extractor')
-rw-r--r--dev-java/metadata-extractor/ChangeLog12
-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-r3.ebuild40
3 files changed, 96 insertions, 2 deletions
diff --git a/dev-java/metadata-extractor/ChangeLog b/dev-java/metadata-extractor/ChangeLog
index 2843b2928252..73212acb3458 100644
--- a/dev-java/metadata-extractor/ChangeLog
+++ b/dev-java/metadata-extractor/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for dev-java/metadata-extractor
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/metadata-extractor/ChangeLog,v 1.12 2008/03/11 15:47:43 betelgeuse Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/metadata-extractor/ChangeLog,v 1.13 2009/01/31 13:46:36 serkan Exp $
+
+*metadata-extractor-2.2.2-r3 (31 Jan 2009)
+
+ 31 Jan 2009; Serkan Kaba <serkan@gentoo.org>
+ +files/metadata-extractor-2.2.2-buildfix.patch,
+ +metadata-extractor-2.2.2-r3.ebuild:
+ Migrate to EAPI 1. Limit jdk version to <=1.6. Compile tests with test USE
+ flag only. Avoid packing unit tests into the jar.
11 Mar 2008; Petteri Räty <betelgeuse@gentoo.org>
metadata-extractor-2.2.2-r2.ebuild:
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-r3.ebuild b/dev-java/metadata-extractor/metadata-extractor-2.2.2-r3.ebuild
new file mode 100644
index 000000000000..2a13a3e12c9d
--- /dev/null
+++ b/dev-java/metadata-extractor/metadata-extractor-2.2.2-r3.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/metadata-extractor/metadata-extractor-2.2.2-r3.ebuild,v 1.1 2009/01/31 13:46:36 serkan Exp $
+
+EAPI=1
+inherit java-pkg-2 java-ant-2 eutils
+
+DESCRIPTION="A general metadata extraction framework. Support currently exists for Exif and Iptc metadata segments. Extraction of these segments is provided 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"
+RDEPEND=">=virtual/jre-1.4"
+S=${WORKDIR}/
+
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}"/${P}-buildfix.patch
+ mv metadata-extractor.build build.xml
+
+ use test && java-pkg_jar-from --build-only --into lib/ junit junit.jar
+}
+
+EANT_DOC_TARGET=""
+EANT_BUILD_TARGET="dist-binaries"
+
+src_install() {
+ dodoc ReleaseNotes.txt || die "dodoc failed"
+ java-pkg_newjar dist/*.jar "${PN}.jar"
+}
+
+src_test() {
+ ANT_TASKS="ant-junit" eant test
+}