media-tv/kodi: fix QA warnings
authorCraig Andrews <candrews@gentoo.org>
Mon, 18 Nov 2019 20:14:32 +0000 (15:14 -0500)
committerCraig Andrews <candrews@gentoo.org>
Mon, 18 Nov 2019 20:14:58 +0000 (15:14 -0500)
${ED%/} unnecessary slash strip on lines
missing RESTRICT="!test? ( test )" with IUSE=test

Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Craig Andrews <candrews@gentoo.org>
media-tv/kodi/kodi-18.5.ebuild
media-tv/kodi/kodi-9999.ebuild

index ab7d8a3c30fb42bc11b89253fd8ab765d0a3ff35..60f92f21a6fc1f7831515d4d871377a8812d4417 100644 (file)
@@ -51,6 +51,7 @@ REQUIRED_USE="
        udisks? ( dbus )
        upower? ( dbus )
 "
+RESTRICT="!test? ( test )"
 
 COMMON_DEPEND="${PYTHON_DEPS}
        airplay? (
@@ -304,11 +305,11 @@ src_test() {
 src_install() {
        cmake-utils_src_install
 
-       pax-mark Em "${ED%/}"/usr/$(get_libdir)/${PN}/${PN}.bin
+       pax-mark Em "${ED}"/usr/$(get_libdir)/${PN}/${PN}.bin
 
        newicon media/icon48x48.png kodi.png
 
-       rm "${ED%/}"/usr/share/kodi/addons/skin.estuary/fonts/Roboto-Thin.ttf || die
+       rm "${ED}"/usr/share/kodi/addons/skin.estuary/fonts/Roboto-Thin.ttf || die
        dosym ../../../../fonts/roboto/Roboto-Thin.ttf \
                usr/share/kodi/addons/skin.estuary/fonts/Roboto-Thin.ttf
 
index a5e56b7f2175f74e2955410d9c7a8565fb4cb503..a69d71d371d2858ea9fe74ddd5bc031db7eda5f8 100644 (file)
@@ -50,6 +50,7 @@ REQUIRED_USE="
        udisks? ( dbus )
        upower? ( dbus )
 "
+RESTRICT="!test? ( test )"
 
 COMMON_DEPEND="${PYTHON_DEPS}
        airplay? (
@@ -293,11 +294,11 @@ src_test() {
 src_install() {
        cmake-utils_src_install
 
-       pax-mark Em "${ED%/}"/usr/$(get_libdir)/${PN}/${PN}.bin
+       pax-mark Em "${ED}"/usr/$(get_libdir)/${PN}/${PN}.bin
 
        newicon media/icon48x48.png kodi.png
 
-       rm "${ED%/}"/usr/share/kodi/addons/skin.estuary/fonts/Roboto-Thin.ttf || die
+       rm "${ED}"/usr/share/kodi/addons/skin.estuary/fonts/Roboto-Thin.ttf || die
        dosym ../../../../fonts/roboto/Roboto-Thin.ttf \
                usr/share/kodi/addons/skin.estuary/fonts/Roboto-Thin.ttf