media-gfx/zbar: Use virtualx to fix running tests
authorMichał Górny <mgorny@gentoo.org>
Sun, 27 Aug 2017 15:21:13 +0000 (17:21 +0200)
committerMichał Górny <mgorny@gentoo.org>
Thu, 7 Sep 2017 20:31:35 +0000 (22:31 +0200)
media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild

index 48f2b35f178c0d7942e204b004f23dd7678a83a2..f5177673bfb8c3a2b635a529e8c32b0372804ec9 100644 (file)
@@ -5,7 +5,7 @@ EAPI=6
 
 PYTHON_COMPAT=( python2_7 )
 
-inherit autotools flag-o-matic java-pkg-opt-2 python-single-r1
+inherit autotools flag-o-matic java-pkg-opt-2 python-single-r1 virtualx
 
 DESCRIPTION="Library and tools for reading barcodes from images or video"
 HOMEPAGE="http://zbar.sourceforge.net/"
@@ -93,6 +93,10 @@ src_configure() {
                $(use_enable v4l video)
 }
 
+src_test() {
+       virtx default
+}
+
 src_install() {
        emake DESTDIR="${D}" install
        dodoc HACKING NEWS README TODO