1 |
commit: bd396b3e147e1065c19583747f822afc0ad5058b |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 29 18:07:12 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 29 18:07:38 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd396b3e |
7 |
|
8 |
games-simulation/flightgear: Bump to version 2016.4.4 |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
games-simulation/flightgear/Manifest | 1 + |
13 |
.../flightgear/flightgear-2016.4.4.ebuild | 133 +++++++++++++++++++++ |
14 |
2 files changed, 134 insertions(+) |
15 |
|
16 |
diff --git a/games-simulation/flightgear/Manifest b/games-simulation/flightgear/Manifest |
17 |
index b2a325c..e9b16b9 100644 |
18 |
--- a/games-simulation/flightgear/Manifest |
19 |
+++ b/games-simulation/flightgear/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST flightgear-2016.3.1.tar.bz2 7542098 SHA256 501d2f59b8f9d221332044346bbbfe195e42d0195945f8bb0fec8b474bc79c31 SHA512 57246144d954e36e330fe5da15ff5c86f810cbd0b09638c2df813a242677eca22e00a9432f6091da6731972699657fee525310f5bcc91cf8dc5e2250c8663e8a WHIRLPOOL f9c4809fe5d2981b366a3b2c3d47788843a8abd0bacee37eb8c15dafcfd2c3b855c760065c8f0274c10f96faa84632536a68641e6f80a047409ec944a4b4dd24 |
22 |
DIST flightgear-2016.4.3.tar.bz2 7559919 SHA256 35a9c439265e4a9caf794458bb42917d93280b2e561cc7b9a02aaba1226d2822 SHA512 4a7bb2322b49a6585671c5f0c52a7206002ada82ec7255536be338e21167d7a28be54a52b5c6b3f5ee8037b18e5626513e6fbc805b4ada49c6ef227c88a81d46 WHIRLPOOL 3e0e9d478af5a978badaaa325837ccf269a05b00994f90a2c1d43c0466e85b3d69a7b8b7dd6a1a1d18070a76c1e0f74879ecaf51bc52530b30b1afa33b42b259 |
23 |
+DIST flightgear-2016.4.4.tar.bz2 7560911 SHA256 d51992cbe40f1812f9821ab27b838d52e04c10551772d57fc2e815f4444dfafc SHA512 3f3d5a72adea9cb9a22b7b355a18492c1c58634e6203d6ae364d7a89f1af0fcc3df446c72c3c83ac9a1f51e05a6cd83c7d7af5f7bc3a5e8e75e3b80f709394a0 WHIRLPOOL 0a3fc48c5ec440cdcc7f2a99b860c51310fd9f256e5577458ccd9fa5202c26751b982918752326c68b5c6d9554eb902c4789df4a6221752870d3eaf263756226 |
24 |
DIST flightgear-3.4.0.tar.bz2 7522457 SHA256 b5645d05b50728a89f091292bc557f440d8f8719dd9cebf7f5bf3fa8ea795780 SHA512 10626d00b34255753dc5a5c82076909c296219472faf51c38460cc357ac014b40bd127454f28b2d857f1a1a299716430fd8f04dc7881552b3c24dee6eb616b1e WHIRLPOOL 636ca7e012175141bc4b081cb6137e5348d49b873d241c5d0f1ed0a2581b32d2f23f4fe0ed97d5a1b72440afd14687e5de4e6ebeeaf07b4e854b0ca47875b82f |
25 |
|
26 |
diff --git a/games-simulation/flightgear/flightgear-2016.4.4.ebuild b/games-simulation/flightgear/flightgear-2016.4.4.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000..14ee221 |
29 |
--- /dev/null |
30 |
+++ b/games-simulation/flightgear/flightgear-2016.4.4.ebuild |
31 |
@@ -0,0 +1,133 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+inherit cmake-utils bash-completion-r1 |
39 |
+ |
40 |
+DESCRIPTION="Open Source Flight Simulator" |
41 |
+HOMEPAGE="http://www.flightgear.org/" |
42 |
+SRC_URI="mirror://sourceforge/flightgear/${P}.tar.bz2" |
43 |
+ |
44 |
+LICENSE="GPL-2" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~ppc ~x86" |
47 |
+IUSE="dbus debug examples qt5 test +udev +utils vim-syntax" |
48 |
+ |
49 |
+COMMON_DEPEND=" |
50 |
+ dev-db/sqlite:3 |
51 |
+ >=dev-games/openscenegraph-3.2.0[png] |
52 |
+ ~dev-games/simgear-${PV} |
53 |
+ media-libs/openal |
54 |
+ media-libs/speex |
55 |
+ media-sound/gsm |
56 |
+ sys-libs/zlib |
57 |
+ x11-libs/libX11 |
58 |
+ dbus? ( >=sys-apps/dbus-1.6.18-r1 ) |
59 |
+ qt5? ( |
60 |
+ >=dev-qt/qtcore-5.4.1:5 |
61 |
+ >=dev-qt/qtgui-5.4.1:5 |
62 |
+ >=dev-qt/qtwidgets-5.4.1:5 |
63 |
+ ) |
64 |
+ udev? ( virtual/udev ) |
65 |
+ utils? ( |
66 |
+ media-libs/freeglut |
67 |
+ media-libs/libpng:0 |
68 |
+ virtual/opengl |
69 |
+ ) |
70 |
+" |
71 |
+DEPEND="${COMMON_DEPEND} |
72 |
+ >=dev-libs/boost-1.44 |
73 |
+ >=media-libs/plib-1.8.5 |
74 |
+" |
75 |
+RDEPEND="${COMMON_DEPEND} |
76 |
+ ~games-simulation/${PN}-data-${PV} |
77 |
+" |
78 |
+ |
79 |
+DOCS=(AUTHORS ChangeLog NEWS README Thanks) |
80 |
+ |
81 |
+src_configure() { |
82 |
+ local mycmakeargs=( |
83 |
+ -DENABLE_FGCOM=$(usex utils) |
84 |
+ -DENABLE_FGELEV=$(usex utils) |
85 |
+ -DENABLE_FGJS=$(usex utils) |
86 |
+ -DENABLE_FGVIEWER=$(usex utils) |
87 |
+ -DENABLE_FLITE=OFF |
88 |
+ -DENABLE_GPSSMOOTH=$(usex utils) |
89 |
+ -DENABLE_JS_DEMO=$(usex utils) |
90 |
+ -DENABLE_JSBSIM=ON |
91 |
+ -DENABLE_LARCSIM=ON |
92 |
+ -DENABLE_LOGGING=$(usex test) |
93 |
+ -DENABLE_METAR=$(usex utils) |
94 |
+ -DENABLE_PROFILE=OFF |
95 |
+ -DENABLE_QT=$(usex qt5) |
96 |
+ -DENABLE_RTI=OFF |
97 |
+ -DENABLE_TERRASYNC=$(usex utils) |
98 |
+ -DENABLE_TESTS=$(usex test) |
99 |
+ -DENABLE_UIUC_MODEL=ON |
100 |
+ -DENABLE_YASIM=ON |
101 |
+ -DEVENT_INPUT=$(usex udev) |
102 |
+ -DFG_DATA_DIR=/usr/share/${PN} |
103 |
+ -DJSBSIM_TERRAIN=ON |
104 |
+ -DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO also see simgear |
105 |
+ -DSIMGEAR_SHARED=ON |
106 |
+ -DSP_FDMS=ON |
107 |
+ -DSYSTEM_FLITE=ON |
108 |
+ -DSYSTEM_HTS_ENGINE=ON |
109 |
+ -DSYSTEM_SPEEX=ON |
110 |
+ -DSYSTEM_GSM=ON |
111 |
+ -DSYSTEM_SQLITE=ON |
112 |
+ -DUSE_AEONWAVE=OFF |
113 |
+ -DUSE_DBUS=$(usex dbus) |
114 |
+ -DWITH_FGPANEL=$(usex utils) |
115 |
+ ) |
116 |
+ |
117 |
+ cmake-utils_src_configure |
118 |
+} |
119 |
+ |
120 |
+src_install() { |
121 |
+ cmake-utils_src_install |
122 |
+ |
123 |
+ # Install icons and menu entry |
124 |
+ local s |
125 |
+ for s in 16 22 24 32 48 64 128; do |
126 |
+ doicon -s ${s} icons/${s}x${s}/apps/${PN}.png |
127 |
+ use utils && doicon -s ${s} icons/${s}x${s}/apps/fgcom.png |
128 |
+ done |
129 |
+ doicon -s scalable icons/scalable/${PN}.svg |
130 |
+ use utils && doicon -s scalable icons/scalable/fgcom.svg |
131 |
+ |
132 |
+ newmenu package/${PN}.desktop ${PN}.desktop |
133 |
+ |
134 |
+ # Install bash completion (TODO zsh) |
135 |
+ # Uncomment below when scripts stops writing files... |
136 |
+# sed -e "s|/usr/local/share/FlightGear|${GAMES_DATADIR}/${PN}|" \ |
137 |
+# -i scripts/completion/fg-completion.bash || die 'unable to replace FG_ROOT' |
138 |
+# newbashcomp scripts/completion/fg-completion.bash ${PN} |
139 |
+ |
140 |
+ # Install examples and other misc files |
141 |
+ if use examples; then |
142 |
+ insinto /usr/share/doc/"${PF}"/examples |
143 |
+ doins -r scripts/java scripts/perl scripts/python |
144 |
+ insinto /usr/share/doc/"${PF}"/examples/c++ |
145 |
+ doins -r scripts/example/* |
146 |
+ insinto /usr/share/doc/"${PF}"/tools |
147 |
+ doins -r scripts/atis scripts/tools/* |
148 |
+ fi |
149 |
+ |
150 |
+ # Install nasal script syntax |
151 |
+ if use vim-syntax; then |
152 |
+ insinto /usr/share/vim/vimfiles/syntax |
153 |
+ doins scripts/syntax/{ac3d,nasal}.vim |
154 |
+ insinto /usr/share/vim/vimfiles/ftdetect/ |
155 |
+ doins "${FILESDIR}"/{ac3d,nasal}.vim |
156 |
+ fi |
157 |
+} |
158 |
+ |
159 |
+pkg_postinst() { |
160 |
+ einfo "Please note that data files location changed to /usr/share/flightgear" |
161 |
+ if use qt5; then |
162 |
+ einfo "To use launcher, run fgfs with '--launcher' parameter" |
163 |
+ fi |
164 |
+} |