blob: 74ae2dcda381dc3d90e8d773d4515c6997b916e0 (
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/hibernate/hibernate-3.1.3.ebuild,v 1.5 2007/04/25 20:10:38 nelchael Exp $
WANT_ANT_TASKS="ant-antlr ant-swing ant-junit"
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2
MY_PV="3.1"
DESCRIPTION="Hibernate is a powerful, ultra-high performance object / relational persistence and query service for Java."
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
HOMEPAGE="http://www.hibernate.org"
LICENSE="LGPL-2"
IUSE=""
SLOT="3.1"
KEYWORDS="~x86 ~amd64"
COMMON_DEPEND="
dev-java/antlr
=dev-java/asm-2.0*
dev-java/c3p0
=dev-java/cglib-2.1*
dev-java/commons-collections
dev-java/commons-logging
=dev-java/dom4j-1*
=dev-java/ehcache-1.1*
=dev-java/jaxen-1.1*
dev-java/log4j
dev-java/oscache
dev-java/proxool
=dev-java/swarmcache-1*
dev-java/jta
dev-java/sun-jacc-api
dev-java/jgroups
>=dev-java/xerces-2.7
dev-java/ant-core"
RDEPEND=">=virtual/jre-1.4
${COMMON_DEPEND}"
# FIXME doesn't like Java 1.6's JDBC API
DEPEND="|| (
=virtual/jdk-1.4*
=virtual/jdk-1.5*
)
${COMMON_DEPEND}"
S="${WORKDIR}/${PN}-${MY_PV}"
src_unpack() {
unpack ${A}
cd ${S}
# this depends on jboss
rm src/org/hibernate/cache/JndiBoundTreeCacheProvider.java \
src/org/hibernate/cache/TreeCache.java \
src/org/hibernate/cache/TreeCacheProvider.java
rm -v *.jar
cd lib
rm -v *.jar
local JAR_PACKAGES="asm-2 c3p0 commons-collections
commons-logging dom4j-1 ehcache jaxen-1.1
log4j oscache proxool swarmcache-1.0 xerces-2 jgroups"
for PACKAGE in ${JAR_PACKAGES}; do
java-pkg_jar-from ${PACKAGE}
done
java-pkg_jar-from cglib-2.1 cglib.jar
java-pkg_jar-from jta
java-pkg_jar-from sun-jacc-api
java-pkg_jar-from antlr
java-pkg_jar-from ant-core ant.jar
}
EANT_EXTRA_ARGS="-Dnosplash -Ddist.dir=dist"
src_install() {
java-pkg_dojar hibernate3.jar
dodoc changelog.txt readme.txt
use doc && java-pkg_dohtml -r dist/doc/api doc/other doc/reference
use source && java-pkg_dosrc src/*
}
|