blob: 1e02b93b64eba8f7f4e812e54b60e1dc4f187bc2 (
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
|
# Copyright 1999-2006 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.ebuild,v 1.7 2006/11/24 21:13:35 corsair Exp $
inherit java-pkg-2
DESCRIPTION="A Java-based framework to build multiplatform mail and messaging applications."
HOMEPAGE="http://java.sun.com/products/javamail/index.html"
# CVS:
# View: https://glassfish.dev.java.net/source/browse/glassfish/mail/?only_with_tag=JAVAMAIL-1_4
# How-To: https://glassfish.dev.java.net/servlets/ProjectSource
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="CDDL"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 x86"
IUSE="doc source"
DEPEND=">=virtual/jdk-1.5
dev-java/ant-core
dev-java/sun-jaf
source? ( app-arch/zip )"
RDEPEND=">=virtual/jre-1.4"
S="${WORKDIR}/mail"
JAVA_PKG_WANT_SOURCE="1.4"
JAVA_PKG_WANT_TARGET="1.4"
src_unpack() {
unpack ${A}
cd ${S}
java-pkg_jar-from sun-jaf activation.jar activation-real.jar
cp -L activation-real.jar activation.jar
}
src_compile() {
# ensure strict to workaround bug #143246
JAVA_PKG_STRICT=true eant -Djavaee.jar=activation.jar jar $(use_doc docs)
}
src_install() {
java-pkg_dojar build/release/mail.jar
use doc && java-pkg_dojavadoc build/release/docs/javadocs
use source && java-pkg_dosrc src/java
}
|