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