/[gentoo-x86]/dev-java/openjms/openjms-0.7.6.1-r8.ebuild
Gentoo

Contents of /dev-java/openjms/openjms-0.7.6.1-r8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Dec 10 20:03:32 2009 UTC (4 years, 8 months ago) by maekke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
amd64/x86 stable, bug #296232
(Portage version: 2.2_rc56/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/openjms/openjms-0.7.6.1-r8.ebuild,v 1.1 2009/11/08 21:22:18 caster Exp $
4
5 EAPI="2"
6 JAVA_PKG_IUSE="doc"
7 WANT_ANT_TASKS="ant-antlr"
8 JAVA_PKG_WANT_BOOTCLASSPATH="1.5"
9
10 inherit java-pkg-2 java-ant-2 eutils
11
12 SLOT="0"
13 LICENSE="GPL-2"
14 DESCRIPTION="Open Java Messaging System"
15 HOMEPAGE="http://openjms.sourceforge.net/"
16 KEYWORDS="amd64 x86"
17 SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz mirror://gentoo/${P}-scripts.tar.gz"
18 IUSE=""
19 CDEPEND=">=dev-java/antlr-2.7.7:0[java]
20 dev-java/castor:0.9
21 dev-java/commons-dbcp:0
22 dev-java/commons-logging:0
23 dev-java/concurrent-util:0
24 dev-java/exolabcore:0
25 java-virtuals/jms
26 java-virtuals/transaction-api
27 dev-java/log4j:0
28 dev-java/jakarta-oro:2.0
29 java-virtuals/servlet-api:2.3"
30 DEPEND=">=virtual/jdk-1.5
31 ${CDEPEND}
32 dev-java/xerces:2"
33 RDEPEND=">=virtual/jre-1.5
34 ${CDEPEND}"
35
36 # uses enum as identifier
37 JAVA_PKG_WANT_SOURCE="1.4"
38 JAVA_PKG_WANT_TARGET="1.4"
39
40 java_prepare() {
41 unpack ${A}
42 mv "${WORKDIR}/bin" "${S}"
43 mv "${WORKDIR}/config" "${S}"
44
45 cd "${S}"
46 epatch "${FILESDIR}/${PV}/buildfile.patch"
47 epatch "${FILESDIR}/${PV}/source.patch"
48 java-ant_rewrite-bootclasspath 1.5
49
50 cd "${S}/lib"
51 rm -v *.jar || die
52
53 java-pkg_jar-from antlr
54 java-pkg_jar-from castor-0.9
55 java-pkg_jar-from commons-dbcp
56 java-pkg_jar-from commons-logging
57 java-pkg_jar-from concurrent-util
58 java-pkg_jar-from exolabcore
59 java-pkg_jar-from --virtual jms
60 java-pkg_jar-from --virtual transaction-api
61 java-pkg_jar-from log4j
62 java-pkg_jar-from --virtual servlet-api-2.3
63 # The build.xml runs java with something that uses xerces
64 java-pkg_jar-from --with-dependencies --build-only xerces-2
65 java-pkg_jar-from jakarta-oro-2.0
66 }
67
68 EANT_DOC_TARGET=""
69 EANT_BUILD_TARGET="jar war"
70 EANT_EXTRA_ARGS="-Disjdk1.4=true"
71
72 src_install() {
73 java-pkg_newjar lib/${P}.jar ${PN}.jar
74 java-pkg_newjar lib/${PN}-client-${PV}.jar ${PN}-client.jar
75 java-pkg_dowar lib/${PN}.war
76
77 dodir /opt/${PN}
78 cp -rP {bin,config,lib} "${D}"/opt/${PN}/
79 #use doc && cp -rP {docs,src} "${D}"/opt/${PN}/
80
81 fperms 755 /opt/${PN}/bin/*
82 newenvd "${FILESDIR}"/${PV}/10${P} 10${PN}
83 newinitd "${FILESDIR}"/${PV}/rc2 openjms
84 newconfd "${FILESDIR}"/${PV}/conf openjms
85 }

  ViewVC Help
Powered by ViewVC 1.1.20