summaryrefslogtreecommitdiff
path: root/dev-java/saaj
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/saaj
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/saaj')
-rw-r--r--dev-java/saaj/Manifest6
-rw-r--r--dev-java/saaj/files/saaj-1.3.19-java-5-bootclasspath.patch13
-rw-r--r--dev-java/saaj/metadata.xml8
-rw-r--r--dev-java/saaj/saaj-1.3.19-r2.ebuild74
4 files changed, 101 insertions, 0 deletions
diff --git a/dev-java/saaj/Manifest b/dev-java/saaj/Manifest
new file mode 100644
index 000000000000..0977fb42d7b3
--- /dev/null
+++ b/dev-java/saaj/Manifest
@@ -0,0 +1,6 @@
+AUX saaj-1.3.19-java-5-bootclasspath.patch 502 SHA256 20defaf2378634b1f0223d8b571a709e844e70d8ff4f245c179a265acd491b7e SHA512 8477fac7d1a33b0ac7fc365c0eb385597cc0ae5cb65bc6ad45ebfb70a023b343adafbfbcf71cd226e14f4e282eee5654a5b0d310703aa4386b4238a4c55f0bd1 WHIRLPOOL 3a8109364ede6a35990e85828b48d3864924d2a27fed1638c8cc69ab20ad1f2d4cc639add50bbf148255c2371360a7d5bf29a752d4d5d1a72f57b8391eaf71d7
+DIST saaj-1.3.19.tar.bz2 2266558 SHA256 d498d621a9798e503dae9728cf39d50a585e7704ffab2feb61ed769534f05f43 SHA512 12a439e296117abeac5de4694f2efec74c7f2b15cd86cb8759bfba6867f68dfe6c2f5b86ac2f8884eb86dddb3221e19f6c47c976cbcedcebe28570b51280ef71 WHIRLPOOL 746f1cc0ec5a3840165c94cab406ef72089b952276370c3e82aced4b21d482f89edcbe88f6feca44fe9854267930d11429e83d650b3f8ba7b94e58e88aae4ce6
+EBUILD saaj-1.3.19-r2.ebuild 1685 SHA256 5f00e2e252e16f9470fd7e03992c15676d495e2215077abe2cfe7ed2fc9044a7 SHA512 9614381b2c50d876cd637762286ccb59e89763e49a151cdd0b052a342f44c5ee12e81c42983143644bcf73b1f5809beb798112b6727fcba81eb149b55b9026ad WHIRLPOOL 078b3fd13a7b9bbeb3e3d26d5e08c78fe4578fcb8bb5884384c68344158970e5632ff9761d1e107e48e687399ebc8f09fd33c50295aa70b0ec0531a4229f39ff
+MISC ChangeLog 2760 SHA256 e321dfe550c096a8c0e94d03dc93e4ccd6a67925cf5b48d4263a0a273ad3c2b8 SHA512 14a390d10637707719245432a5a990f7814df6450711f10317e3095fc232dff5772bd27b5b1e2d92ca51618be7d67263532f9d1c10a98978b0d83516a1b326ab WHIRLPOOL e09175ffbfe27e0132d44c27b4cc7e019311f6c2ac4a04c1b022de6fd1415b90f247ce04c8ff1fbc1cd406f5c67acee866fb0d300df8d8e4e0138736269b85ff
+MISC ChangeLog-2015 2752 SHA256 b08677c3974a5ffe187f505d308431bbf6d7f456c93bbd9443898b97ebecfedc SHA512 b43513e7fb9d9751096475071c63ea4147b1a8dbcedb22b56d264efc6dada70fe54530b47c668bde071c5c00bb7f8cdf51af9fb59fc3eea60cce485da3c71204 WHIRLPOOL 3d7c57c36041933b43cd18c6cec37a27cffbd032611a23d64a7541bf3b58304e6abc79a097636b4f7f48a4556957d88d9a952de8be3b30cf2ebf4b05f2acaa43
+MISC metadata.xml 242 SHA256 653cd0d34675fe6c6201752e96e6b035bad682c39a376c236b0a8f70dbdcc1c9 SHA512 50f4d6219b995b723d6ebbb4f2a18adbf558a685f862aea00f072254dcc0fe6c1388e4aeaf21fb3ce0fb840a2ef4851807536d037c9682b21cb1986198715a4f WHIRLPOOL 12c33e00040d7a3f4c26a8b7a6a6eaf10007a9e29af9904d192f89db5120a2760a7174fa40c40068eb6066d6a4f0dbbc57a12e852581de95cc956e210351b705
diff --git a/dev-java/saaj/files/saaj-1.3.19-java-5-bootclasspath.patch b/dev-java/saaj/files/saaj-1.3.19-java-5-bootclasspath.patch
new file mode 100644
index 000000000000..9b92b18944c9
--- /dev/null
+++ b/dev-java/saaj/files/saaj-1.3.19-java-5-bootclasspath.patch
@@ -0,0 +1,13 @@
+--- a/src/java/com/sun/xml/messaging/saaj/soap/ImageDataContentHandler.java
++++ b/src/java/com/sun/xml/messaging/saaj/soap/ImageDataContentHandler.java
+@@ -83,7 +83,9 @@
+ * @return The DataFlavors.
+ */
+ public DataFlavor[] getTransferDataFlavors() {
+- return (DataFlavor[]) Arrays.copyOf(flavor, flavor.length);
++ DataFlavor[] copyOf = new DataFlavor[flavor.length];
++ System.arraycopy(flavor, 0, copyOf, 0, flavor.length);
++ return copyOf;
+ }
+
+ /**
diff --git a/dev-java/saaj/metadata.xml b/dev-java/saaj/metadata.xml
new file mode 100644
index 000000000000..37998bf40746
--- /dev/null
+++ b/dev-java/saaj/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-java/saaj/saaj-1.3.19-r2.ebuild b/dev-java/saaj/saaj-1.3.19-r2.ebuild
new file mode 100644
index 000000000000..e5ce1011c0eb
--- /dev/null
+++ b/dev-java/saaj/saaj-1.3.19-r2.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+JAVA_PKG_IUSE="examples source test"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="SOAP with Attachments API for Java"
+HOMEPAGE="https://saaj.dev.java.net/"
+
+# svn export https://svn.java.net/svn/saaj~svn/tags/saaj-impl-1.3.19 saaj-1.3.19
+# tar cjf saaj-1.3.19.tar.bz2 saaj-1.3.19
+SRC_URI="https://dev.gentoo.org/~sera/distfiles/${P}.tar.bz2"
+
+LICENSE="CDDL"
+SLOT="0"
+KEYWORDS="amd64 x86 ~x86-fbsd"
+
+# saaj-api only for java 5
+CDEPEND="
+ dev-java/mimepull:0
+ dev-java/xerces:2
+ dev-java/xml-commons-external:1.4
+ java-virtuals/saaj-api:0"
+
+RDEPEND="
+ ${CDEPEND}
+ >=virtual/jre-1.6"
+
+# servlet-api 2.5 for java 5. 3.0 is java 6.
+DEPEND="
+ ${CDEPEND}
+ >=virtual/jdk-1.6
+ test? (
+ dev-java/ant-junit:0
+ dev-java/xalan:0
+ java-virtuals/servlet-api:2.5
+ )"
+
+PATCHES=( "${FILESDIR}"/${P}-java-5-bootclasspath.patch )
+
+HTML_DOCS=( docs )
+
+src_prepare() {
+ default
+
+ java-pkg_clean
+
+ # YES! There's nothing like using com.sun...internal ! YAY!
+ find src -name '*.java' -exec sed -i \
+ -e 's,com.sun.org.apache.xerces.internal,org.apache.xerces,g' \
+ -e 's,com.sun.org.apache.xalan.internal.xsltc.trax,org.apache.xalan.xsltc.trax,g' \
+ {} + || die
+}
+
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+
+EANT_GENTOO_CLASSPATH="mimepull,saaj-api,xerces-2,xml-commons-external-1.4"
+
+EANT_TEST_TARGET="test-all"
+EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},servlet-api-2.5,xalan"
+
+src_test() {
+ java-pkg-2_src_test
+}
+
+src_install() {
+ java-pkg_newjar build/lib/saaj-impl.jar ${PN}.jar
+ use examples && java-pkg_doexamples samples
+ use source && java-pkg_dosrc src/java/*
+ einstalldocs
+}