diff options
author | 2012-10-28 20:31:02 +0200 | |
---|---|---|
committer | 2012-10-28 20:31:02 +0200 | |
commit | 806c6087e807c926adede500485545f83706938a (patch) | |
tree | e7bf9b3cecfcd66b71773f54750969b4faf37a3f | |
parent | remove jaxen as it was included into main tree (diff) | |
download | dmol-806c6087e807c926adede500485545f83706938a.tar.gz dmol-806c6087e807c926adede500485545f83706938a.tar.bz2 dmol-806c6087e807c926adede500485545f83706938a.zip |
version and eapi bump
-rw-r--r-- | dev-java/xmlgraphics-commons/Manifest | 3 | ||||
-rw-r--r-- | dev-java/xmlgraphics-commons/metadata.xml | 7 | ||||
-rw-r--r-- | dev-java/xmlgraphics-commons/xmlgraphics-commons-1.5.ebuild | 68 |
3 files changed, 78 insertions, 0 deletions
diff --git a/dev-java/xmlgraphics-commons/Manifest b/dev-java/xmlgraphics-commons/Manifest new file mode 100644 index 0000000..740c810 --- /dev/null +++ b/dev-java/xmlgraphics-commons/Manifest @@ -0,0 +1,3 @@ +DIST xmlgraphics-commons-1.5-src.tar.gz 2597097 SHA256 f73322f1fafdcf5391d0411a377ac6c566e17536daf64b29f1370d6e718d0867 SHA512 af120dab18972f32e1b23f8bed1a9c519d7e2bcebd9c32fa77db61394f31a5821d909ddfe0e9a27cda7fcdf44966cf2576a94fc7c9af047f66c4081b8c35f398 WHIRLPOOL 043d57d08945713e3a14c28274551ac8cd76890f09b52ff1774f6201619792dddbcd827e55680a72b8bb711060ee6d6d270056846f53e35aaee2506052a52eb4 +EBUILD xmlgraphics-commons-1.5.ebuild 2017 SHA256 fc8ab0b8cb8a0cd0255a0f6401619135c2e4e946aac487a69203ed631c8f8182 SHA512 2cf96dd1d9cbe738106d1a7f9c4ae4c2d4224207ccead227e20c0146820602b6f3a67f8285bd389b2036164a5831d1297283f86e9483c1d3f171786590fc1c08 WHIRLPOOL 99143583ff7e436c3cf8739883bd7617de7c6a6b6e765a852cb4f518c3913ea94d158fb73cd2490fb62eb322769e67b8ffb2dced7961e1316ede98bd828544c0 +MISC metadata.xml 205 SHA256 2ff0740a5424b0e10c7888541a248d1bd363a60911b0921b4cfe5c36590498ce SHA512 e7c77c724739d0af43cc338ded09dcbeee2a710eb0e49f1e656dc4c891bee85bfd6935bf70a191a1c5823f473643e676d64970416e5f1820ea466681016757c5 WHIRLPOOL 5b7f0c2a5243244fa06b072c8f0d9f53e7b6f45c7e1b74a0d945bdcc28b7137fddfd58e85b0d3e721e80963916ceae0d4cca59f48114ba26c47b24a91d6abb27 diff --git a/dev-java/xmlgraphics-commons/metadata.xml b/dev-java/xmlgraphics-commons/metadata.xml new file mode 100644 index 0000000..80859ae --- /dev/null +++ b/dev-java/xmlgraphics-commons/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>the.dmol@gmail.com</email> + </maintainer> +</pkgmetadata> diff --git a/dev-java/xmlgraphics-commons/xmlgraphics-commons-1.5.ebuild b/dev-java/xmlgraphics-commons/xmlgraphics-commons-1.5.ebuild new file mode 100644 index 0000000..dd3d8bf --- /dev/null +++ b/dev-java/xmlgraphics-commons/xmlgraphics-commons-1.5.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 +JAVA_PKG_IUSE="doc examples source test" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="A library of several reusable components used by Apache Batik and Apache FOP." +HOMEPAGE="http://xmlgraphics.apache.org/commons/index.html" +SRC_URI="mirror://apache/xmlgraphics/commons/source/${P}-src.tar.gz" + +LICENSE="Apache-2.0" +SLOT="1.5" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="jpeg" + +CDEPEND="dev-java/commons-io:1 + >=dev-java/commons-logging-1:0" +DEPEND="|| ( =virtual/jdk-1.6* =virtual/jdk-1.5* ) + test? ( + dev-java/junit:4 + ) + ${CDEPEND}" +RDEPEND=">=virtual/jre-1.5 + ${CDEPEND}" + +# TODO investigate producing .net libraries +# stratigies for non sun jdk's/jre's + +pkg_setup() { + java-pkg-2_pkg_setup + + if use jpeg && java-pkg_current-vm-matches kaffe; then + eerror "Sun-private JPEG support cannot be built with kaffe." + eerror "Please set your build VM to Sun, Blackdown, IBM or JRockit JDK." + eerror "See http://www.gentoo.org/doc/en/java.xml for details." + eerror "Alternatively, install this package with USE=-jpeg" + die "Cannot build with USE=jpeg and kaffe." + fi +} + +JAVA_ANT_IGNORE_SYSTEM_CLASSES="true" +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_GENTOO_CLASSPATH="commons-io-1,commons-logging" +EANT_EXTRA_ARGS="-Djdk15.present=true" +EANT_BUILD_TARGET="jar-main" +EANT_DOC_TARGET="javadocs" +EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit-4" +EANT_TEST_TARGET="junit" +EANT_TEST_EXTRA_ARGS="-Djunit.present=true" + +java_prepare() { + find "${S}" -name '*.jar' -print -delete || die + #refers to mockito, which we don't have yet + rm -v test/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2DTestCase.java +} + +src_test() { + ANT_TASKS="ant-junit" java-pkg-2_src_test +} + +src_install(){ + java-pkg_newjar build/${P}.jar + use source && java-pkg_dosrc src/java/org + use doc && java-pkg_dojavadoc build/javadocs +} |