blob: 797750afad9a5e51e368be0df560e8ff2aca70a3 (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2
MY_PV=05Nov2002
MY_P=${PN}-${MY_PV}
DESCRIPTION="The com.oreilly.servlet package is a class library for servlet developers"
HOMEPAGE="http://servlets.com/cos/"
SRC_URI="http://servlets.com/${PN}/${MY_P}.zip"
LICENSE="cos"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="${JAVA_PKG_IUSE}"
RDEPEND=">=virtual/jre-1.4
java-virtuals/servlet-api:2.3"
DEPEND=">=virtual/jdk-1.4
app-arch/unzip:0
${RDEPEND}"
S="${WORKDIR}"
java_prepare() {
rm -r lib classes *.war || die
# TODO: Not sure how to fix the compilation error for this class;
# so, we'll just delete it for now...
rm src/com/oreilly/servlet/CacheHttpServlet.java || die
cp "${FILESDIR}"/build-${PV}.xml build.xml || die
cat > build.properties <<-EOF
classpath=$(java-pkg_getjars servlet-api-2.3)
EOF
}
src_compile() {
eant -Dproject.name=${PN} jar $(use_doc)
}
src_install() {
java-pkg_dojar dist/${PN}.jar
dodoc readme.txt license.txt
use doc && java-pkg_dojavadoc dist/doc/api
use source && java-pkg_dosrc src/com
}
|