summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/gnu-javamail/gnu-javamail-1.0-r2.ebuild')
-rw-r--r--dev-java/gnu-javamail/gnu-javamail-1.0-r2.ebuild55
1 files changed, 55 insertions, 0 deletions
diff --git a/dev-java/gnu-javamail/gnu-javamail-1.0-r2.ebuild b/dev-java/gnu-javamail/gnu-javamail-1.0-r2.ebuild
new file mode 100644
index 000000000000..f30e319ebc81
--- /dev/null
+++ b/dev-java/gnu-javamail/gnu-javamail-1.0-r2.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit java-pkg-2
+
+MY_PN="mail"
+MY_P="${MY_PN}-${PV}"
+DESCRIPTION="GNU implementation of the Javamail API"
+HOMEPAGE="http://www.gnu.org/software/classpathx/javamail/"
+SRC_URI="mirror://gnu/classpathx/${MY_P}.tar.gz"
+LICENSE="GPL-2-with-linking-exception"
+SLOT="1"
+KEYWORDS="amd64 x86"
+IUSE="doc"
+RDEPEND=">=virtual/jre-1.4
+ =dev-java/gnu-jaf-1*
+ =dev-java/gnu-classpath-inetlib-1.0*
+ !<=dev-java/mx4j-3.0.1
+ !<=dev-java/mx4j-3.0.1-r2"
+DEPEND=">=virtual/jdk-1.4
+ ${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+# TODO: Re-enable jikes support (see bug #89711)
+
+src_compile() {
+ local activation=$(dirname $(java-pkg_getjar gnu-jaf-1 activation.jar))
+ local inetlib=$(dirname $(java-pkg_getjar gnu-classpath-inetlib-1.0 inetlib.jar))
+
+ econf \
+ --with-activation-jar=${activation} \
+ --with-inetlib-jar=${inetlib} \
+ --enable-smtp \
+ --enable-imap \
+ --enable-pop3 \
+ --enable-nntp \
+ --enable-mbox \
+ --enable-maildir \
+ || die "failed to configure"
+
+ emake JAVACFLAGS="${JAVACFLAGS}" || die "failed to compile"
+
+ if use doc; then
+ emake javadoc || die "failed to generate javadoc"
+ fi
+}
+
+src_install() {
+ java-pkg_dojar gnumail-providers.jar
+ java-pkg_newjar gnumail.jar mail.jar
+ dodoc AUTHORS ChangeLog NEWS README README.*
+ use doc && java-pkg_dojavadoc docs
+}