games-simulation/flightgear: tests should be optional, fix bug 657350
authorMaciej Mrozowski <reavertm@gentoo.org>
Wed, 6 Jun 2018 23:14:47 +0000 (01:14 +0200)
committerMaciej Mrozowski <reavertm@gentoo.org>
Wed, 6 Jun 2018 23:15:04 +0000 (01:15 +0200)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

games-simulation/flightgear/files/flightgear-2018.2.1-cmake.patch [new file with mode: 0644]
games-simulation/flightgear/flightgear-2018.2.1.ebuild

diff --git a/games-simulation/flightgear/files/flightgear-2018.2.1-cmake.patch b/games-simulation/flightgear/files/flightgear-2018.2.1-cmake.patch
new file mode 100644 (file)
index 0000000..eca0421
--- /dev/null
@@ -0,0 +1,11 @@
+diff -ruN flightgear-2018.2.1/CMakeLists.txt my/CMakeLists.txt
+--- flightgear-2018.2.1/CMakeLists.txt 2018-06-03 09:47:23.000000000 +0200
++++ my/CMakeLists.txt  2018-06-07 01:09:14.621303443 +0200
+@@ -596,4 +596,6 @@
+ # The test suite.
+-add_subdirectory(test_suite EXCLUDE_FROM_ALL)
++if(ENABLE_TESTS)
++    add_subdirectory(test_suite EXCLUDE_FROM_ALL)
++endif()
index 69d28c39ce75cd17e56b1d8a9c2598c270941661..15be88e6c57e20bf1ddcdef0a39acd14f2f3e07c 100644 (file)
@@ -59,6 +59,8 @@ RDEPEND="${COMMON_DEPEND}
        ~games-simulation/${PN}-data-${PV}
 "
 
+PATCHES=("${FILESDIR}/${P}-cmake.patch")
+
 DOCS=(AUTHORS ChangeLog NEWS README Thanks)
 
 pkg_pretend() {