# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-java/hibernate/hibernate-2.1.4.ebuild,v 1.6 2004/07/09 03:23:31 st_lim Exp $ inherit java-pkg DESCRIPTION="Hibernate is a powerful, ultra-high performance object / relational persistence and query service for Java." SRC_URI="mirror://sourceforge/hibernate/${PN}-${PV}.tar.gz" HOMEPAGE="http://hibernate.bluemars.net" LICENSE="LGPL-2" SLOT="0" KEYWORDS="x86 ppc" DEPEND=">=virtual/jdk-1.3 >=dev-java/ant-1.5 >=dev-java/log4j-1.2.7 >=commons-collections-2.1 >=commons-dbcp-1.1 >=commons-lang-1.0.1 >=commons-logging-1.0.3 >=commons-pool-1.1 >=junit-3.8.1 >=log4j-1.2.8 >=xalan-2.4.0 >=xerces-2.4.0 dev-java/dom4j dev-java/commons-logging" IUSE="doc" S=${WORKDIR}/${PN}-${PV:0:3} # # The following is a list of the jars that have been done so far # # - commons-collections-2.1.jar # - commons-dbcp-1.1.jar # - commons-lang-1.0.1.jar # - commons-logging-1.0.3.jar # - commons-pool-1.1.jar # - junit-3.8.1.jar # - log4j-1.2.8.jar # - xalan-2.4.0.jar # - xerces-2.4.0.jar # - xml-apis.jar src_unpack(){ unpack ${PN}-${PV}.tar.gz # use the junit that is already installed. cd ${S}/lib; java-pkg_jar-from junit junit.jar junit-3.8.1.jar # use the commons-collections that is already installed # Not happy with the version difference in this one.... # cd ${S}/lib; java-pkg_jar-from commons-collections commons-collections-2.0.jar commons-collections-2.1.jar # use the commons-dbcp that is already installed cd ${S}/lib; java-pkg_jar-from commons-dbcp commons-dbcp.jar commons-dbcp-1.1.jar # use the commons-lang that is already installed cd ${S}/lib; java-pkg_jar-from commons-lang commons-lang.jar commons-lang-1.0.1.jar # use the commons-logging that is already installed cd ${S}/lib; java-pkg_jar-from commons-logging commons-logging.jar commons-logging-1.0.3.jar # use the commons-pool that is already installed cd ${S}/lib; java-pkg_jar-from commons-pool commons-pool.jar commons-pool-1.1.jar # use the log4j that is already installed cd ${S}/lib; java-pkg_jar-from log4j log4j.jar log4j-1.2.8.jar # use the xalan that is already installed cd ${S}/lib; java-pkg_jar-from xalan xalan.jar xalan-2.4.0.jar # use the xerces that is already installed cd ${S}/lib; java-pkg_jar-from xerces-2 xercesImpl.jar xerces-2.4.0.jar # use the xml-api that is already installed cd ${S}/lib; java-pkg_jar-from xerces-2 xml-apis.jar xml-apis.jar ls -l ${S}/lib } src_compile() { sed -e '/