summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/zbar')
-rw-r--r--media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild b/media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild
index b31650273b5d..186a80e32ccd 100644
--- a/media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild
+++ b/media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild
@@ -36,7 +36,9 @@ CDEPEND="gtk? ( dev-libs/glib:2[${MULTILIB_USEDEP}]
RDEPEND="${CDEPEND}
java? ( >=virtual/jre-1.4 )"
DEPEND="${CDEPEND}
- java? ( >=virtual/jdk-1.4 )
+ java? ( >=virtual/jdk-1.4
+ test? ( dev-java/junit:4
+ dev-java/hamcrest-core:1.3 ) )
test? ( ${PYTHON_DEPS} )
app-arch/unzip
sys-devel/gettext
@@ -83,6 +85,11 @@ multilib_src_configure() {
if multilib_is_native_abi && use java; then
export JAVACFLAGS="$(java-pkg_javac-args)"
export JAVA_CFLAGS="$(java-pkg_get-jni-cflags)"
+ if use test ; then # bug 629078
+ java-pkg_append_ CLASSPATH .
+ java-pkg_append_ CLASSPATH $(java-pkg_getjar --build-only junit-4 junit.jar)
+ java-pkg_append_ CLASSPATH $(java-pkg_getjar --build-only hamcrest-core-1.3 hamcrest-core.jar)
+ fi
fi
append-cppflags -DNDEBUG