Bugfix: libbitcoinconsensus depends on univalue/boost only with USE=test
authorLuke Dashjr <luke-jr+git@utopios.org>
Fri, 1 Jul 2016 17:53:05 +0000 (17:53 +0000)
committerAnthony G. Basile <blueness@gentoo.org>
Fri, 1 Jul 2016 23:31:36 +0000 (19:31 -0400)
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
eclass/bitcoincore.eclass

index c040c3435bd731a678ed31d29c5c654f20bece3c..7022117ff33fbb40d44c8af31b3abb22be11163c 100644 (file)
@@ -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(+)]