summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Thomson <wltjr@gentoo.org>2006-10-18 20:17:50 +0000
committerWilliam Thomson <wltjr@gentoo.org>2006-10-18 20:17:50 +0000
commit2ac39085e7e4a0309b56879485bb5b1334fe9a71 (patch)
tree1a71d1887be6e11567e3636b91c88f7fb6406191 /dev-java
parentremove old net-misc/yate (diff)
downloadgentoo-2-2ac39085e7e4a0309b56879485bb5b1334fe9a71.tar.gz
gentoo-2-2ac39085e7e4a0309b56879485bb5b1334fe9a71.tar.bz2
gentoo-2-2ac39085e7e4a0309b56879485bb5b1334fe9a71.zip
Added JAVA_PKG_STRICT to both ebuilds. Addressed junit classes missing when using test USE flag. 2.1.0 can't build native/jni code. Likely have to file bug w/ upstream
(Portage version: 2.1.2_pre3-r2)
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/jdbc-jaybird/ChangeLog8
-rw-r--r--dev-java/jdbc-jaybird/jdbc-jaybird-2.0.1.ebuild20
-rw-r--r--dev-java/jdbc-jaybird/jdbc-jaybird-2.1.0.ebuild20
3 files changed, 33 insertions, 15 deletions
diff --git a/dev-java/jdbc-jaybird/ChangeLog b/dev-java/jdbc-jaybird/ChangeLog
index cdc5943b0de0..6a907da4972b 100644
--- a/dev-java/jdbc-jaybird/ChangeLog
+++ b/dev-java/jdbc-jaybird/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/jdbc-jaybird
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jdbc-jaybird/ChangeLog,v 1.3 2006/10/18 13:59:40 wltjr Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jdbc-jaybird/ChangeLog,v 1.4 2006/10/18 20:17:50 wltjr Exp $
+
+ 18 Oct 2006; William L. Thomson Jr. <wltjr@gentoo.org>
+ jdbc-jaybird-2.0.1.ebuild, jdbc-jaybird-2.1.0.ebuild:
+ Added JAVA_PKG_STRICT to both ebuilds. Addressed junit classes missing when
+ using test USE flag. 2.1.0 can't build native/jni code. Likely have to file
+ bug w/ upstream
18 Oct 2006; William L. Thomson Jr. <wltjr@gentoo.org>
jdbc-jaybird-2.0.1.ebuild, jdbc-jaybird-2.1.0.ebuild:
diff --git a/dev-java/jdbc-jaybird/jdbc-jaybird-2.0.1.ebuild b/dev-java/jdbc-jaybird/jdbc-jaybird-2.0.1.ebuild
index 3cbcbfb13271..a29b0302fc1c 100644
--- a/dev-java/jdbc-jaybird/jdbc-jaybird-2.0.1.ebuild
+++ b/dev-java/jdbc-jaybird/jdbc-jaybird-2.0.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jdbc-jaybird/jdbc-jaybird-2.0.1.ebuild,v 1.3 2006/10/18 13:59:40 wltjr Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jdbc-jaybird/jdbc-jaybird-2.0.1.ebuild,v 1.4 2006/10/18 20:17:50 wltjr Exp $
inherit java-pkg-2
@@ -13,9 +13,9 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples source test"
-RDEPEND=">=virtual/jre-1.4
+RDEPEND="|| ( =virtual/jre-1.4* =virtual/jre-1.5* )
dev-java/log4j"
-DEPEND=">=virtual/jdk-1.4
+DEPEND="|| ( =virtual/jdk-1.4* =virtual/jdk-1.5* )
app-arch/unzip
dev-java/ant-core
dev-java/cpptasks
@@ -29,7 +29,11 @@ MY_PN="jaybird"
src_unpack() {
unpack "${A}"
- rm "${S}"/lib/*.jar
+
+ cd "${S}"/lib/
+ rm *.jar
+ use test && java-pkg_jar-from junit junit.jar
+
cd "${S}/src/lib/"
# the build.xml unpacks this and uses stuff
mv mini-j2ee.jar ${T} || die "Failed to move mini-j2ee.jar to ${T}"
@@ -42,16 +46,20 @@ src_unpack() {
src_compile() {
local antflags="jars compile-native"
use doc && antflags="${antflags} javadocs"
- ant ${antflags} || die "Building failed."
+ use test && antflags="${antflags} -Dtests=true"
+ JAVA_PKG_STRICT=true eant ${antflags}
}
src_install() {
cd "${S}"/output/lib/
java-pkg_newjar ${MY_PN}-${PV}.jar ${PN}.jar
- for jar in full pool test; do
+ for jar in full pool; do
java-pkg_newjar ${MY_PN}-${jar}-${PV}.jar ${MY_PN}-${jar}.jar || die "java-pkg_newjar ${MY_PN}-${jar}.jar failed"
done
+ if use test; then
+ java-pkg_newjar ${MY_PN}-test-${PV}.jar ${MY_PN}-${jar}.jar || die "java-pkg_newjar ${MY_PN}-${jar}.jar failed"
+ fi
cd "${S}"/output/native
sodest="/usr/lib/"
diff --git a/dev-java/jdbc-jaybird/jdbc-jaybird-2.1.0.ebuild b/dev-java/jdbc-jaybird/jdbc-jaybird-2.1.0.ebuild
index bca200ed5c70..c41968387585 100644
--- a/dev-java/jdbc-jaybird/jdbc-jaybird-2.1.0.ebuild
+++ b/dev-java/jdbc-jaybird/jdbc-jaybird-2.1.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jdbc-jaybird/jdbc-jaybird-2.1.0.ebuild,v 1.3 2006/10/18 13:59:40 wltjr Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jdbc-jaybird/jdbc-jaybird-2.1.0.ebuild,v 1.4 2006/10/18 20:17:50 wltjr Exp $
inherit eutils java-pkg-2
@@ -13,9 +13,9 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples source test"
-RDEPEND=">=virtual/jre-1.4
+RDEPEND="|| ( =virtual/jre-1.4* =virtual/jre-1.5* )
dev-java/log4j"
-DEPEND=">=virtual/jdk-1.4
+DEPEND="|| ( =virtual/jdk-1.4* =virtual/jdk-1.5* )
app-arch/unzip
dev-java/ant-core
dev-java/cpptasks
@@ -33,7 +33,11 @@ src_unpack() {
echo "${S}"
epatch "${FILESDIR}/archive-xml-${PV}.patch"
epatch "${FILESDIR}/compile-xml-${PV}.patch"
- rm "${S}"/lib/*.jar
+
+ cd "${S}"/lib/
+ rm *.jar
+ use test && java-pkg_jar-from junit junit.jar
+
cd "${S}/src/lib/"
# the build.xml unpacks this and uses stuff
mv mini-j2ee.jar ${T} || die "Failed to move mini-j2ee.jar to ${T}"
@@ -48,18 +52,18 @@ src_compile() {
use doc && antflags="${antflags} javadocs"
use examples && antflags="${antflags} -Dexamples=true"
use test && antflags="${antflags} -Dtests=true"
- ant ${antflags} || die "Building failed."
+ JAVA_PKG_STRICT=true eant ${antflags}
}
src_install() {
cd "${S}"/output/lib/
- java-pkg_newjar ${MY_PN}-${PV/_beta1}.jar ${PN}.jar || die "java-pkg_newjar ${MY_PN}.jar failed"
+ java-pkg_newjar ${MY_PN}-${PV}.jar ${PN}.jar || die "java-pkg_newjar ${MY_PN}.jar failed"
for jar in full pool; do
- java-pkg_newjar ${MY_PN}-${jar}-${PV/_beta1}.jar ${MY_PN}-${jar}.jar || die "java-pkg_newjar ${MY_PN}-${jar}.jar failed"
+ java-pkg_newjar ${MY_PN}-${jar}-${PV}.jar ${MY_PN}-${jar}.jar || die "java-pkg_newjar ${MY_PN}-${jar}.jar failed"
done
if use test; then
- java-pkg_newjar ${MY_PN}-test-${PV/_beta1}.jar ${MY_PN}-${jar}.jar || die "java-pkg_newjar ${MY_PN}-${jar}.jar failed"
+ java-pkg_newjar ${MY_PN}-test-${PV}.jar ${MY_PN}-${jar}.jar || die "java-pkg_newjar ${MY_PN}-${jar}.jar failed"
fi
cd "${S}"/output/native