Skip to content

Commit

Permalink
games-simulation/flightgear: Version bump, remove old, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
reavertm committed Aug 2, 2020
1 parent 3672e87 commit ecfd481
Show file tree
Hide file tree
Showing 11 changed files with 76 additions and 48 deletions.
2 changes: 1 addition & 1 deletion dev-games/simgear/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DIST simgear-2019.1.1.tar.bz2 1370523 BLAKE2B 2f61b2b4b7716b7f15852ff68bee6b749b7daa04caa27927a53eb6d6e4346c46c835938c95436250da767efd2e8043aacc0cb444b37dacde78acada98ffdb4e8 SHA512 83fe4330cf27b9298719f53f2fccde2af77bacdc6f430cc22c8bdfb475fe9b6e01578c1225af21e4e1433c7d2f2b00427454064f942359ba4c1e9896e7fe05d2
DIST simgear-2020.1.2.tar.bz2 1393059 BLAKE2B 62fa15d88368177e23cf52edf51e8c56252399d8f2661e518911c1093a0d7f9f11069da8d65b479f2d4b45792dcd011194e57fa99ac3991f749e8196aaff9552 SHA512 c2e835de471f374a6c33cfd1769b7079d178ee66075bfe87cc9eb1f06dc2648db93c31f62f0ac7a664703406817cb1e909a531812cb76c99cd8751eb7e6782e7
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6
EAPI=7

inherit cmake-utils toolchain-funcs flag-o-matic
inherit cmake toolchain-funcs flag-o-matic

DESCRIPTION="Development library for simulation games"
HOMEPAGE="http://www.simgear.org/"
Expand Down Expand Up @@ -68,5 +68,5 @@ src_configure() {
append-flags -msse2 -mfpmath=sse
fi

cmake-utils_src_configure
cmake_src_configure
}
6 changes: 3 additions & 3 deletions dev-games/simgear/simgear-9999.ebuild
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6
EAPI=7

inherit eutils cmake-utils toolchain-funcs flag-o-matic git-r3
inherit eutils cmake toolchain-funcs flag-o-matic git-r3

DESCRIPTION="Development library for simulation games"
HOMEPAGE="http://www.simgear.org/"
Expand Down Expand Up @@ -70,5 +70,5 @@ src_configure() {
append-flags -msse2 -mfpmath=sse
fi

cmake-utils_src_configure
cmake_src_configure
}
2 changes: 1 addition & 1 deletion games-simulation/flightgear-data/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DIST FlightGear-2019.1.1-data.tar.bz2 1748213475 BLAKE2B 6be5021a666d8363fd97e777e0674d61875e1309a391647f6ecebcc4443d494821a737709c135dc45521ae30401479f6f74c28d7db8da992fa279ae461e16a2c SHA512 e5697f587c272036d3f5cfd7dcc7464e3eae7251e41425a91c80eabccbf711a6416a4746b5bf39a2806dc3d4f6839359483a0165899eb4ec812308b2b5da060a
DIST FlightGear-2020.1.2-data.tar.bz2 1954932485 BLAKE2B e3f06ed6a36d2cfc6518f4a1cac4aaf28df2b7e1fb4720488dd38f3df7dfccb1cc9b48e0f216fa79db5fc3b380dcdd1161325ba0195cc14aadbc2d79fab39031 SHA512 16329d230f8cfd35dbd60aad0afc66225134e5c2f98abb89ca271837f04917f6aa876fc35868783a3a3d56c4ba1d25f429436de516a8086f4b7e296a0d352e03
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6
EAPI=7

DESCRIPTION="FlightGear data files"
HOMEPAGE="https://www.flightgear.org/"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6
EAPI=7

inherit git-r3

