diff options
author | 2006-09-08 04:02:51 +0000 | |
---|---|---|
committer | 2006-09-08 04:02:51 +0000 | |
commit | 917c08ca2958f4dd96997533c25c131eb6a664b2 (patch) | |
tree | d4d65afc7fc7eb9be7da6b26cebe8374021f9053 /dev-java/ehcache/ehcache-1.1-r1.ebuild | |
parent | Fix for java-strict. Was missing implicitly dependend on jar from ant-core. (diff) | |
download | historical-917c08ca2958f4dd96997533c25c131eb6a664b2.tar.gz historical-917c08ca2958f4dd96997533c25c131eb6a664b2.tar.bz2 historical-917c08ca2958f4dd96997533c25c131eb6a664b2.zip |
Revision bump to support the new Java system. Removed junit flag since it wasn\'t actually doing anything.
Package-Manager: portage-2.1.1_rc1-r2
Diffstat (limited to 'dev-java/ehcache/ehcache-1.1-r1.ebuild')
-rw-r--r-- | dev-java/ehcache/ehcache-1.1-r1.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-java/ehcache/ehcache-1.1-r1.ebuild b/dev-java/ehcache/ehcache-1.1-r1.ebuild new file mode 100644 index 000000000000..6676af4f6f50 --- /dev/null +++ b/dev-java/ehcache/ehcache-1.1-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/ehcache/ehcache-1.1-r1.ebuild,v 1.1 2006/09/08 04:02:51 nichoj Exp $ + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Ehcache is a pure Java, fully-featured, in-process cache." +SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" +HOMEPAGE="http://ehcache.sourceforge.net" + +LICENSE="Apache-1.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +COMMON_DEPEND=" + dev-java/commons-collections + dev-java/concurrent-util + dev-java/commons-logging" +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEPEND}" +DEPEND=">=virtual/jdk-1.4 + ${COMMON_DEPEND} + >=dev-java/ant-core-1.5" + +src_unpack() { + unpack ${A} + cd ${S} + unzip ${P}-src.zip || die + rm *.jar + rm -rf src/net/sf/ehcache/hibernate +} + +src_compile() { + mkdir ${S}/classes + cd ${S}/src + + ejavac -d ${S}/classes \ + -classpath $(java-pkg_getjars commons-logging,commons-collections) \ + $(find . -name "*.java") + + cd ${S}/classes + jar cf ${S}/${P}.jar * || die +} + +src_install() { + cd ${S} + java-pkg_newjar ${S}/${P}.jar ${PN}.jar + dodoc *.txt ehcache.xml ehcache.xsd + if use doc ; then + unzip ${P}-javadoc.zip || die + java-pkg_dohtml -r docs + fi +} |