summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2009-05-07 19:29:50 +0000
committerVlastimil Babka <caster@gentoo.org>2009-05-07 19:29:50 +0000
commit5da8da5dee342a0564f4f0bbf01705db20ade598 (patch)
treec8ead3d7f758e01a15b7775cbf91ff1c660bb7ce /dev-java/sun-javamail/sun-javamail-1.4.2.ebuild
parentdequote A variable (diff)
downloadgentoo-2-5da8da5dee342a0564f4f0bbf01705db20ade598.tar.gz
gentoo-2-5da8da5dee342a0564f4f0bbf01705db20ade598.tar.bz2
gentoo-2-5da8da5dee342a0564f4f0bbf01705db20ade598.zip
Version bump, bug #267174. Use virtual for jaf.
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/sun-javamail/sun-javamail-1.4.2.ebuild')
-rw-r--r--dev-java/sun-javamail/sun-javamail-1.4.2.ebuild57
1 files changed, 57 insertions, 0 deletions
diff --git a/dev-java/sun-javamail/sun-javamail-1.4.2.ebuild b/dev-java/sun-javamail/sun-javamail-1.4.2.ebuild
new file mode 100644
index 000000000000..da30bd80c31e
--- /dev/null
+++ b/dev-java/sun-javamail/sun-javamail-1.4.2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-javamail/sun-javamail-1.4.2.ebuild,v 1.1 2009/05/07 19:29:50 caster Exp $
+
+EAPI=2
+JAVA_PKG_IUSE="doc source"
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="A Java-based framework to build multiplatform mail and messaging applications."
+HOMEPAGE="http://java.sun.com/products/javamail/index.html"
+
+# error 500 without the double slash, wonder what HTTP standard says about this
+SRC_URI="http://kenai.com/projects/javamail/downloads/download//javamail-${PV}-src.zip"
+
+# either of these
+LICENSE="CDDL GPL-2 BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
+
+COMMON_DEP="java-virtuals/jaf"
+DEPEND=">=virtual/jdk-1.5
+ ${COMMON_DEP}"
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+
+S="${WORKDIR}"
+
+# some not essential classes need 1.5 to compile
+# but 1.4 bytecode for better support
+JAVA_PKG_WANT_SOURCE="1.4"
+JAVA_PKG_WANT_TARGET="1.4"
+
+src_unpack() {
+ default
+
+ # build.xml expects it here
+ mkdir -p legal/src/main/resources/META-INF || die
+ cp mail/src/main/resources/META-INF/LICENSE.txt \
+ legal/src/main/resources/META-INF || die
+}
+
+java_prepare() {
+ java-pkg_jar-from --virtual jaf
+}
+
+EANT_DOC_TARGET="docs"
+EANT_EXTRA_ARGS="-Djavaee.jar=activation.jar -Dspec.dir=doc/spec"
+
+src_install() {
+ java-pkg_dojar target/release/mail.jar
+
+ dodoc doc/release/{CHANGES,COMPAT,NOTES,README,SSLNOTES,distributionREADME}.txt || die
+ dohtml -r doc/release/{*.html,images} || die
+
+ use doc && java-pkg_dojavadoc target/release/docs/javadocs
+ use source && java-pkg_dosrc mail/src/main/java
+}