summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/xml-security')
-rw-r--r--dev-java/xml-security/Manifest1
-rw-r--r--dev-java/xml-security/files/1.5.7-build.xml.patch38
-rw-r--r--dev-java/xml-security/metadata.xml5
-rw-r--r--dev-java/xml-security/xml-security-1.5.7.ebuild57
4 files changed, 101 insertions, 0 deletions
diff --git a/dev-java/xml-security/Manifest b/dev-java/xml-security/Manifest
new file mode 100644
index 000000000000..50df9d104a7d
--- /dev/null
+++ b/dev-java/xml-security/Manifest
@@ -0,0 +1 @@
+DIST xml-security-bin-1_5_7.zip 9164667 SHA256 37e31a3f80da74efddc5aabc9515366741aa68dfa3f71e903c0a870dec871011 SHA512 ae8e538fe7c90013a89d139358efc06d8921b1b0050a686dcacd123f5a8a8f100be163e88fef59998ea0ba27ebe9855f06d1f33b1ac92fa3f31acbce9934bd36 WHIRLPOOL faa1cd472b013a69ca38505806630aa423706a9a95f83a8bdd98813c8fc870875def6cf5c5157b1409280c362fb4070a8b9822c981bd8bc49b5a3688ccfd1b70
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..7303cef96964
--- /dev/null
+++ b/dev-java/xml-security/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+</pkgmetadata>
diff --git a/dev-java/xml-security/xml-security-1.5.7.ebuild b/dev-java/xml-security/xml-security-1.5.7.ebuild
new file mode 100644
index 000000000000..212ad77ba35b
--- /dev/null
+++ b/dev-java/xml-security/xml-security-1.5.7.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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.5"
+DEPEND="${CDEPEND}
+ test? ( dev-java/junit:4 )
+ >=virtual/jdk-1.5"
+
+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"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PV}-build.xml.patch"
+ find "${S}" -name "*.jar" -delete || die
+ rm "${S}"/src/test/java/org/apache/xml/security/test/utils/OldApiTest.java || 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
+}