commit: ce92b12a18de101035723bf6b7714e29b2a60247
Author: Luke Dashjr <luke-jr+git <AT> utopios <DOT> org>
AuthorDate: Fri Jul 1 17:53:05 2016 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Fri Jul 1 23:31:36 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce92b12a
Bugfix: libbitcoinconsensus depends on univalue/boost only with USE=test
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
eclass/bitcoincore.eclass | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/eclass/bitcoincore.eclass b/eclass/bitcoincore.eclass
index c040c34..7022117 100644
--- a/eclass/bitcoincore.eclass
+++ b/eclass/bitcoincore.eclass
@@ -198,7 +198,14 @@ fi
if [ "${BITCOINCORE_NEED_LIBSECP256K1}" = "1" ]; then
BITCOINCORE_COMMON_DEPEND="${BITCOINCORE_COMMON_DEPEND}
$LIBSECP256K1_DEPEND"
fi
-if [ "${PN}" != "libbitcoinconsensus" ]; then
+if [ "${PN}" = "libbitcoinconsensus" ]; then
+ BITCOINCORE_COMMON_DEPEND="${BITCOINCORE_COMMON_DEPEND}
+ test? (
+ ${UNIVALUE_DEPEND}
+ >=dev-libs/boost-1.52.0[threads(+)]
+ )
+ "
+else
BITCOINCORE_COMMON_DEPEND="${BITCOINCORE_COMMON_DEPEND}
${UNIVALUE_DEPEND}
>=dev-libs/boost-1.52.0[threads(+)]