diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-java/saaj | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/saaj')
-rw-r--r-- | dev-java/saaj/Manifest | 4 | ||||
-rw-r--r-- | dev-java/saaj/files/saaj-1.3.19-java-5-bootclasspath.patch | 13 | ||||
-rw-r--r-- | dev-java/saaj/metadata.xml | 8 | ||||
-rw-r--r-- | dev-java/saaj/saaj-1.3.19-r2.ebuild | 74 |
4 files changed, 99 insertions, 0 deletions
diff --git a/dev-java/saaj/Manifest b/dev-java/saaj/Manifest new file mode 100644 index 000000000000..c5adeb297292 --- /dev/null +++ b/dev-java/saaj/Manifest @@ -0,0 +1,4 @@ +AUX saaj-1.3.19-java-5-bootclasspath.patch 502 BLAKE2B 6c753863bb79bfa13caf57b944e654768d77a809829196fd540619cebe72e9ecd7098164938d934dbb93619db7fee9ba6419670cc240ef0b2e367585c5e08432 SHA512 8477fac7d1a33b0ac7fc365c0eb385597cc0ae5cb65bc6ad45ebfb70a023b343adafbfbcf71cd226e14f4e282eee5654a5b0d310703aa4386b4238a4c55f0bd1 +DIST saaj-1.3.19.tar.bz2 2266558 BLAKE2B ea198273be03e8c01d66c2b088df99761eee46e264ac80987845af0fe8fb3992f5dfdd323a5e719241759c31dcc1da0d52cf4506eef1577d2e617eda0565bf29 SHA512 12a439e296117abeac5de4694f2efec74c7f2b15cd86cb8759bfba6867f68dfe6c2f5b86ac2f8884eb86dddb3221e19f6c47c976cbcedcebe28570b51280ef71 +EBUILD saaj-1.3.19-r2.ebuild 1675 BLAKE2B 1d80a4b46e189bb79a07348ad41abae94463be2ecfdb66c6d35485e581d7c510fb2d33148fa809cf22d2acb0befdb24e9516c83910460c861713ec9517c2c6f3 SHA512 b43964117da68ae030ca47a8ac6b277732d8a0876a0c301dae90be8dbfa0fd50ca3ab9bbe30129f638555707dd7b3c67a5722b8848446cbb3ab4aff280a1967c +MISC metadata.xml 242 BLAKE2B 6bf5b48906c64a18d9f27e7ecec168ed039f8d390792d62aedb8c86627a13ff09d583a736982057d245fe5db27c4016257125d69792d6bbe424e7d2a35067675 SHA512 50f4d6219b995b723d6ebbb4f2a18adbf558a685f862aea00f072254dcc0fe6c1388e4aeaf21fb3ce0fb840a2ef4851807536d037c9682b21cb1986198715a4f 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..5fb094560cfa --- /dev/null +++ b/dev-java/saaj/saaj-1.3.19-r2.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2018 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" + +# 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 +} |