blob: dd20b4fe767b10ccfaa2e33daed079a1f1127640 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/echo2/echo2-2.0.0.ebuild,v 1.2 2006/07/14 14:07:50 nelchael Exp $
inherit java-pkg-2 java-ant-2
DESCRIPTION="Echo2 is the next-generation of the Echo Web Framework"
HOMEPAGE="http://www.nextapp.com/platform/echo2/echo/"
SRC_URI="NextApp_Echo2-${PV}.tgz"
DOWNLOAD_URI="http://www.nextapp.com/downloads/echo2/${PV}/NextApp_Echo2.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="doc source"
RESTRICT="fetch"
DEPEND=">=virtual/jdk-1.4"
RDEPEND=">=virtual/jre-1.4
>=dev-java/servletapi-2.4"
S="${WORKDIR}/NextApp_Echo2/"
pkg_nofetch() {
ewarn
ewarn "NextApp uses broken file naming, all versions of Echo2"
ewarn "are named NextApp_Echo2.tgz."
ewarn
ewarn "Please download following file:"
ewarn " ${DOWNLOAD_URI}"
ewarn "and move it to:"
ewarn " ${DISTDIR}/${SRC_URI}"
ewarn
}
src_compile() {
export SERVLET_LIB_JAR=$(java-config -p servletapi-2.4)
cd "${S}/SourceCode"
eant dist || die "ant failed"
}
src_install() {
java-pkg_dojar ${S}/SourceCode/dist/lib/*.jar
use doc && {
cd "${S}/Documentation"
java-pkg_dohtml -r api
}
java-pkg_dohtml "${S}/Documentation/index.html"
java-pkg_dohtml -r "${S}/Documentation/images"
use source && java-pkg_dosrc "${S}/SourceCode/src"
dodoc "${S}/readme.txt"
}
|