1 |
commit: 1c6479db3764a14009a04ae1cfd29d3e50e667b6 |
2 |
Author: Adam Feldman <NP-Hardass <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 1 15:29:05 2021 +0000 |
4 |
Commit: Adam Feldman <np-hardass <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 1 16:02:03 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c6479db |
7 |
|
8 |
games-strategy/freeorion: Add snapshot that fixes build errors |
9 |
|
10 |
Backporting was too complicated, so I added a snapshot |
11 |
|
12 |
Bug: https://bugs.gentoo.org/739378 |
13 |
Bug: https://bugs.gentoo.org/795771 |
14 |
Bug: https://bugs.gentoo.org/796683 |
15 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
16 |
Signed-off-by: Adam Feldman <NP-Hardass <AT> gentoo.org> |
17 |
|
18 |
games-strategy/freeorion/Manifest | 1 + |
19 |
.../freeorion/freeorion-0.4.10.1_p20200629.ebuild | 77 ++++++++++++++++++++++ |
20 |
2 files changed, 78 insertions(+) |
21 |
|
22 |
diff --git a/games-strategy/freeorion/Manifest b/games-strategy/freeorion/Manifest |
23 |
index 4f0f36b38b3..649be95583b 100644 |
24 |
--- a/games-strategy/freeorion/Manifest |
25 |
+++ b/games-strategy/freeorion/Manifest |
26 |
@@ -1 +1,2 @@ |
27 |
DIST freeorion-0.4.10.1.tar.gz 124693099 BLAKE2B d24c481e7be6f718897bb095209673f24cb7d43842f148cf1e8665254970d22449bf7a4ee4ba7a8cb3b5b515d6bed38a24e2862810959a63b29ba9d3c054e6c4 SHA512 b28a8bdc2428778480ff8404ad7d84153939f4f8b4a75f51775354e3e563f7f309d479e499ea1be8b57822d725cc57ece8dd14f2e40360ab6c07d70c917bc256 |
28 |
+DIST freeorion-0.4.10.1_p20200629.tar.gz 142041599 BLAKE2B a9c14409f31f5ad4d8db95fa33e8f1adb35f7b2a74ea7f173365c7d09979b9a3aa7981ee9deec0427c64844da14ecc323ee54e3331217e2978b49eb86a7a18fb SHA512 b2d4f52e968852569d549c03eca2545b7adac560e5716a21da612dc363b23d790c4481fbd5762f1f1f8da9a8e04894e247ce19363cd96cc2001728912e027d9a |
29 |
|
30 |
diff --git a/games-strategy/freeorion/freeorion-0.4.10.1_p20200629.ebuild b/games-strategy/freeorion/freeorion-0.4.10.1_p20200629.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..62d5f6b9836 |
33 |
--- /dev/null |
34 |
+++ b/games-strategy/freeorion/freeorion-0.4.10.1_p20200629.ebuild |
35 |
@@ -0,0 +1,77 @@ |
36 |
+# Copyright 1999-2021 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=7 |
40 |
+ |
41 |
+PYTHON_COMPAT=( python{3_7,3_8,3_9} ) |
42 |
+inherit cmake python-single-r1 xdg |
43 |
+ |
44 |
+DESCRIPTION="A free turn-based space empire and galactic conquest game" |
45 |
+HOMEPAGE="https://www.freeorion.org" |
46 |
+ |
47 |
+if [[ ${PV} == 9999 ]]; then |
48 |
+ inherit git-r3 |
49 |
+ EGIT_REPO_URI="https://github.com/freeorion/freeorion.git" |
50 |
+else |
51 |
+ KEYWORDS="~amd64" |
52 |
+ if [[ ${PV} = *_p* ]]; then |
53 |
+ COMMIT="24a08d6c597ce8afc90ccec485a937982b6c3683" |
54 |
+ SRC_URI="https://github.com/${PN}/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
55 |
+ S="${WORKDIR}/${PN}-${COMMIT}" |
56 |
+ else |
57 |
+ SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz" |
58 |
+ S="${WORKDIR}/${PN}-${PV/_/-}" |
59 |
+ fi |
60 |
+fi |
61 |
+ |
62 |
+LICENSE="GPL-2 LGPL-2.1 CC-BY-SA-3.0" |
63 |
+SLOT="0" |
64 |
+IUSE="dedicated" |
65 |
+ |
66 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
67 |
+ |
68 |
+BDEPEND=" |
69 |
+ virtual/pkgconfig |
70 |
+" |
71 |
+RDEPEND=" |
72 |
+ $(python_gen_cond_dep ' |
73 |
+ >=dev-libs/boost-1.58:=[nls,python,threads(+),${PYTHON_MULTI_USEDEP}] |
74 |
+ ') |
75 |
+ !dedicated? ( |
76 |
+ media-libs/freealut |
77 |
+ >=media-libs/freetype-2.5.5 |
78 |
+ media-libs/glew:= |
79 |
+ >=media-libs/libogg-1.1.3 |
80 |
+ media-libs/libpng:0= |
81 |
+ media-libs/libsdl2[X,opengl,video] |
82 |
+ >=media-libs/libvorbis-1.1.2 |
83 |
+ media-libs/openal |
84 |
+ sci-physics/bullet:= |
85 |
+ virtual/opengl |
86 |
+ ) |
87 |
+ sys-libs/zlib |
88 |
+ ${PYTHON_DEPS} |
89 |
+" |
90 |
+DEPEND="${RDEPEND}" |
91 |
+ |
92 |
+src_prepare() { |
93 |
+ sed -e "s/-O3//" -i CMakeLists.txt || die |
94 |
+ |
95 |
+ cmake_src_prepare |
96 |
+} |
97 |
+ |
98 |
+src_configure() { |
99 |
+ local mycmakeargs=( |
100 |
+ -DCMAKE_BUILD_TYPE=Release |
101 |
+ -DCMAKE_SKIP_RPATH=ON |
102 |
+ -DBUILD_HEADLESS="$(usex dedicated)" |
103 |
+ ) |
104 |
+ |
105 |
+ cmake_src_configure |
106 |
+} |
107 |
+ |
108 |
+src_install() { |
109 |
+ cmake_src_install |
110 |
+ |
111 |
+ newenvd "${FILESDIR}/${PN}.envd" 99${PN} |
112 |
+} |