app-i18n/ibus: fix src_test
authorAkinori Hattori <hattya@gentoo.org>
Tue, 1 Aug 2017 14:00:06 +0000 (23:00 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Tue, 1 Aug 2017 14:23:14 +0000 (23:23 +0900)
Package-Manager: Portage-2.3.6, Repoman-2.3.1

app-i18n/ibus/ibus-1.5.12.ebuild
app-i18n/ibus/ibus-1.5.15.ebuild

index da93deeb071b14a516dad6a8babc9d0945283d9d..c6fc372454180a98dcf7367607d426ba46ed1aa3 100644 (file)
@@ -15,13 +15,13 @@ LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS="alpha amd64 arm ~arm64 ia64 ppc ppc64 sparc x86 ~x86-fbsd"
 IUSE="deprecated gconf gtk +gtk3 +introspection nls +python test vala wayland +X"
-RESTRICT="test"
 REQUIRED_USE="deprecated? ( python )
        python? (
                ${PYTHON_REQUIRED_USE}
                || ( deprecated gtk3 )
                gtk3? ( introspection )
        )
+       test? ( || ( gtk gtk3 ) )
        vala? ( introspection )"
 
 CDEPEND="app-text/iso-codes
@@ -77,6 +77,12 @@ src_prepare() {
                -e "/^py2_compile/,/^$/d" \
                -e "/^install-data-hook/,/^$/d" \
                bindings/pygobject/Makefile.am
+       # require user interaction
+       sed -i "/^TESTS += ibus-compose/d" src/tests/Makefile.am
+       # fixed in 1.5.14+
+       sed -i "/def test_keymap/a\        self.skipTest('')" bindings/pygobject/test-override-ibus.py
+       sed -i "/[[:space:]]test-stress[[:space:]]/d" bus/Makefile.am
+       sed -i "/^TESTS += ibus-engine-switch/d" src/tests/Makefile.am
 
        sed -i "/^bash_completion/d" tools/Makefile.am
 
index bbacf8f471ecee9b28205a68bd0df1507513b6fa..4cf925979adb3334e859b2feb46d2d04fc8870da 100644 (file)
@@ -15,13 +15,13 @@ LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
 IUSE="deprecated gconf gtk +gtk3 +introspection nls +python test vala wayland +X"
-RESTRICT="test"
 REQUIRED_USE="deprecated? ( python )
        python? (
                ${PYTHON_REQUIRED_USE}
                || ( deprecated gtk3 )
                gtk3? ( introspection )
        )
+       test? ( || ( gtk gtk3 ) )
        vala? ( introspection )"
 
 CDEPEND="app-text/iso-codes
@@ -77,6 +77,8 @@ src_prepare() {
                -e "/^py2_compile/,/^$/d" \
                -e "/^install-data-hook/,/^$/d" \
                bindings/pygobject/Makefile.am
+       # require user interaction
+       sed -i "/^TESTS += ibus-compose/d" src/tests/Makefile.am
 
        sed -i "/^bash_completion/d" tools/Makefile.am