summaryrefslogtreecommitdiff
path: root/dev-java/xml-security
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/xml-security')
-rw-r--r--dev-java/xml-security/Manifest6
-rw-r--r--dev-java/xml-security/files/1.5.7-build.xml.patch38
-rw-r--r--dev-java/xml-security/metadata.xml8
-rw-r--r--dev-java/xml-security/xml-security-1.5.7-r1.ebuild65
4 files changed, 117 insertions, 0 deletions
diff --git a/dev-java/xml-security/Manifest b/dev-java/xml-security/Manifest
new file mode 100644
index 000000000000..caeb37c29e31
--- /dev/null
+++ b/dev-java/xml-security/Manifest
@@ -0,0 +1,6 @@
+AUX 1.5.7-build.xml.patch 1124 SHA256 8bba6fdc933f53dfa32e862c4ac8cdfd1c14b78215a48400ca86d9513e1917c5 SHA512 9fd53bf8efde00c0602b007e5d54d00c923432357eb56c727f6f09845a43557b8b168704842e206ac5c78d6718bfd8f3629ee808b6e08e9f18e3097aa7f099e1 WHIRLPOOL 910d8ae3e232ff3cb4db93437550acc2cd50f471b16e4a8ac64164a1a2f51063413d432801990d21e6d0fec4a4be163abcc6a69eeeb44df03ab94fc21e8836db
+DIST xml-security-bin-1_5_7.zip 9164667 SHA256 37e31a3f80da74efddc5aabc9515366741aa68dfa3f71e903c0a870dec871011 SHA512 ae8e538fe7c90013a89d139358efc06d8921b1b0050a686dcacd123f5a8a8f100be163e88fef59998ea0ba27ebe9855f06d1f33b1ac92fa3f31acbce9934bd36 WHIRLPOOL faa1cd472b013a69ca38505806630aa423706a9a95f83a8bdd98813c8fc870875def6cf5c5157b1409280c362fb4070a8b9822c981bd8bc49b5a3688ccfd1b70
+EBUILD xml-security-1.5.7-r1.ebuild 1527 SHA256 627f3faba862fffcab2e61466c1b8dd2ac72ef7dcde45546e8a2c31f8bebcf14 SHA512 bcf0de359de308d8988e7c5911eb0975cb95eeb566c4803b4c1ffd45b35a3b92cf82168b41022feb76b42dbddc91fb5b1b45326f949a70063052c1d38433d33a WHIRLPOOL 564853a7a7289ee6ca3dafbaf648b75ffb820e45839406f1be30a640d6d68781cffbed63cb70aac26a43b0d43f96ac4df2640afdee73c4220dc98deb191ddb11
+MISC ChangeLog 3104 SHA256 8ecb643bd8e282b85016936cda1c25e457496b403a7dd9584f41cce31a87db2f SHA512 14f5ffff85b2ac22ea166890885dab738c320544ed21a174e741b87203026c0439787e6a04f7e8da0819e5271a6b02c7fd6e368370cb020eb88ea1decbb31a7f WHIRLPOOL f1403538b9994ec3bb99cad2b11e15ce90a3dc8ec2e0e977fbad6dd226d54c89efff459c4b28ba49323a80d9c0930486304ba59a61a90f11ca3508d6b5d66f82
+MISC ChangeLog-2015 426 SHA256 2d618d043f25b8b3bd59eb206ac5565f5da1bd529be21e12c84aae4e92504e82 SHA512 bd6f136cde9a27054acc9e5919b23395dc3fe9815a98c20aacce39180fb1ee9bc001e87fbc5ccc8972d64dac5b6852cd4e2335737a8824633cb2bd46e600e8e8 WHIRLPOOL f296d66e267d4cabdff8e5a425281347b1b1101754ce8247242af22f0bdc44dae18d9c19d3eca1e76de57311d1ad03788e06dea1e755272a55d0dad19f09c5f9
+MISC metadata.xml 236 SHA256 3e778d35b34b5cc1a4dd7ce105fe7d2a99b25fb6dfe24709455da94baa8a0548 SHA512 1755c2590e59060f697294c5ad125b83f2d50e05a71f7091b7de75953941914cd2db3a893bd6154a2c90fa4aff5e313e75e3e174dbba1edd5c112787da5be253 WHIRLPOOL 7967660784d0d28e9a3c3c222c5bf85b3a8b59fd84b61780e4e7cc1aa5d8bd87bee40e4c5c42e646f15d6641fe182340bcbe8be94c785f40e0ac870c7a96e5cc
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
+}