* [gentoo-commits] proj/sci:master commit in: dev-java/xmlgraphics-commons/, dev-java/xmlgraphics-commons/files/
@ 2013-04-24 4:41 Guillaume Horel
0 siblings, 0 replies; 2+ messages in thread
From: Guillaume Horel @ 2013-04-24 4:41 UTC (permalink / raw
To: gentoo-commits
commit: 3d52f36eb4a032fb36aa492ec86674544daa83a7
Author: Guillaume Horel <guillaume.horel <AT> gmail <DOT> com>
AuthorDate: Wed Apr 24 02:16:28 2013 +0000
Commit: Guillaume Horel <guillaume.horel <AT> gmail <DOT> com>
CommitDate: Wed Apr 24 02:16:28 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=3d52f36e
dev-java/xmlgraphics-commons import new version from bugzilla
---
.../files/disable-iccprofile-test.patch | 38 +++++++++++++
dev-java/xmlgraphics-commons/metadata.xml | 5 ++
.../xmlgraphics-commons-1.5.ebuild | 58 ++++++++++++++++++++
3 files changed, 101 insertions(+), 0 deletions(-)
diff --git a/dev-java/xmlgraphics-commons/files/disable-iccprofile-test.patch b/dev-java/xmlgraphics-commons/files/disable-iccprofile-test.patch
new file mode 100644
index 0000000..6d226e6
--- /dev/null
+++ b/dev-java/xmlgraphics-commons/files/disable-iccprofile-test.patch
@@ -0,0 +1,38 @@
+Description: This test fails with openjdk-7 (and oracle java 7).
+ Skip for the time being until upstream resolve - see Bug.
+Author: James Page <james.page@ubuntu.com>
+Bug: https://issues.apache.org/bugzilla/show_bug.cgi?id=53328
+
+Index: xmlgraphics-commons/test/java/org/apache/xmlgraphics/image/loader/ImageLoaderTestCase.java
+===================================================================
+--- xmlgraphics-commons.orig/test/java/org/apache/xmlgraphics/image/loader/ImageLoaderTestCase.java 2012-05-30 17:12:37.000324000 +0100
++++ xmlgraphics-commons/test/java/org/apache/xmlgraphics/image/loader/ImageLoaderTestCase.java 2012-05-30 17:13:03.184417043 +0100
+@@ -159,28 +159,6 @@
+ sessionContext.checkAllStreamsClosed();
+ }
+
+- public void testICCProfiles() throws Exception {
+- MyImageSessionContext sessionContext = createImageSessionContext();
+- List/* <ICC_Profile> */profiles = new ArrayList();
+-
+- runReaders(profiles, sessionContext, "iccTest.png", "image/png",
+- ImageFlavor.RAW_PNG);
+- runReaders(profiles, sessionContext, "iccTest.jpg", "image/jpeg",
+- ImageFlavor.RAW_JPEG);
+-
+- ICC_Profile first = (ICC_Profile) profiles.get(0);
+- byte[] firstData = first.getData();
+- for (int i = 1; i < profiles.size(); i++) {
+- ICC_Profile icc = (ICC_Profile) profiles.get(i);
+- byte[] data = icc.getData();
+- assertEquals("Embedded ICC Profiles are not the same size!",
+- firstData.length, data.length);
+- for (int j = 0; j < firstData.length; j++) {
+- assertEquals("Embedded ICC Profiles differ at index " + j,
+- firstData[j], data[j]);
+- }
+- }
+- }
+
+ private void runReaders(List profiles, ImageSessionContext isc, String uri,
+ String mime, ImageFlavor rawFlavor) throws Exception {
diff --git a/dev-java/xmlgraphics-commons/metadata.xml b/dev-java/xmlgraphics-commons/metadata.xml
new file mode 100644
index 0000000..838c00a
--- /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.5.ebuild b/dev-java/xmlgraphics-commons/xmlgraphics-commons-1.5.ebuild
new file mode 100644
index 0000000..700233e
--- /dev/null
+++ b/dev-java/xmlgraphics-commons/xmlgraphics-commons-1.5.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2012 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.3.1.ebuild,v 1.7 2011/12/31 16:46:14 sera Exp $
+
+EAPI=4
+JAVA_PKG_IUSE="doc examples source test"
+VIRTUALX_REQUIRED="manual"
+VIRTUALX_COMMAND="eant"
+
+inherit java-pkg-2 java-ant-2 virtualx
+
+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=""
+
+CDEPEND="dev-java/commons-io:1
+ >=dev-java/commons-logging-1:0"
+DEPEND=">=virtual/jdk-1.5
+ test? ( dev-java/ant-junit4 )
+ ${CDEPEND}"
+
+RDEPEND=">=virtual/jre-1.5
+ ${CDEPEND}"
+
+# TODO investigate producing .net libraries
+# strategies for non sun jdk's/jre's
+
+JAVA_ANT_IGNORE_SYSTEM_CLASSES="true"
+JAVA_ANT_REWRITE_CLASSPATH="true"
+
+java_prepare() {
+ #see https://issues.apache.org/bugzilla/show_bug.cgi?id=53328
+ epatch "${FILESDIR}"/disable-iccprofile-test.patch
+ find "${S}" -name '*.jar' -print -delete || die
+ rm -v test/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2DTestCase.java \
+ || die
+}
+
+EANT_GENTOO_CLASSPATH="commons-io-1,commons-logging"
+EANT_EXTRA_ARGS="-Djdk15.present=true"
+EANT_BUILD_TARGET="jar-main"
+EANT_DOC_TARGET="javadocs"
+
+src_test() {
+ java-pkg_jarfrom --into lib junit-4,commons-io-1
+ ANT_TASKS="ant-junit4" virtualmake -Djdk15.present=true junit
+}
+
+src_install(){
+ java-pkg_newjar build/"${P}".jar
+ use source && java-pkg_dosrc src/java/org
+ use doc && java-pkg_dojavadoc build/javadocs
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] proj/sci:master commit in: dev-java/xmlgraphics-commons/, dev-java/xmlgraphics-commons/files/
@ 2013-07-08 22:55 Guillaume Horel
0 siblings, 0 replies; 2+ messages in thread
From: Guillaume Horel @ 2013-07-08 22:55 UTC (permalink / raw
To: gentoo-commits
commit: 351761c4f417e1cd4ad18e7ca4c63b2cdff5847b
Author: Guillaume Horel <guillaume.horel <AT> gmail <DOT> com>
AuthorDate: Mon Jul 8 22:53:49 2013 +0000
Commit: Guillaume Horel <guillaume.horel <AT> gmail <DOT> com>
CommitDate: Mon Jul 8 22:53:49 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=351761c4
dev-java/xmlgraphics-commons package removal
version bump added to main tree
---
.../files/disable-iccprofile-test.patch | 38 --------------
dev-java/xmlgraphics-commons/metadata.xml | 5 --
.../xmlgraphics-commons-1.5.ebuild | 58 ----------------------
3 files changed, 101 deletions(-)
diff --git a/dev-java/xmlgraphics-commons/files/disable-iccprofile-test.patch b/dev-java/xmlgraphics-commons/files/disable-iccprofile-test.patch
deleted file mode 100644
index 6d226e6..0000000
--- a/dev-java/xmlgraphics-commons/files/disable-iccprofile-test.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-Description: This test fails with openjdk-7 (and oracle java 7).
- Skip for the time being until upstream resolve - see Bug.
-Author: James Page <james.page@ubuntu.com>
-Bug: https://issues.apache.org/bugzilla/show_bug.cgi?id=53328
-
-Index: xmlgraphics-commons/test/java/org/apache/xmlgraphics/image/loader/ImageLoaderTestCase.java
-===================================================================
---- xmlgraphics-commons.orig/test/java/org/apache/xmlgraphics/image/loader/ImageLoaderTestCase.java 2012-05-30 17:12:37.000324000 +0100
-+++ xmlgraphics-commons/test/java/org/apache/xmlgraphics/image/loader/ImageLoaderTestCase.java 2012-05-30 17:13:03.184417043 +0100
-@@ -159,28 +159,6 @@
- sessionContext.checkAllStreamsClosed();
- }
-
-- public void testICCProfiles() throws Exception {
-- MyImageSessionContext sessionContext = createImageSessionContext();
-- List/* <ICC_Profile> */profiles = new ArrayList();
--
-- runReaders(profiles, sessionContext, "iccTest.png", "image/png",
-- ImageFlavor.RAW_PNG);
-- runReaders(profiles, sessionContext, "iccTest.jpg", "image/jpeg",
-- ImageFlavor.RAW_JPEG);
--
-- ICC_Profile first = (ICC_Profile) profiles.get(0);
-- byte[] firstData = first.getData();
-- for (int i = 1; i < profiles.size(); i++) {
-- ICC_Profile icc = (ICC_Profile) profiles.get(i);
-- byte[] data = icc.getData();
-- assertEquals("Embedded ICC Profiles are not the same size!",
-- firstData.length, data.length);
-- for (int j = 0; j < firstData.length; j++) {
-- assertEquals("Embedded ICC Profiles differ at index " + j,
-- firstData[j], data[j]);
-- }
-- }
-- }
-
- private void runReaders(List profiles, ImageSessionContext isc, String uri,
- String mime, ImageFlavor rawFlavor) throws Exception {
diff --git a/dev-java/xmlgraphics-commons/metadata.xml b/dev-java/xmlgraphics-commons/metadata.xml
deleted file mode 100644
index d369d06..0000000
--- a/dev-java/xmlgraphics-commons/metadata.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <herd>sci</herd>
-</pkgmetadata>
diff --git a/dev-java/xmlgraphics-commons/xmlgraphics-commons-1.5.ebuild b/dev-java/xmlgraphics-commons/xmlgraphics-commons-1.5.ebuild
deleted file mode 100644
index 700233e..0000000
--- a/dev-java/xmlgraphics-commons/xmlgraphics-commons-1.5.ebuild
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright 1999-2012 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.3.1.ebuild,v 1.7 2011/12/31 16:46:14 sera Exp $
-
-EAPI=4
-JAVA_PKG_IUSE="doc examples source test"
-VIRTUALX_REQUIRED="manual"
-VIRTUALX_COMMAND="eant"
-
-inherit java-pkg-2 java-ant-2 virtualx
-
-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=""
-
-CDEPEND="dev-java/commons-io:1
- >=dev-java/commons-logging-1:0"
-DEPEND=">=virtual/jdk-1.5
- test? ( dev-java/ant-junit4 )
- ${CDEPEND}"
-
-RDEPEND=">=virtual/jre-1.5
- ${CDEPEND}"
-
-# TODO investigate producing .net libraries
-# strategies for non sun jdk's/jre's
-
-JAVA_ANT_IGNORE_SYSTEM_CLASSES="true"
-JAVA_ANT_REWRITE_CLASSPATH="true"
-
-java_prepare() {
- #see https://issues.apache.org/bugzilla/show_bug.cgi?id=53328
- epatch "${FILESDIR}"/disable-iccprofile-test.patch
- find "${S}" -name '*.jar' -print -delete || die
- rm -v test/java/org/apache/xmlgraphics/java2d/ps/PSGraphics2DTestCase.java \
- || die
-}
-
-EANT_GENTOO_CLASSPATH="commons-io-1,commons-logging"
-EANT_EXTRA_ARGS="-Djdk15.present=true"
-EANT_BUILD_TARGET="jar-main"
-EANT_DOC_TARGET="javadocs"
-
-src_test() {
- java-pkg_jarfrom --into lib junit-4,commons-io-1
- ANT_TASKS="ant-junit4" virtualmake -Djdk15.present=true junit
-}
-
-src_install(){
- java-pkg_newjar build/"${P}".jar
- use source && java-pkg_dosrc src/java/org
- use doc && java-pkg_dojavadoc build/javadocs
-}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-09 22:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-24 4:41 [gentoo-commits] proj/sci:master commit in: dev-java/xmlgraphics-commons/, dev-java/xmlgraphics-commons/files/ Guillaume Horel
-- strict thread matches above, loose matches on Subject: below --
2013-07-08 22:55 Guillaume Horel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox