1 |
commit: 58936926ea438ec0f96f2800a91e149656575d99 |
2 |
Author: Michal Privoznik <mprivozn <AT> redhat <DOT> com> |
3 |
AuthorDate: Wed Mar 23 04:31:29 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 13 19:36:15 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58936926 |
7 |
|
8 |
games-simulation/flightgear: version bump 2020.3.13 |
9 |
|
10 |
Signed-off-by: Michal Privoznik <mprivozn <AT> redhat.com> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/24720 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
dev-games/simgear/Manifest | 1 + |
15 |
dev-games/simgear/simgear-2020.3.13.ebuild | 68 +++++++++ |
16 |
games-simulation/flightgear-data/Manifest | 1 + |
17 |
.../flightgear-data-2020.3.13.ebuild | 21 +++ |
18 |
games-simulation/flightgear/Manifest | 1 + |
19 |
.../flightgear/flightgear-2020.3.13.ebuild | 167 +++++++++++++++++++++ |
20 |
6 files changed, 259 insertions(+) |
21 |
|
22 |
diff --git a/dev-games/simgear/Manifest b/dev-games/simgear/Manifest |
23 |
index f1368969e3dd..922b810f5fd1 100644 |
24 |
--- a/dev-games/simgear/Manifest |
25 |
+++ b/dev-games/simgear/Manifest |
26 |
@@ -1 +1,2 @@ |
27 |
DIST simgear-2020.3.12.tar.bz2 1415062 BLAKE2B bed00dabb8d2ac937cb2fa7a8782c32568dc106d857dd2e9a7f3d2c99ad1372ffcd3c571b899920122e711ce1e561a9895762fb199f1cac947bb68769066b555 SHA512 2292c5c43b485fdf4b814b25eae8caa2ed16e043a159328aa5e35a27f9a4fd250219e8b506da1361916bd1d314bb857d3bd1343b1b6b34890bf06c63705c8dbc |
28 |
+DIST simgear-2020.3.13.tar.bz2 1415729 BLAKE2B ed8a5daddba84811318ed92acd6a998785c4159b7e9bf39245e3fc0863e75ae8475283e123c7b185cae8d1113b1fc860758f347f3e19c2749322b280445a2a9f SHA512 1128c6026cebc902f1d411a6013b3d406664ebae5b209248d15c55895823715066d18ca442af2642577d69c6f68d6d02daf64ebbc9bfe43142aae30b9ce1ae62 |
29 |
|
30 |
diff --git a/dev-games/simgear/simgear-2020.3.13.ebuild b/dev-games/simgear/simgear-2020.3.13.ebuild |
31 |
new file mode 100644 |
32 |
index 000000000000..03d49387c0ed |
33 |
--- /dev/null |
34 |
+++ b/dev-games/simgear/simgear-2020.3.13.ebuild |
35 |
@@ -0,0 +1,68 @@ |
36 |
+# Copyright 1999-2021 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=7 |
40 |
+ |
41 |
+inherit cmake toolchain-funcs |
42 |
+ |
43 |
+DESCRIPTION="Development library for simulation games" |
44 |
+HOMEPAGE="https://www.flightgear.org/" |
45 |
+SRC_URI="mirror://sourceforge/flightgear/${P}.tar.bz2" |
46 |
+ |
47 |
+LICENSE="GPL-2" |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+SLOT="0" |
50 |
+IUSE="cpu_flags_x86_sse2 +dns debug gdal openmp subversion test" |
51 |
+RESTRICT="!test? ( test )" |
52 |
+ |
53 |
+# TODO aeonwave |
54 |
+COMMON_DEPEND=" |
55 |
+ app-arch/xz-utils |
56 |
+ dev-libs/expat |
57 |
+ dev-games/openscenegraph |
58 |
+ media-libs/openal |
59 |
+ net-misc/curl |
60 |
+ sys-libs/zlib |
61 |
+ virtual/opengl |
62 |
+ dns? ( net-libs/udns ) |
63 |
+ gdal? ( sci-libs/gdal ) |
64 |
+" |
65 |
+DEPEND="${COMMON_DEPEND} |
66 |
+ >=dev-libs/boost-1.44 |
67 |
+" |
68 |
+RDEPEND="${COMMON_DEPEND} |
69 |
+ subversion? ( dev-vcs/subversion ) |
70 |
+" |
71 |
+ |
72 |
+PATCHES=( |
73 |
+ "${FILESDIR}/${PN}-2019.1.1-gdal3.patch" |
74 |
+ "${FILESDIR}/${PN}-2020.1.2-do-not-assume-libc++-clang.patch" |
75 |
+) |
76 |
+ |
77 |
+pkg_pretend() { |
78 |
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
79 |
+} |
80 |
+ |
81 |
+pkg_setup() { |
82 |
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
83 |
+} |
84 |
+ |
85 |
+src_configure() { |
86 |
+ local mycmakeargs=( |
87 |
+ -DENABLE_DNS=$(usex dns) |
88 |
+ -DENABLE_GDAL=$(usex gdal) |
89 |
+ -DENABLE_OPENMP=$(usex openmp) |
90 |
+ -DENABLE_PKGUTIL=ON |
91 |
+ -DENABLE_RTI=OFF |
92 |
+ -DENABLE_SIMD=$(usex cpu_flags_x86_sse2) |
93 |
+ -DENABLE_SOUND=ON |
94 |
+ -DENABLE_TESTS=$(usex test) |
95 |
+ -DSIMGEAR_HEADLESS=OFF |
96 |
+ -DSIMGEAR_SHARED=ON |
97 |
+ -DSYSTEM_EXPAT=ON |
98 |
+ -DSYSTEM_UDNS=ON |
99 |
+ -DUSE_AEONWAVE=OFF |
100 |
+ -DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO perhaps track it |
101 |
+ ) |
102 |
+ cmake_src_configure |
103 |
+} |
104 |
|
105 |
diff --git a/games-simulation/flightgear-data/Manifest b/games-simulation/flightgear-data/Manifest |
106 |
index dc86542310ac..55a83e4a3ae1 100644 |
107 |
--- a/games-simulation/flightgear-data/Manifest |
108 |
+++ b/games-simulation/flightgear-data/Manifest |
109 |
@@ -1 +1,2 @@ |
110 |
DIST FlightGear-2020.3.12-data.txz 1787955196 BLAKE2B 648994bb8a70416d9fbf9fbb71c91d6652db4f915ce39938ad870f6de4a745c7f6df36025726fe29d67a598f1ce64718d12b7be5b81ebb83318246cd991fac1a SHA512 7bb97c0b2ee59b300a95f331bfd12e39aaaa7d3320e33cc4e72ea3c5fae196af52e97d9ed7f6af274162ecdd00642e729d96165df5dcbcb95e2853cf7c1df463 |
111 |
+DIST FlightGear-2020.3.13-data.txz 1789344308 BLAKE2B 869ee6fd1d8eb35d6ba4650ea4c1deeafd2e3cc79516711de607c97ade754fcd2a30649f547822778d0599975a71749afa1de5285377a2039c50bea05ef3bad6 SHA512 04a37a0936a8357356147621cff7be2998665356717df13057edb1c3b369c40a389a2fe1a0a35eb5a814b2205ac828bfba2d81a7b844ec1906046a944d65defd |
112 |
|
113 |
diff --git a/games-simulation/flightgear-data/flightgear-data-2020.3.13.ebuild b/games-simulation/flightgear-data/flightgear-data-2020.3.13.ebuild |
114 |
new file mode 100644 |
115 |
index 000000000000..f6a2970e8ba8 |
116 |
--- /dev/null |
117 |
+++ b/games-simulation/flightgear-data/flightgear-data-2020.3.13.ebuild |
118 |
@@ -0,0 +1,21 @@ |
119 |
+# Copyright 1999-2021 Gentoo Authors |
120 |
+# Distributed under the terms of the GNU General Public License v2 |
121 |
+ |
122 |
+EAPI=7 |
123 |
+ |
124 |
+DESCRIPTION="FlightGear data files" |
125 |
+HOMEPAGE="https://www.flightgear.org/" |
126 |
+SRC_URI="mirror://sourceforge/flightgear/FlightGear-${PV}-data.txz" |
127 |
+ |
128 |
+LICENSE="GPL-2" |
129 |
+SLOT="0" |
130 |
+KEYWORDS="~amd64 ~x86" |
131 |
+IUSE="" |
132 |
+ |
133 |
+S=${WORKDIR}/fgdata |
134 |
+ |
135 |
+src_install() { |
136 |
+ insinto /usr/share/flightgear |
137 |
+ rm -fr .git |
138 |
+ doins -r * |
139 |
+} |
140 |
|
141 |
diff --git a/games-simulation/flightgear/Manifest b/games-simulation/flightgear/Manifest |
142 |
index 50074be20454..63e6ad1110d2 100644 |
143 |
--- a/games-simulation/flightgear/Manifest |
144 |
+++ b/games-simulation/flightgear/Manifest |
145 |
@@ -1 +1,2 @@ |
146 |
DIST flightgear-2020.3.12.tar.bz2 8929319 BLAKE2B e84b0519d69f46d5951372deed59f9b1219739710b3374d0bc0041127f8e4b7869c43b20169a9ac3a89d4e121f9da27d01c6db98e683bc3f80da6b1930e1a7c0 SHA512 91e04ae6dc5d12e799bab10b3c4321e77f8d995469453453fdff26a9858f40056dbe8c095423397fcbef307994042c377eb37532af2732674f39e5624c950e9c |
147 |
+DIST flightgear-2020.3.13.tar.bz2 8930824 BLAKE2B c859614b51d251ce4ac0b5a8a44e80602607902e0bcb00bb35d5b7c419fca9cdde70fccd3013fcced9ef42eafe21d64d91a33525afa0de41f2449d452a59ed82 SHA512 4623af52c0c1fd86ab2bf32bf95bc7be1bc4f867927b7f2ff1d453a4b6e5dbe4c4c094dd23050133e00b3d6b904f77fac396e0d093a99692d18c47823d637f7f |
148 |
|
149 |
diff --git a/games-simulation/flightgear/flightgear-2020.3.13.ebuild b/games-simulation/flightgear/flightgear-2020.3.13.ebuild |
150 |
new file mode 100644 |
151 |
index 000000000000..c052d32d8134 |
152 |
--- /dev/null |
153 |
+++ b/games-simulation/flightgear/flightgear-2020.3.13.ebuild |
154 |
@@ -0,0 +1,167 @@ |
155 |
+# Copyright 1999-2021 Gentoo Authors |
156 |
+# Distributed under the terms of the GNU General Public License v2 |
157 |
+ |
158 |
+EAPI=7 |
159 |
+ |
160 |
+inherit cmake bash-completion-r1 toolchain-funcs |
161 |
+ |
162 |
+DESCRIPTION="Open Source Flight Simulator" |
163 |
+HOMEPAGE="https://www.flightgear.org/" |
164 |
+SRC_URI="mirror://sourceforge/flightgear/${P}.tar.bz2" |
165 |
+ |
166 |
+LICENSE="GPL-2" |
167 |
+KEYWORDS="~amd64 ~x86" |
168 |
+SLOT="0" |
169 |
+IUSE="cpu_flags_x86_sse2 dbus debug examples gdal openmp qt5 +udev +utils vim-syntax" |
170 |
+ |
171 |
+# Needs --fg-root with path to flightgear-data passed to test runner passed, |
172 |
+# not really worth patching |
173 |
+RESTRICT="test" |
174 |
+ |
175 |
+# zlib is some strange auto-dep from simgear |
176 |
+COMMON_DEPEND=" |
177 |
+ dev-db/sqlite:3 |
178 |
+ dev-games/openscenegraph[jpeg,png] |
179 |
+ ~dev-games/simgear-${PV}[gdal=] |
180 |
+ media-libs/openal |
181 |
+ >=media-libs/plib-1.8.5 |
182 |
+ >=media-libs/speex-1.2.0:0 |
183 |
+ media-libs/speexdsp:0 |
184 |
+ media-sound/gsm |
185 |
+ sys-libs/zlib |
186 |
+ virtual/glu |
187 |
+ x11-libs/libX11 |
188 |
+ dbus? ( >=sys-apps/dbus-1.6.18-r1 ) |
189 |
+ gdal? ( >=sci-libs/gdal-2.0.0:0 ) |
190 |
+ qt5? ( |
191 |
+ >=dev-qt/qtcore-5.7.1:5 |
192 |
+ >=dev-qt/qtdeclarative-5.7.1:5 |
193 |
+ >=dev-qt/qtgui-5.7.1:5 |
194 |
+ >=dev-qt/qtnetwork-5.7.1:5 |
195 |
+ >=dev-qt/qtwidgets-5.7.1:5 |
196 |
+ ) |
197 |
+ udev? ( virtual/udev ) |
198 |
+ utils? ( |
199 |
+ media-libs/freeglut |
200 |
+ media-libs/freetype:2 |
201 |
+ media-libs/glew:0 |
202 |
+ media-libs/libpng:0 |
203 |
+ virtual/opengl |
204 |
+ qt5? ( >=dev-qt/qtwebsockets-5.7.1:5 ) |
205 |
+ ) |
206 |
+" |
207 |
+# libXi and libXmu are build-only-deps according to FindGLUT.cmake |
208 |
+DEPEND="${COMMON_DEPEND} |
209 |
+ >=dev-libs/boost-1.44 |
210 |
+ qt5? ( >=dev-qt/linguist-tools-5.7.1:5 ) |
211 |
+ utils? ( |
212 |
+ x11-libs/libXi |
213 |
+ x11-libs/libXmu |
214 |
+ ) |
215 |
+" |
216 |
+RDEPEND="${COMMON_DEPEND} |
217 |
+ ~games-simulation/${PN}-data-${PV} |
218 |
+" |
219 |
+ |
220 |
+PATCHES=( |
221 |
+ "${FILESDIR}/${PN}-2020.3.8-cmake.patch" |
222 |
+) |
223 |
+ |
224 |
+DOCS=(AUTHORS ChangeLog NEWS README Thanks) |
225 |
+ |
226 |
+pkg_pretend() { |
227 |
+ use openmp && tc-check-openmp |
228 |
+} |
229 |
+ |
230 |
+src_configure() { |
231 |
+ local mycmakeargs=( |
232 |
+ -DBUILD_SHARED_LIBS=OFF |
233 |
+ -DENABLE_AUTOTESTING=OFF |
234 |
+ -DENABLE_COMPOSITOR=OFF |
235 |
+ -DENABLE_FGCOM=$(usex utils) |
236 |
+ -DENABLE_FGELEV=$(usex utils) |
237 |
+ -DENABLE_FGJS=$(usex utils) |
238 |
+ -DENABLE_FGVIEWER=$(usex utils) |
239 |
+ -DENABLE_GDAL=$(usex gdal) |
240 |
+ -DENABLE_GPSSMOOTH=$(usex utils) |
241 |
+ -DENABLE_HID_INPUT=$(usex udev) |
242 |
+ -DENABLE_JS_DEMO=$(usex utils) |
243 |
+ -DENABLE_JSBSIM=ON |
244 |
+ -DENABLE_LARCSIM=ON |
245 |
+ -DENABLE_METAR=$(usex utils) |
246 |
+ -DENABLE_OPENMP=$(usex openmp) |
247 |
+ -DENABLE_PLIB_JOYSTICK=ON # NOTE look for defaults changes in CMake |
248 |
+ -DENABLE_PROFILE=OFF |
249 |
+ -DENABLE_QT=$(usex qt5) |
250 |
+ -DENABLE_RTI=OFF |
251 |
+ -DENABLE_SIMD=$(usex cpu_flags_x86_sse2) |
252 |
+ -DENABLE_STGMERGE=ON |
253 |
+ -DENABLE_SWIFT=OFF # swift pilot client not packaged yet |
254 |
+ -DENABLE_TERRASYNC=$(usex utils) |
255 |
+ -DENABLE_TRAFFIC=$(usex utils) |
256 |
+ -DENABLE_UIUC_MODEL=ON |
257 |
+ -DENABLE_YASIM=ON |
258 |
+ -DEVENT_INPUT=$(usex udev) |
259 |
+ -DFG_BUILD_TYPE=Release |
260 |
+ -DFG_DATA_DIR=/usr/share/${PN} |
261 |
+ -DJSBSIM_TERRAIN=ON |
262 |
+ -DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO also see simgear |
263 |
+ -DSP_FDMS=ON |
264 |
+ -DSYSTEM_CPPUNIT=OFF # NOTE we do not build tests anyway |
265 |
+ -DSYSTEM_FLITE=OFF |
266 |
+ -DSYSTEM_HTS_ENGINE=OFF |
267 |
+ -DSYSTEM_SPEEX=ON |
268 |
+ -DSYSTEM_GSM=ON |
269 |
+ -DSYSTEM_SQLITE=ON |
270 |
+ -DUSE_AEONWAVE=OFF |
271 |
+ -DUSE_DBUS=$(usex dbus) |
272 |
+ -DWITH_FGPANEL=$(usex utils) |
273 |
+ ) |
274 |
+ if use gdal && use utils; then |
275 |
+ mycmakeargs+=(-DENABLE_DEMCONVERT=ON) |
276 |
+ else |
277 |
+ mycmakeargs+=(-DENABLE_DEMCONVERT=OFF) |
278 |
+ fi |
279 |
+ if use qt5 && use utils; then |
280 |
+ mycmakeargs+=(-DENABLE_FGQCANVAS=ON) |
281 |
+ else |
282 |
+ mycmakeargs+=(-DENABLE_FGQCANVAS=OFF) |
283 |
+ fi |
284 |
+ |
285 |
+ cmake_src_configure |
286 |
+} |
287 |
+ |
288 |
+src_install() { |
289 |
+ cmake_src_install |
290 |
+ |
291 |
+ # Install bash completion (TODO zsh) |
292 |
+ # Uncomment below when scripts stops writing files... |
293 |
+# sed -e "s|/usr/local/share/FlightGear|${GAMES_DATADIR}/${PN}|" \ |
294 |
+# -i scripts/completion/fg-completion.bash || die 'unable to replace FG_ROOT' |
295 |
+# newbashcomp scripts/completion/fg-completion.bash ${PN} |
296 |
+ |
297 |
+ # Install examples and other misc files |
298 |
+ if use examples; then |
299 |
+ docompress -x /usr/share/doc/"${PF}"/{examples,tools} |
300 |
+ docinto examples |
301 |
+ dodoc -r scripts/java scripts/perl scripts/python |
302 |
+ docinto examples/c++ |
303 |
+ dodoc -r scripts/example/* |
304 |
+ docinto tools |
305 |
+ dodoc -r scripts/atis scripts/tools/* |
306 |
+ fi |
307 |
+ |
308 |
+ # Install nasal script syntax |
309 |
+ if use vim-syntax; then |
310 |
+ insinto /usr/share/vim/vimfiles/syntax |
311 |
+ doins scripts/syntax/{ac3d,nasal}.vim |
312 |
+ insinto /usr/share/vim/vimfiles/ftdetect/ |
313 |
+ doins "${FILESDIR}"/{ac3d,nasal}.vim |
314 |
+ fi |
315 |
+} |
316 |
+ |
317 |
+pkg_postinst() { |
318 |
+ if use qt5; then |
319 |
+ einfo "To use launcher, run fgfs with '--launcher' parameter" |
320 |
+ fi |
321 |
+} |