Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/endless-sky/, games-strategy/endless-sky/files/
Date: Fri, 07 Jan 2022 00:04:09
Message-Id: 1641513703.466dd3ad91db9f2259c687f52f87835e45e191b9.sam@gentoo
1 commit: 466dd3ad91db9f2259c687f52f87835e45e191b9
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 6 23:59:40 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 7 00:01:43 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=466dd3ad
7
8 games-strategy/endless-sky: don't compress man page; use system catch2
9
10 - Don't compress man page
11 - Use system copy of Catch 2 for tests (works w/ glibc-2.34 now, didn't
12 notice earlier b/c tested on a stable box); still not running tests yet,
13 need to resolve linking issue.
14 - Respect AR
15
16 Signed-off-by: Sam James <sam <AT> gentoo.org>
17
18 games-strategy/endless-sky/endless-sky-0.9.14.ebuild | 9 +++++++--
19 .../endless-sky-0.9.14-dont-compress-man-page.patch | 20 ++++++++++++++++++++
20 .../files/endless-sky-0.9.14-use-system-catch2.patch | 14 ++++++++++++++
21 3 files changed, 41 insertions(+), 2 deletions(-)
22
23 diff --git a/games-strategy/endless-sky/endless-sky-0.9.14.ebuild b/games-strategy/endless-sky/endless-sky-0.9.14.ebuild
24 index f0f7509aa8a8..0a6641ac67ee 100644
25 --- a/games-strategy/endless-sky/endless-sky-0.9.14.ebuild
26 +++ b/games-strategy/endless-sky/endless-sky-0.9.14.ebuild
27 @@ -13,6 +13,8 @@ SRC_URI="https://github.com/endless-sky/endless-sky/archive/v${PV}.tar.gz -> ${P
28 LICENSE="CC-BY-SA-4.0 CC-BY-SA-3.0 GPL-3+ public-domain"
29 SLOT="0"
30 KEYWORDS="~amd64 ~x86"
31 +IUSE="test"
32 +RESTRICT="!test? ( test )"
33
34 # Needs work; doesn't link against SDL 2
35 RESTRICT="test"
36 @@ -24,15 +26,18 @@ RDEPEND="media-libs/glew:0=
37 media-libs/libpng:=
38 media-libs/openal
39 virtual/opengl"
40 -DEPEND="${RDEPEND}"
41 +DEPEND="${RDEPEND}
42 + test? ( dev-cpp/catch:0 )"
43
44 PATCHES=(
45 "${FILESDIR}"/${PN}-0.9.14-respect-cflags.patch
46 "${FILESDIR}"/${PN}-0.9.14-no-games-path.patch
47 + "${FILESDIR}"/${PN}-0.9.14-dont-compress-man-page.patch
48 + "${FILESDIR}"/${PN}-0.9.14-use-system-catch2.patch
49 )
50
51 src_compile() {
52 - tc-export CXX
53 + tc-export AR CXX
54
55 escons
56 }
57
58 diff --git a/games-strategy/endless-sky/files/endless-sky-0.9.14-dont-compress-man-page.patch b/games-strategy/endless-sky/files/endless-sky-0.9.14-dont-compress-man-page.patch
59 new file mode 100644
60 index 000000000000..d3836c088f31
61 --- /dev/null
62 +++ b/games-strategy/endless-sky/files/endless-sky-0.9.14-dont-compress-man-page.patch
63 @@ -0,0 +1,20 @@
64 +From 07f273e6f72a01158934158c3e8ff84c530367c9 Mon Sep 17 00:00:00 2001
65 +From: Sam James <sam@g.o>
66 +Date: Thu, 6 Jan 2022 23:57:32 +0000
67 +Subject: [PATCH 2/2] Don't compress man page
68 +
69 +--- a/SConstruct
70 ++++ b/SConstruct
71 +@@ -176,10 +176,9 @@ if env.get("PREFIX").startswith("/usr/"):
72 + "gtk-update-icon-cache -t $DESTDIR$PREFIX/share/icons/hicolor/")
73 +
74 + # Install the man page.
75 +-env.Command(
76 ++env.Install(
77 + "$DESTDIR$PREFIX/share/man/man6/endless-sky.6.gz",
78 +- "endless-sky.6",
79 +- "gzip -c $SOURCE > $TARGET")
80 ++ "endless-sky.6")
81 +
82 + # Install the data files.
83 + def RecursiveInstall(env, target, source):
84
85 diff --git a/games-strategy/endless-sky/files/endless-sky-0.9.14-use-system-catch2.patch b/games-strategy/endless-sky/files/endless-sky-0.9.14-use-system-catch2.patch
86 new file mode 100644
87 index 000000000000..9b38e28a60fe
88 --- /dev/null
89 +++ b/games-strategy/endless-sky/files/endless-sky-0.9.14-use-system-catch2.patch
90 @@ -0,0 +1,14 @@
91 +From e8119dcdcb42479896a35cec5dc85c17c1901b2e Mon Sep 17 00:00:00 2001
92 +From: Sam James <sam@g.o>
93 +Date: Thu, 6 Jan 2022 23:56:59 +0000
94 +Subject: [PATCH 1/2] Use system copy of catch2
95 +
96 +In particular, we get glibc-2.34 fixes for free then.
97 +--- a/tests/include/es-test.hpp
98 ++++ b/tests/include/es-test.hpp
99 +@@ -23,4 +23,4 @@ PARTICULAR PURPOSE. See the GNU General Public License for more details.
100 + // #define CATCH_CONFIG_WINDOWS_CRTDBG
101 + #endif
102 +
103 +-#include "catch.hpp"
104 ++#include <catch2/catch.hpp>