diff options
author | Alistair Bush <ali_bush@gentoo.org> | 2007-04-24 13:14:36 +0000 |
---|---|---|
committer | Alistair Bush <ali_bush@gentoo.org> | 2007-04-24 13:14:36 +0000 |
commit | e3fb17a6c0a2e74b25d820fd230dabf3f629db89 (patch) | |
tree | 3f6581fa7b842fe1e9782ccdde49bc08195c2e09 /dev-java/metadata-extractor/metadata-extractor-2.2.2-r2.ebuild | |
parent | Stable on sparc (diff) | |
download | gentoo-2-e3fb17a6c0a2e74b25d820fd230dabf3f629db89.tar.gz gentoo-2-e3fb17a6c0a2e74b25d820fd230dabf3f629db89.tar.bz2 gentoo-2-e3fb17a6c0a2e74b25d820fd230dabf3f629db89.zip |
Migrated metadata-extractor to java generation 2 build system
(Portage version: 2.1.2.4)
Diffstat (limited to 'dev-java/metadata-extractor/metadata-extractor-2.2.2-r2.ebuild')
-rw-r--r-- | dev-java/metadata-extractor/metadata-extractor-2.2.2-r2.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
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..75d04bbfba27 --- /dev/null +++ b/dev-java/metadata-extractor/metadata-extractor-2.2.2-r2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2007 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-r2.ebuild,v 1.1 2007/04/24 13:14:36 ali_bush Exp $ + +inherit java-pkg-2 java-ant-2 + +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="x86 ~ppc amd64" +IUSE="test" + +DEPEND=">=virtual/jdk-1.4 + dev-java/ant-core + dev-java/junit" +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 +} + +src_compile() { + eant dist-binaries +} + +src_install() { + dodoc ReleaseNotes.txt + java-pkg_newjar dist/*.jar "${PN}.jar" +} + +src_test() { + ANT_TASKS="ant-junit" eant test +} + |