Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-util/atlas/
Date: Mon, 17 Apr 2017 07:17:14
Message-Id: 1492413417.8654aff319226a42ca2d112c42009abdcd0fb2f0.soap@gentoo
1 commit: 8654aff319226a42ca2d112c42009abdcd0fb2f0
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 17 07:16:05 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 17 07:16:57 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8654aff3
7
8 games-util/atlas: Fix -Wnarrowing failures for GCC 6
9
10 Bug: https://bugs.gentoo.org/show_bug.cgi?id=612986
11 Package-Manager: Portage-2.3.5, Repoman-2.3.2
12
13 .../atlas/atlas-0.5.1_beta_pre20160907.ebuild | 22 +++++++++++-----------
14 1 file changed, 11 insertions(+), 11 deletions(-)
15
16 diff --git a/games-util/atlas/atlas-0.5.1_beta_pre20160907.ebuild b/games-util/atlas/atlas-0.5.1_beta_pre20160907.ebuild
17 index 4599d1f6bcb..9b36eace1d2 100644
18 --- a/games-util/atlas/atlas-0.5.1_beta_pre20160907.ebuild
19 +++ b/games-util/atlas/atlas-0.5.1_beta_pre20160907.ebuild
20 @@ -3,7 +3,7 @@
21
22 EAPI=6
23
24 -inherit autotools eutils
25 +inherit autotools
26
27 MY_PN=atlas-hgcode
28 MY_PV=e183e3b3a0412b504edcb3664445b3e04fd484a2
29 @@ -20,12 +20,12 @@ IUSE=""
30
31 COMMON_DEPEND="
32 media-libs/freeglut
33 - media-libs/glew:0
34 - >=media-libs/libpng-1.5:0
35 + media-libs/glew:0=
36 + media-libs/libpng:0=
37 net-misc/curl
38 sys-libs/zlib
39 virtual/glu
40 - virtual/jpeg:*
41 + virtual/jpeg:0
42 virtual/opengl
43 "
44 DEPEND="${COMMON_DEPEND}
45 @@ -42,19 +42,20 @@ PATCHES=(
46 "${FILESDIR}/${P}-simgear-compilation.patch"
47 )
48
49 -DOCS=(AUTHORS NEWS README)
50 -
51 src_prepare() {
52 - default_src_prepare
53 + default
54 +
55 + # -Wnarrowing failure, #612986
56 + sed -i -e 's:0x:(char)0x:g' src/tiles.h || die
57 +
58 eautoreconf
59 }
60
61 src_configure() {
62 econf \
63 - --datadir=/usr/share/flightgear \
64 - --disable-dependency-tracking \
65 + --datadir="${EPREFIX}"/usr/share/flightgear \
66 --enable-simgear-shared \
67 - --with-fgbase=/usr/share/flightgear
68 + --with-fgbase="${EPREFIX}"/usr/share/flightgear
69 }
70
71 pkg_postinst() {
72 @@ -62,5 +63,4 @@ pkg_postinst() {
73 elog "Atlas --path=[path of map images] --udp=[port number]"
74 elog "and start fgfs with the following switch (or in .fgfsrc):"
75 elog "--nmea=socket,out,0.5,[host that you run Atlas on],[port number],udp"
76 - echo
77 }