media-tv/plex-media-server: fix QA notes about .desktop file
authorJoonas Niilola <juippis@gentoo.org>
Sat, 14 Dec 2019 08:26:10 +0000 (10:26 +0200)
committerJoonas Niilola <juippis@gentoo.org>
Sat, 14 Dec 2019 08:26:10 +0000 (10:26 +0200)
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
media-tv/plex-media-server/plex-media-server-1.16.4.ebuild

index 69d4dccad28152821b7fd0fee4d8174a1a9852c3..1fa5d4363cc502feaa6689b3a81fd7aa5b2ba282 100644 (file)
@@ -32,7 +32,6 @@ RDEPEND="
        acct-group/plex
        ${PYTHON_DEPS}"
 
-QA_DESKTOP_FILE="usr/share/applications/plexmediamanager.desktop"
 QA_PREBUILT="*"
 QA_MULTILIB_PATHS=(
        "usr/lib/${_APPNAME}/.*"
@@ -60,6 +59,10 @@ src_install() {
        # Remove Debian specific files
        rm -r "usr/share/doc" || die
 
+       # Fix QA warning about .desktop file.
+       sed -i 's|Audio;Music;Video;Player;Media;|AudioVideo;Music;Player;|g' \
+               usr/share/applications/plexmediaserver.desktop || die
+
        # Copy main files over to image and preserve permissions so it is portable
        cp -rp usr/ "${ED}"/ || die