games-simulation/flightgear: Fix build dependencies, bug 686904.
authorMaciej Mrozowski <reavertm@gentoo.org>
Tue, 20 Aug 2019 23:40:24 +0000 (01:40 +0200)
committerMaciej Mrozowski <reavertm@gentoo.org>
Tue, 20 Aug 2019 23:42:13 +0000 (01:42 +0200)
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Maciej Mrozowski <reavertm@gentoo.org>
games-simulation/flightgear/files/flightgear-2018.3.2-cmake.patch [new file with mode: 0644]
games-simulation/flightgear/flightgear-2018.3.2.ebuild
games-simulation/flightgear/flightgear-9999.ebuild

diff --git a/games-simulation/flightgear/files/flightgear-2018.3.2-cmake.patch b/games-simulation/flightgear/files/flightgear-2018.3.2-cmake.patch
new file mode 100644 (file)
index 0000000..97747e8
--- /dev/null
@@ -0,0 +1,24 @@
+diff -ruN flightgear-2018.3.2/CMakeLists.txt my/CMakeLists.txt
+--- flightgear-2018.3.2/CMakeLists.txt 2019-01-29 14:17:49.000000000 +0100
++++ my/CMakeLists.txt  2019-08-18 05:29:04.762138013 +0200
+@@ -323,7 +323,7 @@
+ ## Qt5 setup setup
+ if (ENABLE_QT)
+     message(STATUS "Qt launcher enabled, checking for Qt >= 5.4 / qmake")
+-    find_package(Qt5 5.4 COMPONENTS Widgets Network Qml Quick Svg)
++    find_package(Qt5 5.4 COMPONENTS Widgets Network Qml Quick)
+     if (Qt5Widgets_FOUND)
+         message(STATUS "Will enable Qt launcher GUI")
+         message(STATUS "  Qt5Widgets version: ${Qt5Widgets_VERSION_STRING}")
+diff -ruN flightgear-2018.3.2/src/GUI/CMakeLists.txt my/src/GUI/CMakeLists.txt
+--- flightgear-2018.3.2/src/GUI/CMakeLists.txt 2019-01-29 14:17:50.000000000 +0100
++++ my/src/GUI/CMakeLists.txt  2019-08-18 05:38:19.607822998 +0200
+@@ -127,7 +127,7 @@
+                             ${qml_sources})
+     set_property(TARGET fglauncher PROPERTY AUTOMOC ON)
+-    target_link_libraries(fglauncher Qt5::Core Qt5::Widgets Qt5::Network Qt5::Qml Qt5::Quick Qt5::Svg SimGearCore)
++    target_link_libraries(fglauncher Qt5::Core Qt5::Widgets Qt5::Network Qt5::Qml Qt5::Quick SimGearCore)
+     target_include_directories(fglauncher PRIVATE ${PROJECT_BINARY_DIR}/src/GUI)
+     add_library(fgqmlui QQuickDrawable.cxx
index 31cb9fe151d2d142691578cf80c63a0161156e91..ddec50a3ac88a207ba5818635e00fb2717b03c75 100644 (file)
@@ -53,6 +53,7 @@ COMMON_DEPEND="
 DEPEND="${COMMON_DEPEND}
        >=dev-libs/boost-1.44
        >=media-libs/plib-1.8.5
+       qt5? ( >=dev-qt/linguist-tools-5.7.1:5 )
        utils? (
                x11-libs/libXi
                x11-libs/libXmu
@@ -62,6 +63,8 @@ RDEPEND="${COMMON_DEPEND}
        ~games-simulation/${PN}-data-${PV}
 "
 
+PATCHES=("${FILESDIR}/${PN}-2018.3.2-cmake.patch")
+
 DOCS=(AUTHORS ChangeLog NEWS README Thanks)
 
 pkg_pretend() {
index e485d9af2d35a6945ec7219e1d0969c4256dd3d3..0243250482c9a1989311029bc849ca368ab0de72 100644 (file)
@@ -55,6 +55,7 @@ COMMON_DEPEND="
 DEPEND="${COMMON_DEPEND}
        >=dev-libs/boost-1.44
        >=media-libs/plib-1.8.5
+       qt5? ( >=dev-qt/linguist-tools-5.7.1:5 )
        utils? (
                x11-libs/libXi
                x11-libs/libXmu
@@ -64,6 +65,8 @@ RDEPEND="${COMMON_DEPEND}
        ~games-simulation/${PN}-data-${PV}
 "
 
+PATCHES=("${FILESDIR}/${PN}-2018.3.2-cmake.patch")
+
 DOCS=(AUTHORS ChangeLog NEWS README Thanks)
 
 pkg_pretend() {