summaryrefslogtreecommitdiff
blob: 11f8ba48de31e540427a6dc76762515ca596e796 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/glassfish-servlet-api/glassfish-servlet-api-2_beta44.ebuild,v 1.2 2008/12/08 03:35:37 jmbsvicetto Exp $

JAVA_PKG_IUSE="doc source"

inherit base java-pkg-2 java-ant-2

MY_PV="${PV/_beta/-b}"
DESCRIPTION="Glassfish reference implementation of Servlet API 2.5 and JSP API 2.1"
HOMEPAGE="https://glassfish.dev.java.net/javaee5/webtier/webtierhome.html"
SRC_URI="http://download.java.net/javaee5/trunk/promoted/source/glassfish-v${MY_PV}-src.zip"
LICENSE="CDDL"
SLOT="2.5"
KEYWORDS="~amd64 ~x86"

DEPEND=">=virtual/jdk-1.5
	app-arch/unzip"

RDEPEND=">=virtual/jre-1.5"

S="${WORKDIR}/glassfish/servlet-api/"

PATCHES=( "${FILESDIR}/build_xml.patch" )

src_compile() {
	eant build $(use doc || echo -Ddocs.uptodate=true)
}

src_install() {
	java-pkg_dojar "${S}"/src/jakarta-servletapi-5/jsr154/dist/lib/*.jar
	java-pkg_dojar "${S}"/src/jsr245/dist/lib/*.jar

	use doc && java-pkg_dojavadoc src/jsr245/build/docs/api
	use source && java-pkg_dosrc src/*
}