blob: ce0cd7c19825903941c2199eed88fd0eb6da160b (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/quartz/quartz-1.4.5.ebuild,v 1.4 2005/10/15 11:41:22 axxo Exp $
inherit java-pkg
DESCRIPTION="Quartz Scheduler from OpenSymphony"
HOMEPAGE="http://www.opensymphony.com/quartz/"
SRC_URI="mirror://sourceforge/quartz/${P}.zip"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~x86 ~ppc ~amd64"
IUSE="dbcp doc jboss jikes jmx jta oracle servlet-2.3 servlet-2.4 struts"
RDEPEND=">=virtual/jre-1.4
oracle? ( >=dev-java/jdbc3-oracle-9.2.0.3 )
servlet-2.3? ( >=dev-java/servletapi-2.3 )
servlet-2.4? ( >=dev-java/servletapi-2.4 )
dbcp? ( >=dev-java/commons-dbcp-1.1 )
jboss? ( >=www-servers/jboss-3.2.3 )
jta? ( >=dev-java/jta-1.0.1 )
jmx? ( >=dev-java/sun-jmx-1.2.1 )
struts? ( =dev-java/struts-1.1* )
jikes? ( dev-java/jikes )"
DEPEND=">=virtual/jdk-1.4
${RDEPEND}
dev-java/ant
app-arch/unzip"
src_compile() {
local antflags=""
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
use servlet-2.3 && CLASSPATH="$CLASSPATH:$(java-pkg_getjars servletapi-2.3)"
use servlet-2.4 && CLASSPATH="$CLASSPATH:$(java-pkg_getjars servletapi-2.4)"
use dbcp && CLASSPATH="$CLASSPATH:$(java-pkg_getjars commons-dbcp)"
use jta && CLASSPATH="$CLASSPATH:$(java-pkg_getjars jta)"
use oracle && CLASSPATH="$CLASSPATH:$(java-pkg_getjars jdbc2-oracle-5)"
if use jboss; then
cp /usr/share/jboss/lib/jboss-common.jar ${S}/lib
cp /usr/share/jboss/lib/jboss-jmx.jar ${S}/lib
cp /usr/share/jboss/lib/jboss-system.jar ${S}/lib
cp /var/lib/jboss/default/lib/jboss.jar ${S}/lib
antflags="${antflags} -Dlib.jboss-common.jar=/usr/share/jboss/lib/jboss-common.jar"
antflags="${antflags} -Dlib.jboss-jmx.jar=/usr/share/jboss/lib/jboss-jmx.jar"
antflags="${antflags} -Dlib.jboss-system.jar=/usr/share/jboss/lib/jboss-system.jar"
antflags="${antflags} -Dlib.jboss.jar=/var/lib/jboss/default/lib/jboss.jar"
fi
use struts && CLASSPATH="$CLASSPATH:$(java-pkg_getjars struts-1.1)"
antflags="${antflags} compile jar"
use doc && antflags="${antflags} javadoc"
ant ${antflags} || die "compile failed"
}
src_install() {
java-pkg_dojar lib/quartz.jar
use doc && java-pkg_dohtml -r docs/
}
|