Gentoo Archives: gentoo-commits

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