diff options
Diffstat (limited to 'dev-java/xml-security')
-rw-r--r-- | dev-java/xml-security/Manifest | 4 | ||||
-rw-r--r-- | dev-java/xml-security/files/1.5.7-build.xml.patch | 38 | ||||
-rw-r--r-- | dev-java/xml-security/metadata.xml | 8 | ||||
-rw-r--r-- | dev-java/xml-security/xml-security-1.5.7-r1.ebuild | 65 |
4 files changed, 115 insertions, 0 deletions
diff --git a/dev-java/xml-security/Manifest b/dev-java/xml-security/Manifest new file mode 100644 index 000000000000..6554f99489f4 --- /dev/null +++ b/dev-java/xml-security/Manifest @@ -0,0 +1,4 @@ +AUX 1.5.7-build.xml.patch 1124 BLAKE2B e51aa373776a51657f6047c8baf15ff0041aa82dcf660846e4218b85b67f7049d4e138c789f24094e170db5a29656fdd6be5501f38197d64fdcef748884a78a9 SHA512 9fd53bf8efde00c0602b007e5d54d00c923432357eb56c727f6f09845a43557b8b168704842e206ac5c78d6718bfd8f3629ee808b6e08e9f18e3097aa7f099e1 +DIST xml-security-bin-1_5_7.zip 9164667 BLAKE2B ea0756f745c27767634bafaae1b3584ba6843cd9d6fe4d9c7cb080058015a576dc8a3f117d32ed3b139a42373057d7dc4ad33f0e25db4abbbaf140a0cc115e01 SHA512 ae8e538fe7c90013a89d139358efc06d8921b1b0050a686dcacd123f5a8a8f100be163e88fef59998ea0ba27ebe9855f06d1f33b1ac92fa3f31acbce9934bd36 +EBUILD xml-security-1.5.7-r1.ebuild 1527 BLAKE2B c276fcef727f2f6850136bfc2d1301def71799bca71cf6e00889a372b77eb26e3b21366cb3d877eddd341a62e5acf91097a19098a00851b5885edda5efedbb0a SHA512 bcf0de359de308d8988e7c5911eb0975cb95eeb566c4803b4c1ffd45b35a3b92cf82168b41022feb76b42dbddc91fb5b1b45326f949a70063052c1d38433d33a +MISC metadata.xml 236 BLAKE2B 5a64c4404c26415501f50132968e687d4f1b852738cb0e1a5aef8cc4de9e4ea623066f46068fce3d80514ff122d85304e3fd12282c4b1513a4084523ef8bef07 SHA512 1755c2590e59060f697294c5ad125b83f2d50e05a71f7091b7de75953941914cd2db3a893bd6154a2c90fa4aff5e313e75e3e174dbba1edd5c112787da5be253 diff --git a/dev-java/xml-security/files/1.5.7-build.xml.patch b/dev-java/xml-security/files/1.5.7-build.xml.patch new file mode 100644 index 000000000000..294c059574d6 --- /dev/null +++ b/dev-java/xml-security/files/1.5.7-build.xml.patch @@ -0,0 +1,38 @@ +diff --git a/xml-security-1_5_5/build.xml b/xml-security-1_5_5/build.xml +index d959d67..d91f98e 100644 +--- a/xml-security-1_5_5/build.xml ++++ b/xml-security-1_5_5/build.xml +@@ -668,7 +668,7 @@ + </target> + + <target name="build.jar" +- depends="manifest,build.src,build.test,build.samples"> ++ depends="manifest,build.src"> + + <!-- Main Library --> + <jar basedir="${dir.build.bin}" +@@ -678,24 +678,6 @@ + manifest="${jar.manifest}"> + <metainf file="${dir.manifest}/*.txt"/> + </jar> +- +- <!-- Samples --> +- <jar basedir="${dir.build.samples}" +- excludes="org/apache/xml/security/temp/**" +- includes="org/apache/**, javax/xml/crypto/**" +- destfile="${jar.samples}" +- manifest="${jar.manifest}"> +- <metainf file="${dir.manifest}/*.txt"/> +- </jar> +- +- <!-- Tests --> +- <jar basedir="${dir.build.test}" +- excludes="org/apache/xml/security/temp/**" +- includes="org/apache/**, javax/xml/crypto/**" +- destfile="${jar.tests}" +- manifest="${jar.manifest}"> +- <metainf file="${dir.manifest}/*.txt"/> +- </jar> + </target> + + <target name="build.src.jar" diff --git a/dev-java/xml-security/metadata.xml b/dev-java/xml-security/metadata.xml new file mode 100644 index 000000000000..952a4b9b605c --- /dev/null +++ b/dev-java/xml-security/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/xml-security/xml-security-1.5.7-r1.ebuild b/dev-java/xml-security/xml-security-1.5.7-r1.ebuild new file mode 100644 index 000000000000..2f0dfc584976 --- /dev/null +++ b/dev-java/xml-security/xml-security-1.5.7-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +JAVA_PKG_IUSE="doc source test" + +inherit java-pkg-2 java-ant-2 + +MY_PV=${PV//./_} +DESCRIPTION="An implementation of the primary security standards for XML" +HOMEPAGE="http://santuario.apache.org/" +SRC_URI="mirror://apache/santuario/java-library/${MY_PV}/${PN}-bin-${MY_PV}.zip" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 x86" + +IUSE="" + +CDEPEND=" + dev-java/commons-logging:0 + dev-java/xalan:0 +" + +RDEPEND="${CDEPEND} + >=virtual/jre-1.6" +DEPEND="${CDEPEND} + test? ( + dev-java/ant-junit:0 + dev-java/junit:4 + ) + >=virtual/jdk-1.6" + +S="${WORKDIR}/${PN}-${MY_PV}" + +JAVA_ANT_REWRITE_CLASSPATH="yes" +EANT_GENTOO_CLASSPATH="commons-logging,xalan" +EANT_GENTOO_CLASSPATH_EXTRA="${S}"/build/xmlsec-${PV}.jar +EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit-4" +EANT_TEST_TARGET="build.test test" +WANT_ANT_TASKS="ant-junit" + +# Buggy tests. +JAVA_RM_FILES=( + src/test/java/org/apache/xml/security/test/encryption/BaltimoreEncTest.java + src/test/java/org/apache/xml/security/test/encryption/XMLCipherTest.java + src/test/java/org/apache/xml/security/test/utils/OldApiTest.java +) + +java_prepare() { + epatch "${FILESDIR}/${PV}-build.xml.patch" + find "${S}" -name "*.jar" -delete || die +} + +src_install() { + java-pkg_newjar "${S}"/build/xmlsec-${PV}.jar ${PN}.jar + + use source && java-pkg_dosrc "${S}"/src/main/java/* + use doc && java-pkg_dojavadoc "${S}"/build/docs/html/javadoc +} + +src_test() { + java-pkg-2_src_test +} |