app-emulation/libcacard: fix test failures
authorTiziano Müller <dev-zero@gentoo.org>
Fri, 23 Nov 2018 07:49:56 +0000 (08:49 +0100)
committerTiziano Müller <dev-zero@gentoo.org>
Fri, 23 Nov 2018 07:51:23 +0000 (08:51 +0100)
by reducing the test suite for now to avoid pulling in SoftHSMv2

Closes: https://bugs.gentoo.org/663704
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Tiziano Müller <dev-zero@gentoo.org>
app-emulation/libcacard/libcacard-2.6.0.ebuild

index 22750df56b3fbdc68dc0727c87299e80a80d1566..39e02adda5a7d095065c13b42f0fa2a2ba539672 100644 (file)
@@ -18,6 +18,15 @@ RDEPEND=">=dev-libs/nss-3.13
 DEPEND="${RDEPEND}
        virtual/pkgconfig"
 
+src_prepare() {
+       default
+
+       # remove test requiring SoftHSMv2 which is not in the tree atm
+       sed -i \
+               -e 's|tests/hwtests$(EXEEXT) \($(am__EXEEXT_1)\)|\1|' \
+               Makefile.in || die
+}
+
 src_configure() {
        econf \
                $(use_enable passthrough pcsc) \