diff options
-rw-r--r-- | dev-java/openjms/ChangeLog | 8 | ||||
-rw-r--r-- | dev-java/openjms/openjms-0.7.6.1-r5.ebuild | 77 |
2 files changed, 84 insertions, 1 deletions
diff --git a/dev-java/openjms/ChangeLog b/dev-java/openjms/ChangeLog index 1e371778d56c..77d30dac7d8a 100644 --- a/dev-java/openjms/ChangeLog +++ b/dev-java/openjms/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-java/openjms # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/openjms/ChangeLog,v 1.19 2008/03/22 21:14:57 wltjr Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/openjms/ChangeLog,v 1.20 2008/08/03 22:31:27 betelgeuse Exp $ + +*openjms-0.7.6.1-r5 (03 Aug 2008) + + 03 Aug 2008; Petteri Räty <betelgeuse@gentoo.org> + +openjms-0.7.6.1-r5.ebuild: + Remove unneeded dependencies and use transaction-api virtual. *openjms-0.7.6.1-r4 (22 Mar 2008) diff --git a/dev-java/openjms/openjms-0.7.6.1-r5.ebuild b/dev-java/openjms/openjms-0.7.6.1-r5.ebuild new file mode 100644 index 000000000000..ad4e73dcf2e9 --- /dev/null +++ b/dev-java/openjms/openjms-0.7.6.1-r5.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2008 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-r5.ebuild,v 1.1 2008/08/03 22:31:27 betelgeuse Exp $ + +EAPI=1 +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 + dev-java/castor:0.9 + dev-java/commons-dbcp + dev-java/commons-logging + dev-java/concurrent-util + dev-java/exolabcore + dev-java/sun-jms + java-virtuals/transaction-api + dev-java/log4j + dev-java/jakarta-oro:2.0 + java-virtuals/servlet-api:2.3" +DEPEND="=virtual/jdk-1.4* + ${RDEPEND} + dev-java/xerces:2" + +src_unpack() { + 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 sun-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 +} |