--- /usr/portage/net-analyzer/wireshark/wireshark-1.10.0.ebuild 2013-06-10 07:01:23.000000000 +0300 +++ /usr/local/portage/net-analyzer/wireshark/wireshark-1.10.0.ebuild 2013-06-11 18:09:38.000000000 +0300 @@ -16,10 +16,11 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" IUSE=" adns +caps crypt doc doc-pdf geoip gtk ipv6 kerberos libadns lua - +netlink +pcap portaudio profile python selinux smi ssl zlib + +netlink +pcap portaudio profile python qt4 selinux smi ssl zlib " REQUIRED_USE=" ssl? ( crypt ) + gtk? ( !qt4 ) " RDEPEND=" @@ -41,6 +42,7 @@ pcap? ( net-libs/libpcap[-netlink] ) portaudio? ( media-libs/portaudio ) python? ( ${PYTHON_DEPS} ) + qt4? ( dev-qt/qtgui:4 ) selinux? ( sec-policy/selinux-wireshark ) smi? ( net-libs/libsmi ) ssl? ( net-libs/gnutls ) @@ -68,9 +70,9 @@ S=${WORKDIR}/${MY_P} pkg_setup() { - if ! use gtk; then - ewarn "USE=-gtk disables gtk-based gui called wireshark." - ewarn "Only command line utils will be built available" + if ! use gtk && ! use qt4; then + ewarn "Both gtk and qt4 are disabled so the gui called wireshark will not be built." + ewarn "Only command line utils will be available" fi if use python; then @@ -146,6 +148,8 @@ $(use_with pcap) \ $(use_with portaudio) \ $(use_with python) \ + $(use_enable qt4 wireshark) \ + $(use_with qt4 qt) \ $(use_with smi libsmi) \ $(use_with ssl gnutls) \ $(use_with zlib) \