From f5a2fbce5f39e4b57689a277046ccb81d043cef0 Mon Sep 17 00:00:00 2001 From: Maciej Mrozowski Date: Sat, 9 Dec 2023 01:48:52 +0100 Subject: games-simulation/flightgear: version bump, remove old Signed-off-by: Maciej Mrozowski --- games-simulation/flightgear-data/Manifest | 3 +- .../flightgear-data-2020.3.17.ebuild | 21 --- .../flightgear-data-2020.3.18.ebuild | 21 --- .../flightgear-data-2020.3.19.ebuild | 21 +++ games-simulation/flightgear/Manifest | 2 +- .../flightgear/flightgear-2020.3.18.ebuild | 170 --------------------- .../flightgear/flightgear-2020.3.19.ebuild | 170 +++++++++++++++++++++ 7 files changed, 193 insertions(+), 215 deletions(-) delete mode 100644 games-simulation/flightgear-data/flightgear-data-2020.3.17.ebuild delete mode 100644 games-simulation/flightgear-data/flightgear-data-2020.3.18.ebuild create mode 100644 games-simulation/flightgear-data/flightgear-data-2020.3.19.ebuild delete mode 100644 games-simulation/flightgear/flightgear-2020.3.18.ebuild create mode 100644 games-simulation/flightgear/flightgear-2020.3.19.ebuild (limited to 'games-simulation') diff --git a/games-simulation/flightgear-data/Manifest b/games-simulation/flightgear-data/Manifest index 524dc38fe77d..3526353df994 100644 --- a/games-simulation/flightgear-data/Manifest +++ b/games-simulation/flightgear-data/Manifest @@ -1,2 +1 @@ -DIST FlightGear-2020.3.17-data.txz 1789324280 BLAKE2B abb1384be2922a80a4abf1c5a540e160c94e74c63ec1ce337f2be253a49c54ee499b9cea752bead41ee4ff1a235b7f78c9143579b602b4a911f46bdb7766e15c SHA512 b15a8ae46709594d9aca5442c51b0cf5b2a804f5b39135bfa9c413ce4aca74db1955a399eb93abf38f1e265199e09ac0ecf05e518a23eeb35aeaa5cbc09277a0 -DIST FlightGear-2020.3.18-data.txz 1789347748 BLAKE2B 0c6507ab2eaf10a3b9559dfca41818a66354da163b3ee64ecedcc3f49c0847cebe337982b8622618dc1710702754ac57cc17d96a954221543c8599ce5734c3d3 SHA512 0c0ec7246bc894c6b34a1a0862ed0199666f47ea1f0ad8c54ce08aab48eb47601296356e5a090ad2f118230eccb9ccb86823e948abad0fe05a706c38249d2196 +DIST FlightGear-2020.3.19-data.txz 1789370768 BLAKE2B 2fa77d7821dc866e871ad92587204e82cb8bd2a961055b32a880285163505cd17b0044425a3b9d58cf181f32d94fdddbf4abc6e9e81d1264cf3d0173b9d65554 SHA512 054efd8a77f55b16e955d6489f34c671d927b3c4c6ea1d15e244189b1852215cee36de927a1a82d04e81d9afc3e8af8575724935c2113dfba919426be5f0eb95 diff --git a/games-simulation/flightgear-data/flightgear-data-2020.3.17.ebuild b/games-simulation/flightgear-data/flightgear-data-2020.3.17.ebuild deleted file mode 100644 index 5eb3beaef789..000000000000 --- a/games-simulation/flightgear-data/flightgear-data-2020.3.17.ebuild +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DESCRIPTION="FlightGear data files" -HOMEPAGE="https://www.flightgear.org/" -SRC_URI="mirror://sourceforge/flightgear/FlightGear-${PV}-data.txz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -S=${WORKDIR}/fgdata - -src_install() { - insinto /usr/share/flightgear - rm -fr .git - doins -r * -} diff --git a/games-simulation/flightgear-data/flightgear-data-2020.3.18.ebuild b/games-simulation/flightgear-data/flightgear-data-2020.3.18.ebuild deleted file mode 100644 index d22234309783..000000000000 --- a/games-simulation/flightgear-data/flightgear-data-2020.3.18.ebuild +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DESCRIPTION="FlightGear data files" -HOMEPAGE="https://www.flightgear.org/" -SRC_URI="mirror://sourceforge/flightgear/FlightGear-${PV}-data.txz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -S=${WORKDIR}/fgdata - -src_install() { - insinto /usr/share/flightgear - rm -fr .git - doins -r * -} diff --git a/games-simulation/flightgear-data/flightgear-data-2020.3.19.ebuild b/games-simulation/flightgear-data/flightgear-data-2020.3.19.ebuild new file mode 100644 index 000000000000..d22234309783 --- /dev/null +++ b/games-simulation/flightgear-data/flightgear-data-2020.3.19.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="FlightGear data files" +HOMEPAGE="https://www.flightgear.org/" +SRC_URI="mirror://sourceforge/flightgear/FlightGear-${PV}-data.txz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +S=${WORKDIR}/fgdata + +src_install() { + insinto /usr/share/flightgear + rm -fr .git + doins -r * +} diff --git a/games-simulation/flightgear/Manifest b/games-simulation/flightgear/Manifest index ff9c56aeb1ec..4c646ab93dec 100644 --- a/games-simulation/flightgear/Manifest +++ b/games-simulation/flightgear/Manifest @@ -1 +1 @@ -DIST flightgear-2020.3.18.tar.bz2 8936579 BLAKE2B 3d404f7b32f1eb6f065e9aaa5f9a5750ac0e870828d4942abb04b4a56c6941b2b282b481fffea5826c532de5cb6c78b8752d048ab527ea637c7e87227590ad96 SHA512 189e3fa637ae30662cd60cd473c9540e1e7f2b49cf29afe720794a278f09c7d788a458a6ddac843121958aa25f78f2528f1c5c8303c2a1e5cfc5478b1591df89 +DIST flightgear-2020.3.19.tar.bz2 8935152 BLAKE2B cc4ae515278ced52186683ae44b0ebf0aba9569fac12c5a5646b2a420663154651edcbf7eba18a040127f2d90dbffa1f48000529e8adc944d22fb314ce53c091 SHA512 ad5a4dd455a92bd9032c0f01084c0c114e4a91e60d53f200a754e54e1f8e08fd8e9008ea9f97f69410ee842fdc6c2210091d4ac5e5c6da6ba19f47e22438d207 diff --git a/games-simulation/flightgear/flightgear-2020.3.18.ebuild b/games-simulation/flightgear/flightgear-2020.3.18.ebuild deleted file mode 100644 index eed1f6471442..000000000000 --- a/games-simulation/flightgear/flightgear-2020.3.18.ebuild +++ /dev/null @@ -1,170 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake toolchain-funcs - -DESCRIPTION="Open Source Flight Simulator" -HOMEPAGE="https://www.flightgear.org/" -SRC_URI="mirror://sourceforge/flightgear/${P}.tar.bz2" - -LICENSE="GPL-2" -KEYWORDS="~amd64 ~x86" -SLOT="0" -IUSE="cpu_flags_x86_sse2 dbus debug examples gdal openmp qt5 +udev +utils" - -# Needs --fg-root with path to flightgear-data passed to test runner passed, -# not really worth patching -RESTRICT="test" - -# zlib is some strange auto-dep from simgear -COMMON_DEPEND=" - dev-db/sqlite:3 - dev-games/openscenegraph[jpeg,png] - ~dev-games/simgear-${PV}[gdal=] - media-libs/openal - >=media-libs/plib-1.8.5 - >=media-libs/speex-1.2.0:0 - media-libs/speexdsp:0 - media-sound/gsm - sys-libs/zlib - virtual/glu - x11-libs/libX11 - dbus? ( >=sys-apps/dbus-1.6.18-r1 ) - gdal? ( >=sci-libs/gdal-2.0.0:= ) - qt5? ( - >=dev-qt/qtcore-5.7.1:5 - >=dev-qt/qtdeclarative-5.7.1:5 - >=dev-qt/qtgui-5.7.1:5 - >=dev-qt/qtnetwork-5.7.1:5 - >=dev-qt/qtwidgets-5.7.1:5 - ) - udev? ( virtual/udev ) - utils? ( - media-libs/freeglut - media-libs/freetype:2 - media-libs/glew:0 - media-libs/libpng:0 - virtual/opengl - qt5? ( >=dev-qt/qtwebsockets-5.7.1:5 ) - ) -" -# libXi and libXmu are build-only-deps according to FindGLUT.cmake -DEPEND="${COMMON_DEPEND} - dev-libs/boost - utils? ( - x11-libs/libXi - x11-libs/libXmu - ) -" -RDEPEND="${COMMON_DEPEND} - ~games-simulation/${PN}-data-${PV} -" -BDEPEND="qt5? ( >=dev-qt/linguist-tools-5.7.1:5 )" - -PATCHES=( - "${FILESDIR}/${PN}-2020.3.8-cmake.patch" -) - -DOCS=(AUTHORS ChangeLog NEWS README Thanks) - -pkg_pretend() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -pkg_setup() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -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_GDAL=$(usex gdal) - -DENABLE_GPSSMOOTH=$(usex utils) - -DENABLE_HID_INPUT=$(usex udev) - -DENABLE_IAX=$(usex utils) - -DENABLE_JS_DEMO=$(usex utils) - -DENABLE_JSBSIM=ON - -DENABLE_LARCSIM=ON - -DENABLE_METAR=$(usex utils) - -DENABLE_OPENMP=$(usex openmp) - -DENABLE_PLIB_JOYSTICK=ON # NOTE look for defaults changes in CMake - -DENABLE_PROFILE=OFF - -DENABLE_QT=$(usex qt5) - -DENABLE_RTI=OFF - -DENABLE_SIMD=$(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 - -DENABLE_YASIM=ON - -DEVENT_INPUT=$(usex udev) - -DFG_BUILD_TYPE=Release - -DFG_DATA_DIR=/usr/share/${PN} - -DJSBSIM_TERRAIN=ON - -DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO also see simgear - -DSP_FDMS=ON - -DSYSTEM_CPPUNIT=OFF # NOTE we do not build tests anyway - -DSYSTEM_FLITE=OFF - -DSYSTEM_HTS_ENGINE=OFF - -DSYSTEM_SPEEX=ON - -DSYSTEM_GSM=ON - -DSYSTEM_SQLITE=ON - -DUSE_AEONWAVE=OFF - -DUSE_DBUS=$(usex dbus) - -DWITH_FGPANEL=$(usex utils) - ) - if use gdal && use utils; then - mycmakeargs+=(-DENABLE_DEMCONVERT=ON) - else - mycmakeargs+=(-DENABLE_DEMCONVERT=OFF) - fi - if use qt5 && use utils; then - mycmakeargs+=(-DENABLE_FGQCANVAS=ON) - else - mycmakeargs+=(-DENABLE_FGQCANVAS=OFF) - fi - - cmake_src_configure -} - -src_install() { - cmake_src_install - - # Install bash completion (TODO zsh) - # Uncomment below when scripts stops writing files... -# sed -e "s|/usr/local/share/FlightGear|${GAMES_DATADIR}/${PN}|" \ -# -i scripts/completion/fg-completion.bash || die 'unable to replace FG_ROOT' -# newbashcomp scripts/completion/fg-completion.bash ${PN} - - # Install examples and other misc files - if use examples; then - docompress -x /usr/share/doc/"${PF}"/{examples,tools} - docinto examples - dodoc -r scripts/java scripts/perl scripts/python - docinto examples/c++ - dodoc -r scripts/example/* - docinto tools - dodoc -r scripts/atis scripts/tools/* - fi - - # Install nasal script syntax - insinto /usr/share/vim/vimfiles/syntax - doins scripts/syntax/{ac3d,nasal}.vim - insinto /usr/share/vim/vimfiles/ftdetect/ - doins "${FILESDIR}"/{ac3d,nasal}.vim -} - -pkg_postinst() { - if use qt5; then - einfo "To use launcher, run fgfs with '--launcher' parameter" - fi -} diff --git a/games-simulation/flightgear/flightgear-2020.3.19.ebuild b/games-simulation/flightgear/flightgear-2020.3.19.ebuild new file mode 100644 index 000000000000..eed1f6471442 --- /dev/null +++ b/games-simulation/flightgear/flightgear-2020.3.19.ebuild @@ -0,0 +1,170 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake toolchain-funcs + +DESCRIPTION="Open Source Flight Simulator" +HOMEPAGE="https://www.flightgear.org/" +SRC_URI="mirror://sourceforge/flightgear/${P}.tar.bz2" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="cpu_flags_x86_sse2 dbus debug examples gdal openmp qt5 +udev +utils" + +# Needs --fg-root with path to flightgear-data passed to test runner passed, +# not really worth patching +RESTRICT="test" + +# zlib is some strange auto-dep from simgear +COMMON_DEPEND=" + dev-db/sqlite:3 + dev-games/openscenegraph[jpeg,png] + ~dev-games/simgear-${PV}[gdal=] + media-libs/openal + >=media-libs/plib-1.8.5 + >=media-libs/speex-1.2.0:0 + media-libs/speexdsp:0 + media-sound/gsm + sys-libs/zlib + virtual/glu + x11-libs/libX11 + dbus? ( >=sys-apps/dbus-1.6.18-r1 ) + gdal? ( >=sci-libs/gdal-2.0.0:= ) + qt5? ( + >=dev-qt/qtcore-5.7.1:5 + >=dev-qt/qtdeclarative-5.7.1:5 + >=dev-qt/qtgui-5.7.1:5 + >=dev-qt/qtnetwork-5.7.1:5 + >=dev-qt/qtwidgets-5.7.1:5 + ) + udev? ( virtual/udev ) + utils? ( + media-libs/freeglut + media-libs/freetype:2 + media-libs/glew:0 + media-libs/libpng:0 + virtual/opengl + qt5? ( >=dev-qt/qtwebsockets-5.7.1:5 ) + ) +" +# libXi and libXmu are build-only-deps according to FindGLUT.cmake +DEPEND="${COMMON_DEPEND} + dev-libs/boost + utils? ( + x11-libs/libXi + x11-libs/libXmu + ) +" +RDEPEND="${COMMON_DEPEND} + ~games-simulation/${PN}-data-${PV} +" +BDEPEND="qt5? ( >=dev-qt/linguist-tools-5.7.1:5 )" + +PATCHES=( + "${FILESDIR}/${PN}-2020.3.8-cmake.patch" +) + +DOCS=(AUTHORS ChangeLog NEWS README Thanks) + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +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_GDAL=$(usex gdal) + -DENABLE_GPSSMOOTH=$(usex utils) + -DENABLE_HID_INPUT=$(usex udev) + -DENABLE_IAX=$(usex utils) + -DENABLE_JS_DEMO=$(usex utils) + -DENABLE_JSBSIM=ON + -DENABLE_LARCSIM=ON + -DENABLE_METAR=$(usex utils) + -DENABLE_OPENMP=$(usex openmp) + -DENABLE_PLIB_JOYSTICK=ON # NOTE look for defaults changes in CMake + -DENABLE_PROFILE=OFF + -DENABLE_QT=$(usex qt5) + -DENABLE_RTI=OFF + -DENABLE_SIMD=$(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 + -DENABLE_YASIM=ON + -DEVENT_INPUT=$(usex udev) + -DFG_BUILD_TYPE=Release + -DFG_DATA_DIR=/usr/share/${PN} + -DJSBSIM_TERRAIN=ON + -DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO also see simgear + -DSP_FDMS=ON + -DSYSTEM_CPPUNIT=OFF # NOTE we do not build tests anyway + -DSYSTEM_FLITE=OFF + -DSYSTEM_HTS_ENGINE=OFF + -DSYSTEM_SPEEX=ON + -DSYSTEM_GSM=ON + -DSYSTEM_SQLITE=ON + -DUSE_AEONWAVE=OFF + -DUSE_DBUS=$(usex dbus) + -DWITH_FGPANEL=$(usex utils) + ) + if use gdal && use utils; then + mycmakeargs+=(-DENABLE_DEMCONVERT=ON) + else + mycmakeargs+=(-DENABLE_DEMCONVERT=OFF) + fi + if use qt5 && use utils; then + mycmakeargs+=(-DENABLE_FGQCANVAS=ON) + else + mycmakeargs+=(-DENABLE_FGQCANVAS=OFF) + fi + + cmake_src_configure +} + +src_install() { + cmake_src_install + + # Install bash completion (TODO zsh) + # Uncomment below when scripts stops writing files... +# sed -e "s|/usr/local/share/FlightGear|${GAMES_DATADIR}/${PN}|" \ +# -i scripts/completion/fg-completion.bash || die 'unable to replace FG_ROOT' +# newbashcomp scripts/completion/fg-completion.bash ${PN} + + # Install examples and other misc files + if use examples; then + docompress -x /usr/share/doc/"${PF}"/{examples,tools} + docinto examples + dodoc -r scripts/java scripts/perl scripts/python + docinto examples/c++ + dodoc -r scripts/example/* + docinto tools + dodoc -r scripts/atis scripts/tools/* + fi + + # Install nasal script syntax + insinto /usr/share/vim/vimfiles/syntax + doins scripts/syntax/{ac3d,nasal}.vim + insinto /usr/share/vim/vimfiles/ftdetect/ + doins "${FILESDIR}"/{ac3d,nasal}.vim +} + +pkg_postinst() { + if use qt5; then + einfo "To use launcher, run fgfs with '--launcher' parameter" + fi +} -- cgit v1.2.3-65-gdbad