summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2007-01-11 00:24:32 +0000
committerVlastimil Babka <caster@gentoo.org>2007-01-11 00:24:32 +0000
commit67273ec98187f98785d4dbe4c09a6b7a84c7c9d0 (patch)
treebd844937230916c478ddc0059967b8d4cefb44c0 /dev-java/hibernate/hibernate-3.1.3.ebuild
parentNew package, dependency for dev-java/hibernate. Previously developed in java ... (diff)
downloadhistorical-67273ec98187f98785d4dbe4c09a6b7a84c7c9d0.tar.gz
historical-67273ec98187f98785d4dbe4c09a6b7a84c7c9d0.tar.bz2
historical-67273ec98187f98785d4dbe4c09a6b7a84c7c9d0.zip
Version bump, based on ebuild from java overlay developed there by nichoj. Drops jboss USE flag - modular jboss4 is still only in the overlay, so use the overlay if you need it. Closes bug #115369 by Mike Slinn <mslinn@mslinn.com>
Package-Manager: portage-2.1.2_rc4-r7
Diffstat (limited to 'dev-java/hibernate/hibernate-3.1.3.ebuild')
-rw-r--r--dev-java/hibernate/hibernate-3.1.3.ebuild84
1 files changed, 84 insertions, 0 deletions
diff --git a/dev-java/hibernate/hibernate-3.1.3.ebuild b/dev-java/hibernate/hibernate-3.1.3.ebuild
new file mode 100644
index 000000000000..aa1fd4800c00
--- /dev/null
+++ b/dev-java/hibernate/hibernate-3.1.3.ebuild
@@ -0,0 +1,84 @@
+# 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.1 2007/01/11 00:24:31 caster Exp $
+
+inherit java-pkg-2 java-ant-2 eutils
+
+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="doc source"
+SLOT="3.1"
+KEYWORDS="~x86 ~amd64"
+
+COMMON_DEPEND="
+ dev-java/antlr
+ =dev-java/asm-2*
+ 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/jdbc2-stdext
+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*
+ )
+ dev-java/ant
+ ${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
+
+ cd lib
+ rm *.jar
+
+ local JAR_PACKAGES="asm-2 c3p0 commons-collections
+ commons-logging dom4j-1 ehcache jaxen-1.1 jdbc2-stdext
+ 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 ant-tasks ant-antlr.jar
+ java-pkg_jar-from antlr
+ java-pkg_jar-from ant-core ant.jar
+
+}
+src_compile() {
+ eant jar -Ddist.dir=dist $(use_doc)
+}
+
+src_install() {
+ java-pkg_dojar dist/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/*
+}