summaryrefslogtreecommitdiff
blob: 9a43164346fd08d67f1c0e5792769f4c69f2ab4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/gnu-javamail/gnu-javamail-20040331.ebuild,v 1.4 2004/06/24 22:27:42 agriffis Exp $

inherit java-pkg

DESCRIPTION="GNU implementation of the Javamail API"
HOMEPAGE="http://www.gnu.org/software/classpathx/javamail/"
SRC_URI="http://www.gentoo.org/~karltk/java/distfiles/javamail-${PV}-gentoo.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="doc jikes"
RDEPEND=">=virtual/jre-1.3
	=dev-java/gnu-activation-20040331
	=dev-java/gnu-classpath-inetlib-20040331"
DEPEND=">=virtual/jdk-1.3
	${RDEPEND}
	jikes? >=dev-java/jikes-1.19"
S=${WORKDIR}/javamail-${PV}

src_compile() {
	# TODO: Add jikes back	
	# TODO: Useflag this
	econf \
		--with-activation-jar=/usr/share/gnu-activation/lib \
		--with-inetlib-jar=/usr/share/gnu-classpath-inetlib/lib \
		--enable-smtp \
		--enable-imap \
		--enable-pop3 \
		--enable-nntp \
		--enable-mbox \
		--enable-maildir \
		|| die
	emake || die
	if use javadoc ; then
		emake javadoc
	fi
}

src_install() {
	java-pkg_dojar gnumail.jar gnumail-providers.jar || die
	dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README README.*
	use doc && dohtml -r docs/*
}