summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Baidakou <the.dmol@gmail.com>2012-09-16 22:58:30 +0300
committerIvan Baidakou <the.dmol@gmail.com>2012-09-16 22:58:30 +0300
commitb85b4e8be5e9b4af6eadc46c754b468598c2aac5 (patch)
tree460ea46e516612a7e9cdeb5083273728fe1fc216
parentadd die calls to sed statements (diff)
downloaddmol-b85b4e8be5e9b4af6eadc46c754b468598c2aac5.tar.gz
dmol-b85b4e8be5e9b4af6eadc46c754b468598c2aac5.tar.bz2
dmol-b85b4e8be5e9b4af6eadc46c754b468598c2aac5.zip
add ebuild xml-security-1.5.2
-rw-r--r--dev-java/xml-security/Manifest4
-rw-r--r--dev-java/xml-security/files/xml-security-1.5.2-build.xml.patch68
-rw-r--r--dev-java/xml-security/metadata.xml7
-rw-r--r--dev-java/xml-security/xml-security-1.5.2.ebuild62
4 files changed, 141 insertions, 0 deletions
diff --git a/dev-java/xml-security/Manifest b/dev-java/xml-security/Manifest
new file mode 100644
index 0000000..b4ab760
--- /dev/null
+++ b/dev-java/xml-security/Manifest
@@ -0,0 +1,4 @@
+AUX xml-security-1.5.2-build.xml.patch 2164 SHA256 71b03cca81bca80f51337f3efc489d0f9ac81da35f264fc6362d292f4ed0816a SHA512 fd84077a5ef0ad0f0e677e7abe73eff356dc37b01cb8053af53acde3b75d2229341b27ef2468fd33db4807b3ba8aa288037f81e8ba62cd557e52468308fb078e WHIRLPOOL 621fc28e797e13411c51cb2f019927b9f8ceef26a9e2287b1165479234f937320db282d617c24d70c9af710605ce0dc93ff4fc25e9690c4b569d0867fe4d4c29
+DIST xml-security-src-1_5_2.zip 2399190 SHA256 fb758e4abcff53efcd11a24330105965f665088c1d02aeba68b6547f8afc5200 SHA512 5c9b1193074f5eac20a7bdc29054706b781dbbf327f709e9017fac2808b783f9abe17d38424c2a91bd70f5ca9d1a35feac3b56da761a00834f62f3909885ce36 WHIRLPOOL 5932716bf3ba4d2f215ce7e0ba4bcd2f1313c6f911145953c5c11bfa4afb96ed1aca072c3a23fd3afa5762aff7e77d4ff64e196f09348ebd8826c05e31424448
+EBUILD xml-security-1.5.2.ebuild 1700 SHA256 6689ccd8bfca25bffaf0f965d85fc9c07a1da91d4b2804bf5ba1b07bc573ed40 SHA512 690e4d7560d858650891f4929c7689db7ae2a5242c3577411c6adf9f2af7ede7d1a23787f43399ab5133546e83cee559e235376d22e06ea65e25a54b35ccc9b3 WHIRLPOOL 5d12409217c4c42941e82db6ca4c327ed2ef51f655974db71fa391aaac6dcb5c2e7f0a4cc13fde42f8ae96bb6f8d7f11a2df171cba9657e5ff6c733e0b93b070
+MISC metadata.xml 205 SHA256 2ff0740a5424b0e10c7888541a248d1bd363a60911b0921b4cfe5c36590498ce SHA512 e7c77c724739d0af43cc338ded09dcbeee2a710eb0e49f1e656dc4c891bee85bfd6935bf70a191a1c5823f473643e676d64970416e5f1820ea466681016757c5 WHIRLPOOL 5b7f0c2a5243244fa06b072c8f0d9f53e7b6f45c7e1b74a0d945bdcc28b7137fddfd58e85b0d3e721e80963916ceae0d4cca59f48114ba26c47b24a91d6abb27
diff --git a/dev-java/xml-security/files/xml-security-1.5.2-build.xml.patch b/dev-java/xml-security/files/xml-security-1.5.2-build.xml.patch
new file mode 100644
index 0000000..470263c
--- /dev/null
+++ b/dev-java/xml-security/files/xml-security-1.5.2-build.xml.patch
@@ -0,0 +1,68 @@
+--- /tmp/xml-security-1_5_2.orig/build.xml 2012-09-16 20:51:40.803579562 +0300
++++ build.xml 2012-09-16 20:56:41.070804693 +0300
+@@ -253,6 +253,14 @@
+ <fileset dir="${dir.src.test}" includes="**/*.xml"/>
+ <fileset dir="${dir.src.test}" includes="**/*.zip"/>
+ </copy>
++ <!-- 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>
+
+ <!-- samples -->
+@@ -274,7 +282,7 @@
+
+ <!-- T E S T T A R G E T S -->
+ <!-- big test -->
+- <target name="test" depends="build.jar"
++ <target name="test" depends="build.jar,build.test"
+ description="Starts all Junit tests">
+ <delete dir="${dir.build.junit.xml}"/>
+ <delete dir="${dir.build.junit.html}"/>
+@@ -327,7 +335,7 @@
+ </target>
+
+ <!-- Test JSR 105/XML DSig API -->
+- <target name="test_jsr105" depends="build.jar"
++ <target name="test_jsr105" depends="build.jar,build.test"
+ description="Runs JSR 105 interop and unit tests">
+ <delete dir="${dir.build.junit.xml}"/>
+ <delete dir="${dir.build.junit.html}"/>
+@@ -668,7 +676,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}"
+@@ -679,23 +687,6 @@
+ <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 0000000..80859ae
--- /dev/null
+++ b/dev-java/xml-security/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>the.dmol@gmail.com</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-java/xml-security/xml-security-1.5.2.ebuild b/dev-java/xml-security/xml-security-1.5.2.ebuild
new file mode 100644
index 0000000..03595d8
--- /dev/null
+++ b/dev-java/xml-security/xml-security-1.5.2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+JAVA_PKG_IUSE="doc source test"
+WANT_ANT_TASKS="ant-nodeps"
+
+inherit java-pkg-2 java-ant-2
+
+MY_PV=${PV//./_}
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="The XML Security project is aimed at providing implementation of
+security standards for XML."
+HOMEPAGE="http://santuario.apache.org/"
+#SRC_URI="http://xml.apache.org/security/dist/java-library/xml-security-src-${MY_PV}.zip"
+SRC_URI="http://archive.apache.org/dist/santuario/java-library/${MY_PV}/${PN}-src-${MY_PV}.zip"
+
+LICENSE="Apache-2.0"
+SLOT="1.5"
+KEYWORDS="~amd64"
+IUSE="doc examples"
+
+CDEPEND="dev-java/commons-logging
+ dev-java/xalan"
+
+#jdk-1.6 already contains javax.security.xml.*
+RDEPEND=">=virtual/jre-1.6
+ ${CDEPEND}"
+
+DEPEND="${RDEPEND}
+ >=virtual/jdk-1.6
+ app-arch/unzip
+ test? ( dev-java/junit:4 )
+ ${CDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+EANT_GENTOO_CLASSPATH="commons-logging,xalan"
+EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit-4"
+EANT_DOC_TARGET="build.docs"
+
+java_prepare() {
+ #jdk-1.6 already contains javax.security.xml.*
+ rm -rv src/main/java/javax
+ epatch "${FILESDIR}"/${P}-build.xml.patch
+}
+
+src_test() {
+ #Caused by: java.security.InvalidKeyException: Illegal key size or default parameters
+ rm -v src/test/java/org/apache/xml/security/test/encryption/{BaltimoreEncTest,XMLCipherTest}.java
+ ANT_TASKS="ant-junit" java-pkg-2_src_test
+}
+
+src_install() {
+ java-pkg_newjar build/xmlsec-${PV}.jar
+ use source && java-pkg_dosrc src/main/java/org
+ use examples && java-pkg_doexamples samples/
+ dodoc NOTICE
+ use doc && java-pkg_dohtml -r build/docs/html/javadoc
+}