diff options
author | 2010-08-03 20:01:04 -0400 | |
---|---|---|
committer | 2010-08-03 20:01:04 -0400 | |
commit | 2bc508054189f68359780fae1a8e7d546f85ea12 (patch) | |
tree | 58b8208da6e23d6ee0efbd9201a7c54d5b5a60c3 | |
parent | adicionando jta-1.1 (diff) | |
download | rubenqba-2bc508054189f68359780fae1a8e7d546f85ea12.tar.gz rubenqba-2bc508054189f68359780fae1a8e7d546f85ea12.tar.bz2 rubenqba-2bc508054189f68359780fae1a8e7d546f85ea12.zip |
adicionando javassist-3.9.GA. jta-1.1 ehcache-1.5.0 oscache-2.1 para hibernate-3.5.3
-rw-r--r-- | dev-java/ehcache/Manifest | 3 | ||||
-rw-r--r-- | dev-java/ehcache/ehcache-1.5.0.ebuild | 74 | ||||
-rw-r--r-- | dev-java/ehcache/files/build.xml-1.5.0 | 19 | ||||
-rw-r--r-- | dev-java/javassist/Manifest | 2 | ||||
-rw-r--r-- | dev-java/javassist/javassist-3.9.0.ebuild | 41 | ||||
-rw-r--r-- | dev-java/oscache/Manifest | 2 | ||||
-rw-r--r-- | dev-java/oscache/oscache-2.1.ebuild | 71 |
7 files changed, 212 insertions, 0 deletions
diff --git a/dev-java/ehcache/Manifest b/dev-java/ehcache/Manifest new file mode 100644 index 0000000..521c3ef --- /dev/null +++ b/dev-java/ehcache/Manifest @@ -0,0 +1,3 @@ +AUX build.xml-1.5.0 605 RMD160 93e9c0e022a252728af6a4a4acd25487348f9632 SHA1 8939824111c0cfd0dcb182815d11bf458bcd79ef SHA256 f0e595f3de8ef425c5b69df443d3fa08a29b09dce90632d17ab31f3d6a78cfc5 +DIST ehcache-1.5.0.tgz 1755745 RMD160 039078caac712963051f9bcbaff7647cff5cc359 SHA1 09e6fafd542c6323a2e198d7ddd90dece531e4b3 SHA256 28b6b149e3412fdd695da86d2d8c7a579c268a7a7b84b7b8a0926c3b0bc2020f +EBUILD ehcache-1.5.0.ebuild 1578 RMD160 b3e3bf181953e461d0b8b483db99665d7e907edd SHA1 c325fa9e4e35d4dfe28b79e1676b4ad0d347e6b9 SHA256 e990fdfdd1b69b15f77ff0131e5d47e01a743fa8596c438d3a4abb8ac5d459d1 diff --git a/dev-java/ehcache/ehcache-1.5.0.ebuild b/dev-java/ehcache/ehcache-1.5.0.ebuild new file mode 100644 index 0000000..7c6a3fe --- /dev/null +++ b/dev-java/ehcache/ehcache-1.5.0.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/ehcache/ehcache-1.2.4-r2.ebuild,v 1.6 2010/05/21 17:58:46 ken69267 Exp $ + +JAVA_PKG_IUSE="doc source" + +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-2.0" +SLOT="1.2" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~x86-macos" +IUSE="" + +COMMON_DEPEND=" + dev-java/commons-collections + dev-java/commons-logging + ~dev-java/servletapi-2.4 + dev-java/jgroups" +RDEPEND=">=virtual/jre-1.5 + ${COMMON_DEPEND}" +DEPEND=">=virtual/jdk-1.5 + ${COMMON_DEPEND} + app-arch/unzip + source? ( app-arch/zip ) + >=dev-java/ant-core-1.5" + +JAVA_PKG_WANT_SOURCE="1.4" +JAVA_PKG_WANT_TARGET="1.4" + +src_unpack() { + + unpack ${A} + cd ${S} + + use doc && unzip -qq ${P}-javadoc.zip + + mkdir src && cd src + unzip -qq ../${P}-sources.jar + + # could use a USE flag, but would result in circular dep + rm -rf net/sf/ehcache/hibernate + + cd ${S} + rm -f *.jar *.zip + cp "${FILESDIR}/build.xml-${PVR}" build.xml || die + mv "${S}/ehcache.xml" "${S}/ehcache-failsafe.xml" || die + + mkdir -p ${S}/lib + cd ${S}/lib + + java-pkg_jarfrom commons-logging + java-pkg_jarfrom commons-collections + java-pkg_jarfrom servletapi-2.4 + java-pkg_jarfrom jgroups + +} + +src_compile() { + eant jar +} + +src_install() { + + java-pkg_dojar ${PN}.jar + + dodoc *.txt ehcache.xsd + use source && java-pkg_dosrc src/net + use doc &&java-pkg_dojavadoc docs + +} diff --git a/dev-java/ehcache/files/build.xml-1.5.0 b/dev-java/ehcache/files/build.xml-1.5.0 new file mode 100644 index 0000000..468cd44 --- /dev/null +++ b/dev-java/ehcache/files/build.xml-1.5.0 @@ -0,0 +1,19 @@ +<?xml version="1.0"?> +<project name="ehcache" default="jar" basedir="."> + <path id="globalClassPath"> + <fileset dir="lib/" includes="*.jar"/> + </path> + <target name="compile"> + <mkdir dir="classes"/> + <javac srcdir="src" destdir="classes/" classpathref="globalClassPath"/> + <copy todir="classes/"> + <fileset dir="." includes="ehcache-failsafe.xml"/> + </copy> + </target> + <target name="jar" depends="compile"> + <jar destfile="ehcache.jar"> + <fileset dir="classes" includes="**/*.class"/> + <fileset dir="classes" includes="**/*.xml"/> + </jar> + </target> +</project> diff --git a/dev-java/javassist/Manifest b/dev-java/javassist/Manifest new file mode 100644 index 0000000..6727df1 --- /dev/null +++ b/dev-java/javassist/Manifest @@ -0,0 +1,2 @@ +DIST javassist-3.9.GA.zip 2092464 RMD160 c6235e8c64ec4eb69c9eae4509c0cfd9ba74b25a SHA1 6dfcfdb7852dbe2dda64f451c8a9882143d99dbc SHA256 0481eb164765ed264e958a5a92281511c6298cd3488b94f7428961cab95d0eb6 +EBUILD javassist-3.9.0.ebuild 1053 RMD160 f2f6585113b79801cdade487fdbc9415ff50d6fc SHA1 72bf602329ccbac3f7ba8da156bb45b8f31b623c SHA256 2a68fa5ffcb73f858b08a5849fa7e1ee2be6dd046904c5e8e0663c04a13a2ca5 diff --git a/dev-java/javassist/javassist-3.9.0.ebuild b/dev-java/javassist/javassist-3.9.0.ebuild new file mode 100644 index 0000000..3f7812f --- /dev/null +++ b/dev-java/javassist/javassist-3.9.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/javassist/javassist-3.7.ebuild,v 1.5 2010/01/03 20:49:47 fauli Exp $ + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +# TODO add notes about where the distfile comes from +DESCRIPTION="Javassist makes Java bytecode manipulation simple." +SRC_URI="mirror://sourceforge/jboss/${P/\.0/}.GA.zip" +HOMEPAGE="http://www.csg.is.titech.ac.jp/~chiba/javassist/" + +LICENSE="MPL-1.1" +SLOT="3" +KEYWORDS="amd64 ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~x86-macos" +IUSE="" + +RDEPEND=">=virtual/jre-1.6" +DEPEND=">=virtual/jdk-1.6 + app-arch/unzip" + +src_unpack() { + unpack ${A} + cd "${S}" + rm -v *.jar || die +} + +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_DOC_TARGET="javadocs" + +src_compile() { + java-pkg-2_src_compile -Dgentoo.classpath=$(java-config --tools) +} + +src_install() { + java-pkg_dojar ${PN}.jar + dohtml Readme.html || die + use doc && java-pkg_dojavadoc html + use source && java-pkg_dosrc src/main/javassist +} diff --git a/dev-java/oscache/Manifest b/dev-java/oscache/Manifest new file mode 100644 index 0000000..20fc106 --- /dev/null +++ b/dev-java/oscache/Manifest @@ -0,0 +1,2 @@ +DIST oscache-2.1-full.zip 3238851 RMD160 e80452c2f2f0a014c682059022dd92978a20ed3a SHA1 e2bce3e92a1402523eccecf3740816814cb0f2a6 SHA256 38a10df94601d2251ee9c058fcb6a8b907e6a9a7ded772075e2d33d9e7b6a693 +EBUILD oscache-2.1.ebuild 2189 RMD160 2632c4ec873796a32885c7580097f2dbd34000a9 SHA1 2bdbb95c49c6b95e8590fc1c21d00e6ce96cf180 SHA256 1670c26f0eefcea4d5d292a9b5d6918e0b6204f7ff1459caa1594ba34cbe2bb9 diff --git a/dev-java/oscache/oscache-2.1.ebuild b/dev-java/oscache/oscache-2.1.ebuild new file mode 100644 index 0000000..888687d --- /dev/null +++ b/dev-java/oscache/oscache-2.1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/oscache/oscache-2.0.2-r3.ebuild,v 1.3 2010/01/03 21:26:24 fauli Exp $ + +EAPI="2" +JAVA_PKG_IUSE="doc" + +inherit java-pkg-2 + +DESCRIPTION="OSCache is a widely used, high performance J2EE caching framework." +SRC_URI="https://oscache.dev.java.net/files/documents/629/10654/${P}-full.zip" +HOMEPAGE="http://www.opensymphony.com/oscache/" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~x86-macos" +COMMON_DEP=" + dev-java/commons-collections + dev-java/commons-logging + java-virtuals/servlet-api:2.3 + java-virtuals/jms + dev-java/jgroups" +RDEPEND=">=virtual/jre-1.3 + ${COMMON_DEP}" +DEPEND=">=virtual/jdk-1.3 + ${COMMON_DEP} + app-arch/unzip" +IUSE="" + +S=${WORKDIR} + +java_prepare() { + find . -name "*.jar" -print -delete || die +} + +src_compile() { + local build_dir="${S}"/build + local classpath="-classpath $(java-pkg_getjars commons-logging,commons-collections,servlet-api-2.3,jms,jgroups):${build_dir}:." + mkdir ${build_dir} + + echo "Building core..." + cd "${S}"/src/core/java + ejavac ${classpath} -nowarn -d ${build_dir} $(find . -name "*.java") || die + + echo "Building cluster support plugin..." + cd "${S}"/src/plugins/clustersupport/java + find . -name "*.java" -exec sed -i -e "s/org.javagroups/org.jgroups/g" {} \; + ejavac ${classpath} -nowarn -d ${build_dir} $(find . -name "*.java") || die + + echo "Building disk persistence plugin..." + cd "${S}"/src/plugins/diskpersistence/java + ejavac ${classpath} -nowarn -d ${build_dir} `find . -name "*.java"` || die "compile failed" + + if use doc ; then + echo "Building documentation..." + mkdir "${S}"/javadoc + cd ${build_dir} + local sourcepath="${S}/src/core/java:${S}/src/plugins/diskpersistence/java:${S}/src/plugins/clustersupport/java" + javadoc ${classpath} -sourcepath ${sourcepath} -d "${S}"/javadoc \ + $(find com/opensymphony/oscache -type d | tr '/' '.') \ + || die "failed to create javadoc" + fi + + cd "${S}" + jar cf ${PN}.jar -C build . || die "jar failed" +} + +src_install() { + java-pkg_dojar *.jar + dodoc readme.txt + use doc && java-pkg_dojavadoc javadoc +} |