net-analyzer/wireshark: #654714, #654690.
authorJeroen Roovers <jer@gentoo.org>
Fri, 4 May 2018 17:53:50 +0000 (19:53 +0200)
committerJeroen Roovers <jer@gentoo.org>
Fri, 4 May 2018 18:01:27 +0000 (20:01 +0200)
Package-Manager: Portage-2.3.33, Repoman-2.3.9

net-analyzer/wireshark/files/wireshark-2.6.0-qtsvg.patch [new file with mode: 0644]
net-analyzer/wireshark/files/wireshark-2.6.0-redhat.patch [new file with mode: 0644]
net-analyzer/wireshark/wireshark-2.6.0-r1.ebuild
net-analyzer/wireshark/wireshark-99999999.ebuild

diff --git a/net-analyzer/wireshark/files/wireshark-2.6.0-qtsvg.patch b/net-analyzer/wireshark/files/wireshark-2.6.0-qtsvg.patch
new file mode 100644 (file)
index 0000000..6332772
--- /dev/null
@@ -0,0 +1,29 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -926,14 +926,12 @@
+                       Qt5LinguistTools
+                       Qt5Multimedia
+                       Qt5PrintSupport
+-                      Qt5Svg
+                       Qt5Widgets
+               )
+               set(Qt5Core_OPTIONS REQUIRED)
+               set(Qt5LinguistTools_OPTIONS REQUIRED)
+               set(Qt5Multimedia_OPTIONS REQUIRED)
+               set(Qt5PrintSupport_OPTIONS REQUIRED)
+-              set(Qt5Svg_OPTIONS REQUIRED)
+               set(Qt5Widgets_OPTIONS REQUIRED)
+               if (APPLE)
+                       set(PACKAGELIST ${PACKAGELIST} Qt5MacExtras)
+@@ -1229,11 +1227,6 @@
+               # That's the name autofoo uses
+               set(QT_MULTIMEDIA_LIB 1)
+       endif()
+-      if(Qt5Svg_FOUND)
+-              set (QT_LIBRARIES ${QT_LIBRARIES} ${Qt5Svg_LIBRARIES})
+-              # That's the name autofoo uses
+-              set(QT_SVG_LIB 1)
+-      endif()
+       if(Qt5MacExtras_FOUND)
+               set (QT_LIBRARIES ${QT_LIBRARIES} ${Qt5MacExtras_LIBRARIES})
+               # That's the name autofoo uses
diff --git a/net-analyzer/wireshark/files/wireshark-2.6.0-redhat.patch b/net-analyzer/wireshark/files/wireshark-2.6.0-redhat.patch
new file mode 100644 (file)
index 0000000..fe17609
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -3019,7 +3019,7 @@
+ endif()
+-if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
++if(CMAKE_SYSTEM_NAME STREQUAL "Red Hat")
+       find_program(RPMBUILD_EXECUTABLE rpmbuild)
+       find_program(GIT_EXECUTABLE git)
+ endif()
index 40b8f06bf9245a77cfdec4c33e8c0b545c4ff24e..23ffa310a9ed5dce6b518b8894358127eb0641bf 100644 (file)
@@ -89,6 +89,8 @@ PATCHES=(
        "${FILESDIR}"/${PN}-1.99.8-qtchooser.patch
        "${FILESDIR}"/${PN}-2.4-androiddump.patch
        "${FILESDIR}"/${PN}-2.6.0-androiddump-wsutil.patch
+       "${FILESDIR}"/${PN}-2.6.0-qtsvg.patch
+       "${FILESDIR}"/${PN}-2.6.0-redhat.patch
        "${FILESDIR}"/${PN}-99999999-androiddump.patch
 )
 
index c216e52d33d523b31b7a13420e1a9cec6dd394e9..7ca08d8b9246bd5cf76b4961d2ca1642feedefc9 100644 (file)
@@ -88,6 +88,8 @@ RDEPEND="
 PATCHES=(
        "${FILESDIR}"/${PN}-2.4-androiddump.patch
        "${FILESDIR}"/${PN}-2.6.0-androiddump-wsutil.patch
+       "${FILESDIR}"/${PN}-2.6.0-qtsvg.patch
+       "${FILESDIR}"/${PN}-2.6.0-redhat.patch
 )
 
 pkg_setup() {