summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/saaj/saaj-1.3.ebuild')
-rw-r--r--dev-java/saaj/saaj-1.3.ebuild58
1 files changed, 58 insertions, 0 deletions
diff --git a/dev-java/saaj/saaj-1.3.ebuild b/dev-java/saaj/saaj-1.3.ebuild
new file mode 100644
index 000000000000..b7dade1ca8e0
--- /dev/null
+++ b/dev-java/saaj/saaj-1.3.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/saaj/saaj-1.3.ebuild,v 1.1 2007/05/01 18:37:32 nelchael Exp $
+
+JAVA_PKG_IUSE="source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="SOAP with Attachments API for Java"
+HOMEPAGE="https://saaj.dev.java.net/"
+SRC_URI="https://saaj.dev.java.net/files/documents/52/32731/saaj${PV}.src.zip"
+
+LICENSE="CDDL"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+COMMON_DEP="dev-java/jsr67
+ dev-java/sun-jaf
+ =dev-java/xerces-2*
+ dev-java/xalan"
+DEPEND=">=virtual/jdk-1.5
+ ${COMMON_DEP}"
+RDEPEND=">=virtual/jre-1.5
+ ${COMMON_DEP}"
+
+S="${WORKDIR}"
+
+src_unpack() {
+
+ unpack ${A}
+
+ mkdir src lib || die
+ mv com src || die
+
+ cd "${S}/lib"
+ java-pkg_jar-from jsr67
+ java-pkg_jar-from sun-jaf
+ java-pkg_jar-from xerces-2
+ java-pkg_jar-from xalan
+
+ cp "${FILESDIR}/build.xml-${PV}" "${S}/build.xml" -i || die
+
+ cd "${S}/src"
+ # YES! There's nothing like using com.sun...internal ! YAY!
+ find . -name '*.java' -exec sed -i \
+ -e 's,com.sun.org.apache.xerces.internal,org.apache.xerces,g' \
+ -e 's,com.sun.org.apache.xalan.internal.xsltc.trax,org.apache.xalan.xsltc.trax,g' \
+ {} \;
+
+}
+
+src_install() {
+ java-pkg_dojar saaj.jar
+
+ use source && java-pkg_dosrc src/*
+
+}