net-analyzer/wireshark: Install pcap icons, explicitly name Qt variant in desktop...
authorJeroen Roovers <jer@gentoo.org>
Fri, 23 Oct 2015 05:41:54 +0000 (07:41 +0200)
committerJeroen Roovers <jer@gentoo.org>
Fri, 23 Oct 2015 05:42:31 +0000 (07:42 +0200)
Package-Manager: portage-2.2.23

net-analyzer/wireshark/wireshark-99999999.ebuild

index c17f5f2a8861ff103193fcf83de2768b7c2e04aa..4a25e68d4edc2d8ae30c13494a4ff07ad2f87fb3 100644 (file)
@@ -236,6 +236,10 @@ src_install() {
                                newins image/${c}${d}-app-wireshark.png wireshark.png
                        done
                done
+               for d in 16 24 32 48 64 128 256 ; do
+                       insinto /usr/share/icons/hicolor/${d}x${d}/mimetypes
+                       newins image/WiresharkDoc-${d}.png application-vnd.tcpdump.pcap.png
+               done
        fi
 
        if use gtk3; then
@@ -243,7 +247,11 @@ src_install() {
        fi
 
        if use qt4 || use qt5; then
-               sed -e '/Exec=/s|wireshark|&-qt|g' wireshark.desktop > wireshark-qt.desktop || die
+               sed \
+                       -e '/Exec=/s|wireshark|&-qt|g' \
+                       -e 's|^Name.*=Wireshark|& (Qt)|g' \
+                       wireshark.desktop > wireshark-qt.desktop \
+                       || die
                domenu wireshark-qt.desktop
        fi