Expand Down
2 changes: 1 addition & 1 deletion games-simulation/flightgear/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DIST flightgear-2019.1.1.tar.bz2 8440986 BLAKE2B da387456aaa6e8b86a8a865989f40c6bbcef4bf378175628c26fb172161cc3b278e4b16a3a270b7ed7fcf70329a88754c9a875a14f919fa90f284a485c909cce SHA512 edcc464af0bde4766e61137211276d77a6bb297567b0168dfaf3b97fdb9a595e5e8a0b84232680fcc975cf195261b9751edb79ae73123333feb31ab3d7215d8c
DIST flightgear-2020.1.2.tar.bz2 8504580 BLAKE2B 699db9490e27b3de82bcf2903321c7ee24784e6a96285784bb449eb05fb23f3a0417d015ea10a55992c3783c0e42a2cda7e591d998532145213d1941811b1725 SHA512 a27897a1e23fe78c64717df1a86ef37dba047a1942af1dd2e4e3f3da05975bb5c524ee03444c8067551966d6a1bbfe36866f2617fa6fe1f6b957d5769c31058c
24 changes: 0 additions & 24 deletions games-simulation/flightgear/files/flightgear-2018.3.2-cmake.patch

This file was deleted.

45 changes: 45 additions & 0 deletions games-simulation/flightgear/files/flightgear-2020.1.2-cmake.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
diff -ruN flightgear-2020.1.2/CMakeLists.txt fgfs-my/CMakeLists.txt
--- flightgear-2020.1.2/CMakeLists.txt 2020-05-24 17:14:48.000000000 +0200
+++ fgfs-my/CMakeLists.txt 2020-05-31 13:56:41.745941586 +0200
@@ -367,7 +367,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")
set(HAVE_QT 1)
diff -ruN flightgear-2020.1.2/CMakeModules/SetupFGFSLibraries.cmake fgfs-my/CMakeModules/SetupFGFSLibraries.cmake
--- flightgear-2020.1.2/CMakeModules/SetupFGFSLibraries.cmake 2020-05-24 17:14:48.000000000 +0200
+++ fgfs-my/CMakeModules/SetupFGFSLibraries.cmake 2020-05-31 13:55:33.484421108 +0200
@@ -33,15 +33,8 @@

# PkgConfig::DBUS target

- if(CMAKE_VERSION VERSION_LESS 3.6)
- if(DBUS_FOUND)
- target_link_libraries(${target} ${DBUS_LDFLAGS})
- endif()
- else()
- # PkgConfig::DBUS target
- if(TARGET PkgConfig::DBUS)
- target_link_libraries(${target} PkgConfig::DBUS)
- endif()
+ if(DBUS_FOUND)
+ target_link_libraries(${target} ${DBUS_LDFLAGS})
endif()

if(FG_HAVE_GPERFTOOLS)
diff -ruN flightgear-2020.1.2/src/GUI/CMakeLists.txt fgfs-my/src/GUI/CMakeLists.txt
--- flightgear-2020.1.2/src/GUI/CMakeLists.txt 2020-05-24 17:14:48.000000000 +0200
+++ fgfs-my/src/GUI/CMakeLists.txt 2020-05-31 13:56:41.745941586 +0200
@@ -137,7 +137,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
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6
EAPI=7

inherit cmake-utils bash-completion-r1 toolchain-funcs
inherit cmake bash-completion-r1 toolchain-funcs

DESCRIPTION="Open Source Flight Simulator"
HOMEPAGE="https://www.flightgear.org/"
Expand Down Expand Up @@ -63,7 +63,9 @@ RDEPEND="${COMMON_DEPEND}
~games-simulation/${PN}-data-${PV}
"

PATCHES=("${FILESDIR}/${PN}-2018.3.2-cmake.patch")
PATCHES=(
"${FILESDIR}/${PN}-2020.1.2-cmake.patch"
)

DOCS=(AUTHORS ChangeLog NEWS README Thanks)

