Skip to content

Commit

Permalink
games-simulation/flightgear: tests should be optional, fix bug 657350
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.40, Repoman-2.3.9
  • Loading branch information
reavertm committed Jun 6, 2018
1 parent 7f7f48e commit 9752790
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions games-simulation/flightgear/files/flightgear-2018.2.1-cmake.patch
Original file line number Diff line number Diff line change
@@ -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()
2 changes: 2 additions & 0 deletions games-simulation/flightgear/flightgear-2018.2.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 9752790

Please sign in to comment.