summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Bush <ali_bush@gentoo.org>2009-09-18 05:13:43 +0000
committerAlistair Bush <ali_bush@gentoo.org>2009-09-18 05:13:43 +0000
commit5c30f03ad847745d92ef77ccedd1c09cce11b0bd (patch)
tree3d2a8aa53c8bb1d32c4f6a98abf605976f8ca0f8 /dev-java
parentStable for HPPA (bug #276854). (diff)
downloadgentoo-2-5c30f03ad847745d92ef77ccedd1c09cce11b0bd.tar.gz
gentoo-2-5c30f03ad847745d92ef77ccedd1c09cce11b0bd.tar.bz2
gentoo-2-5c30f03ad847745d92ef77ccedd1c09cce11b0bd.zip
Bump openjms to allow files to be build with 1.5 or 1.4 vms.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/openjms/ChangeLog8
-rw-r--r--dev-java/openjms/openjms-0.7.6.1-r7.ebuild80
2 files changed, 87 insertions, 1 deletions
diff --git a/dev-java/openjms/ChangeLog b/dev-java/openjms/ChangeLog
index f8e89e7f1658..4744c41ad3b1 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.27 2009/06/19 09:57:11 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/openjms/ChangeLog,v 1.28 2009/09/18 05:13:43 ali_bush Exp $
+
+*openjms-0.7.6.1-r7 (18 Sep 2009)
+
+ 18 Sep 2009; Alistair Bush <ali_bush@gentoo.org>
+ +openjms-0.7.6.1-r7.ebuild:
+ Bump openjms to allow files to be build with 1.5 or 1.4 vms.
19 Jun 2009; Christian Faulhammer <fauli@gentoo.org>
openjms-0.7.6.1-r6.ebuild:
diff --git a/dev-java/openjms/openjms-0.7.6.1-r7.ebuild b/dev-java/openjms/openjms-0.7.6.1-r7.ebuild
new file mode 100644
index 000000000000..ac88d125b1c8
--- /dev/null
+++ b/dev-java/openjms/openjms-0.7.6.1-r7.ebuild
@@ -0,0 +1,80 @@
+# 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-r7.ebuild,v 1.1 2009/09/18 05:13:43 ali_bush 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=""
+CDEPEND="=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.5* =virtual/jdk-1.4* )
+ ${CDEPEND}
+ dev-java/xerces:2"
+RDEPEND=">=virtual/jdk-1.4
+ ${CDEPEND}"
+
+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"
+EANT_EXTRA_ARGS="-Disjdk1.4=true"
+
+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
+}