Gentoo Archives: gentoo-commits

From: "William Thomson (wltjr)" <wltjr@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/jdbc-jaybird: ChangeLog jdbc-jaybird-2.1.5.ebuild
Date: Mon, 30 Jun 2008 21:28:06
Message-Id: E1KDQum-0002EK-R7@stork.gentoo.org
1 wltjr 08/06/30 21:28:00
2
3 Modified: ChangeLog
4 Added: jdbc-jaybird-2.1.5.ebuild
5 Log:
6 Bumped to lastest version, added hack to get ant.jar on cp vs patch.
7 (Portage version: 2.2_rc1/cvs/Linux 2.6.24-gentoo-r4 x86_64)
8
9 Revision Changes Path
10 1.25 dev-java/jdbc-jaybird/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jdbc-jaybird/ChangeLog?rev=1.25&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jdbc-jaybird/ChangeLog?rev=1.25&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jdbc-jaybird/ChangeLog?r1=1.24&r2=1.25
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-java/jdbc-jaybird/ChangeLog,v
19 retrieving revision 1.24
20 retrieving revision 1.25
21 diff -u -r1.24 -r1.25
22 --- ChangeLog 13 Feb 2008 20:11:50 -0000 1.24
23 +++ ChangeLog 30 Jun 2008 21:28:00 -0000 1.25
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-java/jdbc-jaybird
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-java/jdbc-jaybird/ChangeLog,v 1.24 2008/02/13 20:11:50 wltjr Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jdbc-jaybird/ChangeLog,v 1.25 2008/06/30 21:28:00 wltjr Exp $
29 +
30 +*jdbc-jaybird-2.1.5 (30 Jun 2008)
31 +
32 + 30 Jun 2008; William L. Thomson Jr. <wltjr@g.o>
33 + +jdbc-jaybird-2.1.5.ebuild:
34 + Bumped to lastest version, added hack to get ant.jar on cp vs patch.
35
36 *jdbc-jaybird-2.1.2 (13 Feb 2008)
37
38
39
40
41 1.1 dev-java/jdbc-jaybird/jdbc-jaybird-2.1.5.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jdbc-jaybird/jdbc-jaybird-2.1.5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jdbc-jaybird/jdbc-jaybird-2.1.5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: jdbc-jaybird-2.1.5.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-java/jdbc-jaybird/jdbc-jaybird-2.1.5.ebuild,v 1.1 2008/06/30 21:28:00 wltjr Exp $
51
52 JAVA_PKG_IUSE="doc source examples test"
53
54 inherit eutils java-pkg-2 java-ant-2
55
56 At="Jaybird-${PV/_/}-src"
57 DESCRIPTION="JDBC Type 2 and 4 drivers for Firebird SQL server"
58 HOMEPAGE="http://jaybirdwiki.firebirdsql.org/"
59 SRC_URI="mirror://sourceforge/firebird/${At}.zip"
60 LICENSE="LGPL-2"
61 SLOT="0"
62 KEYWORDS="~amd64 ~ppc ~x86"
63 IUSE="jni java5 java6"
64
65 RDEPEND="java6? ( =virtual/jre-1.6* )
66 java5? ( =virtual/jre-1.5* )
67 !java6? ( !java5? ( =virtual/jre-1.4* ) )
68 dev-java/ant-core
69 dev-java/log4j"
70 DEPEND="java6? ( =virtual/jdk-1.6* )
71 java5? ( =virtual/jdk-1.5* )
72 !java6? ( !java5? ( =virtual/jdk-1.4* ) )
73 app-arch/unzip
74 dev-java/ant-core
75 dev-java/log4j
76 jni? ( dev-java/cpptasks )
77 test? (
78 =dev-java/junit-3.8*
79 dev-java/ant-junit
80 )"
81
82 S="${WORKDIR}/client-java"
83
84 MY_PN="jaybird"
85
86 src_unpack() {
87 unpack ${A}
88 cd "${S}"
89
90 epatch "${FILESDIR}/archive-xml-2.1.0.patch"
91 epatch "${FILESDIR}/compile_xml-2.1.2.patch"
92
93 cd "${S}/lib/"
94 rm -v *.jar
95 use test && java-pkg_jar-from --build-only junit junit.jar
96
97 cd "${S}/src/lib/"
98 # the build.xml unpacks this and uses stuff
99 mv mini-j2ee.jar "${T}" || die "Failed to move mini-j2ee.jar to ${T}"
100 rm -v *.jar *.zip
101 mv "${T}"/mini-j2ee.jar . || die "Failed to move mini-j2ee.jar back from ${T}"
102
103 # Hack to add ant.jar to classpath without patch
104 java-pkg_jar-from ant-core ant.jar jaas.jar
105 java-pkg_jar-from log4j log4j.jar log4j-core.jar
106 }
107
108 src_compile() {
109 java-pkg_filter-compiler jikes
110 eant $(use test && echo "-Dtests=true") jars \
111 $(use jni && echo "compile-native") \
112 $(use_doc javadocs)
113 }
114
115 src_install() {
116 cd "${S}/output/lib/"
117 java-pkg_newjar ${MY_PN}-${PV}.jar ${PN}.jar
118
119 for jar in full pool; do
120 java-pkg_newjar ${MY_PN}-${jar}-${PV}.jar ${MY_PN}-${jar}.jar || die "java-pkg_newjar ${MY_PN}-${jar}.jar failed"
121 done
122 if use test; then
123 java-pkg_newjar ${MY_PN}-test-${PV}.jar ${MY_PN}-${jar}.jar || die "java-pkg_newjar ${MY_PN}-${jar}.jar failed"
124 fi
125
126 if use jni; then
127 cd "${S}/output/native"
128 sodest="/usr/lib/"
129 java-pkg_doso libjaybird21.so || die \
130 "java-pkg_doso ${sodest}libjaybird21.so failed"
131 fi
132
133 cd "${S}"
134
135 if use examples; then
136 insinto /usr/share/doc/${PF}/
137 doins -r examples || die "installing examples failed"
138 fi
139
140 use source && java-pkg_dosrc "${S}"/src/*/org
141
142 cd "${S}/output"
143 use doc && java-pkg_dohtml -r docs/
144 dodoc etc/{*.txt,default.mf}
145 dohtml etc/*.html
146 }
147
148 src_test() {
149 #
150 # Warning about timeouts without Firebird installed and running Locally
151 #
152 ewarn "You will experience long timeouts when running junit tests"
153 ewarn "without Firebird installed and running locally. The tests will"
154 ewarn "complete without Firebird, but network timeouts prolong the"
155 ewarn "testing phase considerably."
156 ANT_TASKS="ant-junit" eant all-tests-pure-java
157 }
158
159
160
161 --
162 gentoo-commits@l.g.o mailing list