--- /var/portage/net-analyzer/wireshark/wireshark-1.10.0-r1.ebuild +++ wireshark-1.10.0-r1.ebuild @@ -120,6 +120,14 @@ esac fi + # Enable wireshark binary with any supported GUI toolkit (bug #473188) + if use gtk || use qt4 ; then + myconf+=( "--enable-wireshark" ) + else + myconf+=( "--disable-wireshark" ) + fi + + # Hack around inability to disable doxygen/fop doc generation use doc || export ac_cv_prog_HAVE_DOXYGEN=false use doc-pdf || export ac_cv_prog_HAVE_FOP=false @@ -128,10 +136,8 @@ econf \ $(use pcap && use_enable !caps setuid-install) \ $(use pcap && use_enable caps setcap-install) \ - $(use_enable gtk wireshark) \ $(use_enable ipv6) \ $(use_enable profile profile-build) \ - $(use_enable qt4 wireshark) \ $(use_with caps libcap) \ $(use_with crypt gcrypt) \ $(use_with geoip) \