diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2009-05-18 19:43:11 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2009-05-18 19:43:11 +0000 |
commit | 38474c4c91e2dc69799b1c5da773f01b6fe0aee1 (patch) | |
tree | 7ed6349e560fc964325a03e55e802fc0e08ff934 /dev-java | |
parent | Migrate to the jms virtual (diff) | |
download | historical-38474c4c91e2dc69799b1c5da773f01b6fe0aee1.tar.gz historical-38474c4c91e2dc69799b1c5da773f01b6fe0aee1.tar.bz2 historical-38474c4c91e2dc69799b1c5da773f01b6fe0aee1.zip |
Migrate to the jms virtual.
Package-Manager: portage-2.2_rc28/cvs/Linux i686
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/excalibur-logger/ChangeLog | 8 | ||||
-rw-r--r-- | dev-java/excalibur-logger/excalibur-logger-2.1-r2.ebuild | 53 | ||||
-rw-r--r-- | dev-java/openjms/ChangeLog | 8 | ||||
-rw-r--r-- | dev-java/openjms/openjms-0.7.6.1-r6.ebuild | 77 | ||||
-rw-r--r-- | dev-java/oscache/ChangeLog | 10 | ||||
-rw-r--r-- | dev-java/oscache/oscache-2.0.2-r3.ebuild | 71 |
6 files changed, 223 insertions, 4 deletions
diff --git a/dev-java/excalibur-logger/ChangeLog b/dev-java/excalibur-logger/ChangeLog index b4c7db4d3a72..0bb54dbbe4d0 100644 --- a/dev-java/excalibur-logger/ChangeLog +++ b/dev-java/excalibur-logger/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-java/excalibur-logger # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/excalibur-logger/ChangeLog,v 1.5 2009/05/18 19:25:40 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/excalibur-logger/ChangeLog,v 1.6 2009/05/18 19:39:30 betelgeuse Exp $ + +*excalibur-logger-2.1-r2 (18 May 2009) + + 18 May 2009; Petteri Räty <betelgeuse@gentoo.org> + +excalibur-logger-2.1-r2.ebuild: + Migrate to the jms virtual. 18 May 2009; Petteri Räty <betelgeuse@gentoo.org> -excalibur-logger-2.1.ebuild: diff --git a/dev-java/excalibur-logger/excalibur-logger-2.1-r2.ebuild b/dev-java/excalibur-logger/excalibur-logger-2.1-r2.ebuild new file mode 100644 index 000000000000..4826d9ba4196 --- /dev/null +++ b/dev-java/excalibur-logger/excalibur-logger-2.1-r2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/excalibur-logger/excalibur-logger-2.1-r2.ebuild,v 1.1 2009/05/18 19:39:30 betelgeuse Exp $ + +EAPI="2" +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Logger from the Excalibur containerkit" +HOMEPAGE="http://excalibur.apache.org/containerkit.html" +SRC_URI="mirror://apache/${PN//-logger}/${PN}/source/${P}-src.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="" + +# Needs 2.1 of avalon-logkit +# which does not have the jms and javamail use flags +# that are needed for this package to build +CDEP=" + dev-java/avalon-logkit:2.0 + dev-java/avalon-framework:4.2 + dev-java/log4j:0 + dev-java/servletapi:2.4 + java-virtuals/javamail + java-virtuals/jms" + +RDEPEND=">=virtual/jre-1.4 + ${CDEP}" + +DEPEND=">=virtual/jdk-1.4 + ${CDEP}" + +java_prepare() { + mkdir -p target/lib + cd target/lib + java-pkg_jar-from avalon-logkit-2.0 + java-pkg_jar-from avalon-framework-4.2 + java-pkg_jar-from log4j + java-pkg_jar-from servletapi-2.4 + java-pkg_jar-from --virtual javamail + java-pkg_jar-from --virtual jms +} + +src_install() { + java-pkg_newjar target/${P}.jar + dodoc NOTICE.txt || die + use doc && java-pkg_dojavadoc dist/docs/api + use source && java-pkg_dosrc src/java/* +} diff --git a/dev-java/openjms/ChangeLog b/dev-java/openjms/ChangeLog index 7414e7f264ce..827f091fe506 100644 --- a/dev-java/openjms/ChangeLog +++ b/dev-java/openjms/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-java/openjms # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/openjms/ChangeLog,v 1.25 2009/05/18 18:57:11 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/openjms/ChangeLog,v 1.26 2009/05/18 19:43:11 betelgeuse Exp $ + +*openjms-0.7.6.1-r6 (18 May 2009) + + 18 May 2009; Petteri Räty <betelgeuse@gentoo.org> + +openjms-0.7.6.1-r6.ebuild: + Migrate to the jms virtual. 18 May 2009; Petteri Räty <betelgeuse@gentoo.org> -openjms-0.7.6.1-r3.ebuild: diff --git a/dev-java/openjms/openjms-0.7.6.1-r6.ebuild b/dev-java/openjms/openjms-0.7.6.1-r6.ebuild new file mode 100644 index 000000000000..f53f31c9b888 --- /dev/null +++ b/dev-java/openjms/openjms-0.7.6.1-r6.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/openjms/openjms-0.7.6.1-r6.ebuild,v 1.1 2009/05/18 19:43:11 betelgeuse Exp $ + +EAPI="2" +JAVA_PKG_IUSE="doc" +WANT_ANT_TASKS="ant-antlr" + +inherit java-pkg-2 java-ant-2 eutils + +SLOT="0" +LICENSE="GPL-2" +DESCRIPTION="Open Java Messaging System" +HOMEPAGE="http://openjms.sourceforge.net/" +KEYWORDS="~amd64 ~x86" +SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz mirror://gentoo/${P}-scripts.tar.gz" +IUSE="" +RDEPEND="=virtual/jre-1.4* + >=dev-java/antlr-2.7.7:0[java] + dev-java/castor:0.9 + dev-java/commons-dbcp:0 + dev-java/commons-logging:0 + dev-java/concurrent-util:0 + dev-java/exolabcore:0 + java-virtuals/jms + java-virtuals/transaction-api + dev-java/log4j:0 + dev-java/jakarta-oro:2.0 + java-virtuals/servlet-api:2.3" +DEPEND="=virtual/jdk-1.4* + ${RDEPEND} + dev-java/xerces:2" + +java_prepare() { + unpack ${A} + mv "${WORKDIR}/bin" "${S}" + mv "${WORKDIR}/config" "${S}" + + cd "${S}" + epatch "${FILESDIR}/${PV}/buildfile.patch" + epatch "${FILESDIR}/${PV}/source.patch" + + cd "${S}/lib" + rm -v *.jar || die + + java-pkg_jar-from antlr + java-pkg_jar-from castor-0.9 + java-pkg_jar-from commons-dbcp + java-pkg_jar-from commons-logging + java-pkg_jar-from concurrent-util + java-pkg_jar-from exolabcore + java-pkg_jar-from --virtual jms + java-pkg_jar-from --virtual transaction-api + java-pkg_jar-from log4j + java-pkg_jar-from --virtual servlet-api-2.3 + # The build.xml runs java with something that uses xerces + java-pkg_jar-from --with-dependencies --build-only xerces-2 + java-pkg_jar-from jakarta-oro-2.0 +} + +EANT_DOC_TARGET="" +EANT_BUILD_TARGET="jar war" + +src_install() { + java-pkg_newjar lib/${P}.jar ${PN}.jar + java-pkg_newjar lib/${PN}-client-${PV}.jar ${PN}-client.jar + java-pkg_dowar lib/${PN}.war + + dodir /opt/${PN} + cp -rP {bin,config,lib} "${D}"/opt/${PN}/ + #use doc && cp -rP {docs,src} "${D}"/opt/${PN}/ + + fperms 755 /opt/${PN}/bin/* + newenvd "${FILESDIR}"/${PV}/10${P} 10${PN} + newinitd "${FILESDIR}"/${PV}/rc2 openjms + newconfd "${FILESDIR}"/${PV}/conf openjms +} diff --git a/dev-java/oscache/ChangeLog b/dev-java/oscache/ChangeLog index 98429e8f61c0..c62a93009706 100644 --- a/dev-java/oscache/ChangeLog +++ b/dev-java/oscache/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-java/oscache -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/oscache/ChangeLog,v 1.8 2008/03/22 21:21:19 wltjr Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/oscache/ChangeLog,v 1.9 2009/05/18 19:41:19 betelgeuse Exp $ + +*oscache-2.0.2-r3 (18 May 2009) + + 18 May 2009; Petteri Räty <betelgeuse@gentoo.org> + +oscache-2.0.2-r3.ebuild: + Migrate to the jms virtual. *oscache-2.0.2-r2 (22 Mar 2008) diff --git a/dev-java/oscache/oscache-2.0.2-r3.ebuild b/dev-java/oscache/oscache-2.0.2-r3.ebuild new file mode 100644 index 000000000000..bd933c4b961f --- /dev/null +++ b/dev-java/oscache/oscache-2.0.2-r3.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2009 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.1 2009/05/18 19:41:19 betelgeuse 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/2653/${P}-full.zip" +HOMEPAGE="http://www.opensymphony.com/oscache/" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +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 +} |