summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Matthijs <axxo@gentoo.org>2005-10-15 13:19:36 +0000
committerThomas Matthijs <axxo@gentoo.org>2005-10-15 13:19:36 +0000
commit3f6ff9ad9eddff778d469d20e93c78e4d2ae0641 (patch)
treed16b512bbc800d12a5d657b47bb67c4fc3a3f0aa /dev-java/openjms/openjms-0.7.6.1-r1.ebuild
parentRemoved no longer necessary patch. (diff)
downloadgentoo-2-3f6ff9ad9eddff778d469d20e93c78e4d2ae0641.tar.gz
gentoo-2-3f6ff9ad9eddff778d469d20e93c78e4d2ae0641.tar.bz2
gentoo-2-3f6ff9ad9eddff778d469d20e93c78e4d2ae0641.zip
move dev-java/jms dev-java/sun-jms
(Portage version: 2.0.53_rc5)
Diffstat (limited to 'dev-java/openjms/openjms-0.7.6.1-r1.ebuild')
-rw-r--r--dev-java/openjms/openjms-0.7.6.1-r1.ebuild89
1 files changed, 89 insertions, 0 deletions
diff --git a/dev-java/openjms/openjms-0.7.6.1-r1.ebuild b/dev-java/openjms/openjms-0.7.6.1-r1.ebuild
new file mode 100644
index 000000000000..e8baad94c1eb
--- /dev/null
+++ b/dev-java/openjms/openjms-0.7.6.1-r1.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2005 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-r1.ebuild,v 1.1 2005/10/15 13:19:36 axxo Exp $
+
+inherit java-pkg eutils
+
+SLOT="0"
+LICENSE="GPL-2"
+DESCRIPTION="Open Java Messaging System"
+HOMEPAGE="http://openjms.sourceforge.net/"
+KEYWORDS="~amd64 sparc x86"
+SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz mirror://gentoo/${P}-scripts.tar.gz"
+IUSE="doc jikes"
+RDEPEND=">=virtual/jre-1.4
+ dev-java/antlr
+ =dev-java/castor-0.9*
+ dev-java/cdegroot-db
+ dev-java/commons-collections
+ dev-java/commons-dbcp
+ dev-java/commons-logging
+ dev-java/commons-pool
+ dev-java/concurrent-util
+ dev-java/exolabcore
+ dev-db/hsqldb
+ dev-java/jdbm
+ dev-java/sun-jms
+ dev-java/jta
+ dev-java/log4j
+ =dev-java/jakarta-oro-2.0*
+ ~dev-java/servletapi-2.3
+ =dev-java/xerces-2.3*"
+DEPEND=">=virtual/jdk-1.4
+ ${RDEPEND}
+ dev-java/ant"
+
+src_unpack() {
+ unpack ${A}
+ mv ${WORKDIR}/bin ${S}
+ mv ${WORKDIR}/config ${S}
+
+ cd ${S}
+ epatch ${FILESDIR}/${PV}/buildfile.patch.bz2
+ epatch ${FILESDIR}/${PV}/source.patch.bz2
+
+ cd ${S}/lib
+ rm -f *.jar
+
+ java-pkg_jar-from antlr
+ java-pkg_jar-from castor-0.9
+ java-pkg_jar-from cdegroot-db-1
+ java-pkg_jar-from commons-collections
+ java-pkg_jar-from commons-dbcp
+ java-pkg_jar-from commons-logging
+ java-pkg_jar-from commons-pool
+ java-pkg_jar-from concurrent-util
+ java-pkg_jar-from exolabcore
+ java-pkg_jar-from hsqldb
+ java-pkg_jar-from jdbm-1
+ java-pkg_jar-from sun-jms
+ java-pkg_jar-from jta
+ java-pkg_jar-from log4j
+ java-pkg_jar-from servletapi-2.3
+ java-pkg_jar-from xerces-2.3
+}
+
+src_compile() {
+ local antflags="jar war"
+ use doc && antflags="${antflags}"
+ use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
+ ant ${antflags} || die "ant failed"
+}
+
+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/*
+ insinto /etc/env.d/
+ newins ${FILESDIR}/${PV}/10${P} 10${PN}
+ exeinto /etc/init.d/
+ newexe ${FILESDIR}/${PV}/rc2 openjms
+ insinto /etc/conf.d
+ newins ${FILESDIR}/${PV}/conf openjms
+}