Expand All @@ -73,13 +75,13 @@ pkg_pretend() {

src_configure() {
local mycmakeargs=(
-DBUILD_SHARED_LIBS=OFF
-DENABLE_AUTOTESTING=OFF
-DENABLE_COMPOSITOR=OFF
-DENABLE_FGCOM=$(usex utils)
-DENABLE_FGELEV=$(usex utils)
-DENABLE_FGJS=$(usex utils)
-DENABLE_FGVIEWER=$(usex utils)
-DENABLE_FLITE=OFF
-DENABLE_GDAL=$(usex gdal)
-DENABLE_GPSSMOOTH=$(usex utils)
-DENABLE_HID_INPUT=$(usex udev)
Expand All @@ -95,6 +97,7 @@ src_configure() {
-DENABLE_SIMD=OFF # see CPU_FLAGS
-DENABLE_SIMD_CODE=$(usex cpu_flags_x86_sse2)
-DENABLE_STGMERGE=ON
-DENABLE_SWIFT=OFF # swift pilot client not packaged yet
-DENABLE_TERRASYNC=$(usex utils)
-DENABLE_TRAFFIC=$(usex utils)
-DENABLE_UIUC_MODEL=ON
Expand All @@ -106,8 +109,8 @@ src_configure() {
-DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO also see simgear
-DSP_FDMS=ON
-DSYSTEM_CPPUNIT=OFF # NOTE we do not build tests anyway
-DSYSTEM_FLITE=ON
-DSYSTEM_HTS_ENGINE=ON
-DSYSTEM_FLITE=OFF
-DSYSTEM_HTS_ENGINE=OFF
-DSYSTEM_SPEEX=ON
-DSYSTEM_GSM=ON
-DSYSTEM_SQLITE=ON
Expand All @@ -129,11 +132,11 @@ src_configure() {
mycmakeargs+=(-DENABLE_FGQCANVAS=OFF)
fi

cmake-utils_src_configure
cmake_src_configure
}

src_install() {
cmake-utils_src_install
cmake_src_install

# Install bash completion (TODO zsh)
# Uncomment below when scripts stops writing files...
Expand Down
14 changes: 9 additions & 5 deletions games-simulation/flightgear/flightgear-9999.ebuild
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6
EAPI=7

inherit cmake-utils bash-completion-r1 toolchain-funcs git-r3
inherit cmake bash-completion-r1 toolchain-funcs git-r3

DESCRIPTION="Open Source Flight Simulator"
HOMEPAGE="https://www.flightgear.org/"
Expand Down Expand Up @@ -65,7 +65,9 @@ RDEPEND="${COMMON_DEPEND}
~games-simulation/${PN}-data-${PV}
"

PATCHES=("${FILESDIR}/${PN}-2018.3.2-cmake.patch")
PATCHES=(
"${FILESDIR}/${PN}-2020.1.2-cmake.patch"
)

DOCS=(AUTHORS ChangeLog NEWS README Thanks)

Expand All @@ -75,6 +77,7 @@ pkg_pretend() {

src_configure() {
local mycmakeargs=(
-DBUILD_SHARED_LIBS=OFF
-DENABLE_AUTOTESTING=OFF
-DENABLE_COMPOSITOR=OFF
-DENABLE_FGCOM=$(usex utils)
Expand All @@ -96,6 +99,7 @@ src_configure() {
-DENABLE_SIMD=OFF # see CPU_FLAGS
-DENABLE_SIMD_CODE=$(usex cpu_flags_x86_sse2)
-DENABLE_STGMERGE=ON
-DENABLE_SWIFT=OFF # swift pilot client not packaged yet
-DENABLE_TERRASYNC=$(usex utils)
-DENABLE_TRAFFIC=$(usex utils)
-DENABLE_UIUC_MODEL=ON
Expand Down Expand Up @@ -130,11 +134,11 @@ src_configure() {
mycmakeargs+=(-DENABLE_FGQCANVAS=OFF)
fi

cmake-utils_src_configure
cmake_src_configure
}

src_install() {
cmake-utils_src_install
cmake_src_install

# Install bash completion (TODO zsh)
# Uncomment below when scripts stops writing files...
Expand Down

0 comments on commit ecfd481

Please sign in to comment.