From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E7EF9139083 for ; Mon, 18 Dec 2017 10:37:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E9548E0F64; Mon, 18 Dec 2017 10:37:41 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C2D9EE0F64 for ; Mon, 18 Dec 2017 10:37:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 198C033BEF1 for ; Mon, 18 Dec 2017 10:37:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D0C76AE74 for ; Mon, 18 Dec 2017 10:37:36 +0000 (UTC) From: "Michael Weber" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Weber" Message-ID: <1513593448.ceed09475c17126515be605f700f9bb3c540bd1f.xmw@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/zbar/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild X-VCS-Directories: media-gfx/zbar/ X-VCS-Committer: xmw X-VCS-Committer-Name: Michael Weber X-VCS-Revision: ceed09475c17126515be605f700f9bb3c540bd1f X-VCS-Branch: master Date: Mon, 18 Dec 2017 10:37:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f3c5cdd0-509e-43a0-9cd2-9dae3f807f37 X-Archives-Hash: 6fbca35926e1d203d595adff88e8203d commit: ceed09475c17126515be605f700f9bb3c540bd1f Author: Michael Weber gentoo org> AuthorDate: Mon Dec 18 10:37:16 2017 +0000 Commit: Michael Weber gentoo org> CommitDate: Mon Dec 18 10:37:28 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ceed0947 media-gfx/zbar: Fix USE=java tests. Closes: https://bugs.gentoo.org/629078 Package-Manager: Portage-2.3.19, Repoman-2.3.6 media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild b/media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild index b31650273b5..186a80e32cc 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