diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-java/xml-security | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-java/xml-security')
| -rw-r--r-- | dev-java/xml-security/Manifest | 1 | ||||
| -rw-r--r-- | dev-java/xml-security/files/1.5.7-build.xml.patch | 38 | ||||
| -rw-r--r-- | dev-java/xml-security/metadata.xml | 9 | ||||
| -rw-r--r-- | dev-java/xml-security/xml-security-1.5.7-r1.ebuild | 65 |
4 files changed, 113 insertions, 0 deletions
diff --git a/dev-java/xml-security/Manifest b/dev-java/xml-security/Manifest new file mode 100644 index 000000000000..3d13ae007c69 --- /dev/null +++ b/dev-java/xml-security/Manifest @@ -0,0 +1 @@ +DIST xml-security-bin-1_5_7.zip 9164667 BLAKE2B ea0756f745c27767634bafaae1b3584ba6843cd9d6fe4d9c7cb080058015a576dc8a3f117d32ed3b139a42373057d7dc4ad33f0e25db4abbbaf140a0cc115e01 SHA512 ae8e538fe7c90013a89d139358efc06d8921b1b0050a686dcacd123f5a8a8f100be163e88fef59998ea0ba27ebe9855f06d1f33b1ac92fa3f31acbce9934bd36 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..428163197653 --- /dev/null +++ b/dev-java/xml-security/metadata.xml @@ -0,0 +1,9 @@ +<?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> + <origin>gentoo-staging</origin> +</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 +} |
