diff options
author | Vlastimil Babka <caster@gentoo.org> | 2007-05-07 10:09:16 +0000 |
---|---|---|
committer | Vlastimil Babka <caster@gentoo.org> | 2007-05-07 10:09:16 +0000 |
commit | a83f829a7d079bd88079df6c4dab530cf58b54a8 (patch) | |
tree | d105424931c3a4e25febc47390232ec1b83ce429 /dev-java/xmlgraphics-commons | |
parent | Fix Manifest/digest for linux-2.6.21.tar.bz2 (diff) | |
download | gentoo-2-a83f829a7d079bd88079df6c4dab530cf58b54a8.tar.gz gentoo-2-a83f829a7d079bd88079df6c4dab530cf58b54a8.tar.bz2 gentoo-2-a83f829a7d079bd88079df6c4dab530cf58b54a8.zip |
Initial ebuild, coming from java-overlay by Alistair Bush.
(Portage version: 2.1.2.6)
Diffstat (limited to 'dev-java/xmlgraphics-commons')
-rw-r--r-- | dev-java/xmlgraphics-commons/ChangeLog | 10 | ||||
-rw-r--r-- | dev-java/xmlgraphics-commons/Manifest | 16 | ||||
-rw-r--r-- | dev-java/xmlgraphics-commons/files/digest-xmlgraphics-commons-1.1 | 3 | ||||
-rw-r--r-- | dev-java/xmlgraphics-commons/metadata.xml | 5 | ||||
-rw-r--r-- | dev-java/xmlgraphics-commons/xmlgraphics-commons-1.1.ebuild | 83 |
5 files changed, 117 insertions, 0 deletions
diff --git a/dev-java/xmlgraphics-commons/ChangeLog b/dev-java/xmlgraphics-commons/ChangeLog new file mode 100644 index 000000000000..451befc22553 --- /dev/null +++ b/dev-java/xmlgraphics-commons/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-java/xmlgraphics-commons +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/xmlgraphics-commons/ChangeLog,v 1.1 2007/05/07 10:09:16 caster Exp $ + +*xmlgraphics-commons-1.1 (07 May 2007) + + 07 May 2007; Vlastimil Babka <caster@gentoo.org> +metadata.xml, + +xmlgraphics-commons-1.1.ebuild: + Initial ebuild, coming from java-overlay by Alistair Bush. + diff --git a/dev-java/xmlgraphics-commons/Manifest b/dev-java/xmlgraphics-commons/Manifest new file mode 100644 index 000000000000..4117b2e6b3dc --- /dev/null +++ b/dev-java/xmlgraphics-commons/Manifest @@ -0,0 +1,16 @@ +DIST xmlgraphics-commons-1.1-src.tar.gz 390153 RMD160 8d46dc95064c534f81a00b6041f60b239b4c0267 SHA1 da605121f389483e40056a30cd06fc20313f2583 SHA256 456c13f6af639bc2a21191b924b780e306f08392f92c69646c19b9e1e7fad852 +EBUILD xmlgraphics-commons-1.1.ebuild 2057 RMD160 ec4150ba5358419347b2bdca6844107ccf502f5d SHA1 fdc3e0d0331c304f8d7b91e290e23522ff7c10cf SHA256 7643cc4f441b91b97db67aa85d6027141965fde461b525e22e36da91784d4aab +MD5 ac6ef9f83defb58ccae8bd0d1b6f443a xmlgraphics-commons-1.1.ebuild 2057 +RMD160 ec4150ba5358419347b2bdca6844107ccf502f5d xmlgraphics-commons-1.1.ebuild 2057 +SHA256 7643cc4f441b91b97db67aa85d6027141965fde461b525e22e36da91784d4aab xmlgraphics-commons-1.1.ebuild 2057 +MISC ChangeLog 332 RMD160 a702f8e9aa4d1aa1644e7a7641a7dbb1fa2ba5e1 SHA1 b7535716aa64947335cdd271814791831000d133 SHA256 59e4a2da4c48a113df6128615de57946996b8671b25d815511d3ed6dd9b7ef1a +MD5 1399a26a40c7b664923da30141a9fa30 ChangeLog 332 +RMD160 a702f8e9aa4d1aa1644e7a7641a7dbb1fa2ba5e1 ChangeLog 332 +SHA256 59e4a2da4c48a113df6128615de57946996b8671b25d815511d3ed6dd9b7ef1a ChangeLog 332 +MISC metadata.xml 157 RMD160 ab0b3741457dee7531f59c4da0f0e9e8399af084 SHA1 c37a6b9922aef61b5b3387655bccb6e3b16e0e26 SHA256 295d02c5805b0257938eb80314b371daac94b8d6ea85629a902de7a824adc0c9 +MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157 +RMD160 ab0b3741457dee7531f59c4da0f0e9e8399af084 metadata.xml 157 +SHA256 295d02c5805b0257938eb80314b371daac94b8d6ea85629a902de7a824adc0c9 metadata.xml 157 +MD5 6ceeceb8d7476d00abcde8a6dd92ac96 files/digest-xmlgraphics-commons-1.1 283 +RMD160 633466e34708d584b241804e842ed0b3019d9b96 files/digest-xmlgraphics-commons-1.1 283 +SHA256 bbc3d2ce69dd5438db5be9dab39d6c0566aeb04836a43700453a13e6a5489a74 files/digest-xmlgraphics-commons-1.1 283 diff --git a/dev-java/xmlgraphics-commons/files/digest-xmlgraphics-commons-1.1 b/dev-java/xmlgraphics-commons/files/digest-xmlgraphics-commons-1.1 new file mode 100644 index 000000000000..6614c3a872e8 --- /dev/null +++ b/dev-java/xmlgraphics-commons/files/digest-xmlgraphics-commons-1.1 @@ -0,0 +1,3 @@ +MD5 bfaa16c87d9d9b0aa1e49f77a7bf3f43 xmlgraphics-commons-1.1-src.tar.gz 390153 +RMD160 8d46dc95064c534f81a00b6041f60b239b4c0267 xmlgraphics-commons-1.1-src.tar.gz 390153 +SHA256 456c13f6af639bc2a21191b924b780e306f08392f92c69646c19b9e1e7fad852 xmlgraphics-commons-1.1-src.tar.gz 390153 diff --git a/dev-java/xmlgraphics-commons/metadata.xml b/dev-java/xmlgraphics-commons/metadata.xml new file mode 100644 index 000000000000..838c00a4a448 --- /dev/null +++ b/dev-java/xmlgraphics-commons/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>java</herd> +</pkgmetadata> diff --git a/dev-java/xmlgraphics-commons/xmlgraphics-commons-1.1.ebuild b/dev-java/xmlgraphics-commons/xmlgraphics-commons-1.1.ebuild new file mode 100644 index 000000000000..ede7c787c598 --- /dev/null +++ b/dev-java/xmlgraphics-commons/xmlgraphics-commons-1.1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/xmlgraphics-commons/xmlgraphics-commons-1.1.ebuild,v 1.1 2007/05/07 10:09:16 caster Exp $ + +JAVA_PKG_IUSE="doc examples source test" +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Apache XML Graphics Commons is a library that consists 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" +KEYWORDS="~amd64 ~x86" +IUSE="jpeg" + +# fails connect to X even tho it sets java.awt.headless +RESTRICT="test" +CDEPEND=">=dev-java/commons-io-1" +DEPEND=">=virtual/jdk-1.4 + jpeg? ( + || ( + >=dev-java/sun-jdk-1.4 + >=dev-java/blackdown-jdk-1.4 + >=dev-java/ibm-jdk-bin-1.4 + >=dev-java/jrockit-jdk-bin-1.4 + ) + ) + test? ( + =dev-java/junit-3* + dev-java/ant-junit + ) + ${CDEPEND}" +RDEPEND=">=virtual/jre-1.4 + ${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 +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # automagic bad + java-ant_ignore-system-classes || die + + cd ${S}/lib || die + rm -v *.jar || die + + java-pkg_jarfrom commons-io-1 +} + +src_compile() { + local af="-Djdk14.present=true" + use jpeg && af="${af} -Dsun.jpeg.present=true" + eant ${af} jar-main $(use_doc javadocs) +} + +src_test() { + java-pkg_jarfrom --into lib junit + # probably needs ${af} from src_compile, doesn't work anyway + ANT_TASKS="ant-junit" eant -Djunit.present=true junit +} + +src_install(){ + java-pkg_newjar build/${P}.jar + use source && java-pkg_dosrc src/java/org src/java-1.4/org + use doc && java-pkg_dojavadoc build/javadocs +} + |