Gentoo Archives: gentoo-commits

From: "Alistair Bush (ali_bush)" <ali_bush@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/octopus: ChangeLog octopus-3.0.1-r2.ebuild
Date: Fri, 18 Sep 2009 07:20:24
Message-Id: E1MoXlV-00064K-D4@stork.gentoo.org
1 ali_bush 09/09/18 07:20:21
2
3 Modified: ChangeLog
4 Added: octopus-3.0.1-r2.ebuild
5 Log:
6 Revbump and add patch to allow compulation with 1.5 vms.
7 (Portage version: 2.1.6.13/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.14 dev-db/octopus/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/octopus/ChangeLog?rev=1.14&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/octopus/ChangeLog?rev=1.14&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/octopus/ChangeLog?r1=1.13&r2=1.14
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-db/octopus/ChangeLog,v
19 retrieving revision 1.13
20 retrieving revision 1.14
21 diff -u -r1.13 -r1.14
22 --- ChangeLog 10 Jan 2008 21:59:09 -0000 1.13
23 +++ ChangeLog 18 Sep 2009 07:20:21 -0000 1.14
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-db/octopus
26 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-db/octopus/ChangeLog,v 1.13 2008/01/10 21:59:09 caster Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-db/octopus/ChangeLog,v 1.14 2009/09/18 07:20:21 ali_bush Exp $
30 +
31 +*octopus-3.0.1-r2 (18 Sep 2009)
32 +
33 + 18 Sep 2009; Alistair Bush <ali_bush@g.o>
34 + +files/octopus-jdk-1.5.patch, +octopus-3.0.1-r2.ebuild:
35 + Revbump and add patch to allow compulation with 1.5 vms.
36
37 10 Jan 2008; Vlastimil Babka <caster@g.o> octopus-3.0.1-r1.ebuild:
38 Restrict junit dependency.
39
40
41
42 1.1 dev-db/octopus/octopus-3.0.1-r2.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/octopus/octopus-3.0.1-r2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/octopus/octopus-3.0.1-r2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: octopus-3.0.1-r2.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-db/octopus/octopus-3.0.1-r2.ebuild,v 1.1 2009/09/18 07:20:21 ali_bush Exp $
52
53 EAPI="2"
54 JAVA_PKG_IUSE="doc source"
55
56 inherit versionator java-pkg-2 java-ant-2
57
58 MY_PV=${PV//./-}
59 MY_PV=${MY_PV/-/.}
60 DESCRIPTION="A Java-based Extraction, Transformation, and Loading (ETL) tool."
61 SRC_URI="http://download.forge.objectweb.org/${PN}/${PN}-${MY_PV}.src.tar.gz
62 mirror://gentoo/${PN}-xmls-${PV}.tar.bz2"
63 HOMEPAGE="http://octopus.objectweb.org"
64 LICENSE="LGPL-2.1"
65 SLOT="3.0"
66 KEYWORDS="~amd64 ~x86"
67 IUSE=""
68 COMMON_DEP="
69 >=dev-java/xerces-2.7
70 >=dev-java/log4j-1.2.8
71 =dev-java/rhino-1.6*
72 =dev-java/junit-3.8*
73 >=dev-java/ant-core-1.4"
74
75 # Does not like org.w3c.dom.Node
76 # from 1.5+
77 RDEPEND=">=virtual/jre-1.4
78 ${COMMON_DEP}"
79
80 DEPEND="|| ( =virtual/jdk-1.5* =virtual/jdk-1.4* )
81 ${COMMON_DEP}"
82
83 TOPDIR="${PN}-$(get_version_component_range 1-2)"
84 S=${WORKDIR}/${TOPDIR}/Octopus-src
85
86 java_prepare() {
87 rm -fr ${TOPDIR}/maven
88
89 mv "${WORKDIR}/xmls" "${S}/modules/Octopus"
90
91 cd "${S}"/modules
92 cp "${FILESDIR}/${P}-gentoo-build.xml" build.xml
93 java-ant_rewrite-classpath build.xml
94 java-pkg_filter-compiler jikes
95
96 java-pkg_is-vm-version-eq 1.5 && \
97 epatch "${FILESDIR}/${PN}-jdk-1.5.patch"
98 }
99
100 EANT_GENTOO_CLASSPATH="xerces-2,rhino-1.6,ant-core,junit,log4j"
101
102 src_compile() {
103 cd "${S}/modules"
104
105 use source && antflags="${antflags} sourcezip-all"
106
107 eant jar-all $(use_doc docs-all) ${antflags}
108 }
109
110 RESTRICT="test"
111
112 # Would need maven to work properly as the build.xml just launches maven
113 #src_test() {
114 # eant test
115 #}
116
117 src_install() {
118 dodoc ChangeLog.txt ReleaseNotes.txt
119
120 cd "${S}/modules"
121 java-pkg_dojar dist/*.jar
122
123 if use source; then
124 dodir /usr/share/doc/${PF}/source
125 cp dist/*-src.zip "${D}usr/share/doc/${PF}/source"
126 fi
127 if use doc; then
128 docinto html/api
129 # Has multiple javadoc subdirs here
130 java-pkg_dohtml -r docs/*
131 fi
132 }