1 |
commit: c392566ae167b0792b8a6ab26615886f974f4bee |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 22 06:36:31 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 22 06:45:27 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c392566a |
7 |
|
8 |
games-strategy/colobot: Bump to 0.2.0-alpha |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
games-strategy/colobot/Manifest | 1 + |
13 |
games-strategy/colobot/colobot-0.2.0_alpha.ebuild | 73 +++++++++++++++++++++++ |
14 |
2 files changed, 74 insertions(+) |
15 |
|
16 |
diff --git a/games-strategy/colobot/Manifest b/games-strategy/colobot/Manifest |
17 |
index 7d725fdff60..980ba6938fa 100644 |
18 |
--- a/games-strategy/colobot/Manifest |
19 |
+++ b/games-strategy/colobot/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST colobot-gold-0.1.12-alpha.tar.gz 1468594 BLAKE2B 2b470e8b074e4a973b751062dca2358396066d8816c2b1b5b44649b798610dccd73ab5fed4086f2aa8d4495f3de69dd8b72b45f97f23f66b18a50fc976bf25ef SHA512 63647a16b376db6544830f96e7d323c0f58003645bf636abd1cab0ffd47b39b0bef47191d584f5156b75324d75dfdfdcabe8b89be565087c37c367ca366f3cbe |
22 |
+DIST colobot-gold-0.2.0-alpha.tar.gz 1514455 BLAKE2B 9cc1480d342cfa14b12e437c41ce8e65b173cd30ca5f62e574ac17f452e6cd0622b5c2706fcfd427222cf78fce1700cb07b82fac75dd9b4a3ace4389ea3381bc SHA512 9c35ce6da319ef20ff68a9722f0b683adaa2fcada2b89bb322ba5772dfd9371adacd045ae160550780083902c024400c29e1d1f11dcb8b6547ba7d48e401c4c3 |
23 |
|
24 |
diff --git a/games-strategy/colobot/colobot-0.2.0_alpha.ebuild b/games-strategy/colobot/colobot-0.2.0_alpha.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..3897d69816c |
27 |
--- /dev/null |
28 |
+++ b/games-strategy/colobot/colobot-0.2.0_alpha.ebuild |
29 |
@@ -0,0 +1,73 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+inherit cmake xdg-utils |
36 |
+ |
37 |
+MY_P=colobot-gold-${PV/_/-} |
38 |
+DESCRIPTION="A real-time strategy game, where you can program your bots" |
39 |
+HOMEPAGE="https://colobot.info/" |
40 |
+SRC_URI="https://github.com/colobot/colobot/archive/${MY_P}.tar.gz" |
41 |
+S=${WORKDIR}/${PN}-${MY_P} |
42 |
+ |
43 |
+LICENSE="GPL-3+" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64" |
46 |
+IUSE="devbuild doc +openal test tools" |
47 |
+RESTRICT="!test? ( test )" |
48 |
+ |
49 |
+# perl for pod2man |
50 |
+BDEPEND=" |
51 |
+ app-text/po4a |
52 |
+ dev-lang/perl |
53 |
+ sys-devel/gettext" |
54 |
+DEPEND=" |
55 |
+ dev-games/physfs |
56 |
+ dev-libs/boost:= |
57 |
+ media-libs/glew:0 |
58 |
+ media-libs/libogg |
59 |
+ media-libs/libpng:0= |
60 |
+ media-libs/libsdl2:= |
61 |
+ media-libs/libsndfile:= |
62 |
+ media-libs/libvorbis:= |
63 |
+ media-libs/sdl2-image |
64 |
+ media-libs/sdl2-ttf |
65 |
+ media-sound/vorbis-tools |
66 |
+ openal? ( media-libs/openal )" |
67 |
+RDEPEND="${DEPEND} |
68 |
+ ~games-strategy/colobot-data-${PV}" |
69 |
+ |
70 |
+PATCHES=( |
71 |
+ # https://github.com/colobot/colobot/pull/1453 |
72 |
+ "${FILESDIR}"/colobot-0.1.12-sndfile-link.patch |
73 |
+) |
74 |
+ |
75 |
+src_prepare() { |
76 |
+ cmake_src_prepare |
77 |
+ |
78 |
+ # we need to call it explicitly to help Ninja figure out the deps |
79 |
+ cd desktop || die |
80 |
+ po4a po4a.cfg || die |
81 |
+} |
82 |
+ |
83 |
+src_configure() { |
84 |
+ local mycmakeargs=( |
85 |
+ -DDEV_BUILD=$(usex devbuild) |
86 |
+ -DTESTS=$(usex test) |
87 |
+ -DTOOLS=$(usex tools) |
88 |
+ -DINSTALL_DOCS=$(usex doc) |
89 |
+ -DOPENAL_SOUND=$(usex openal) |
90 |
+ -DCOLOBOT_INSTALL_BIN_DIR="${EPREFIX}"/usr/bin |
91 |
+ -DCOLOBOT_INSTALL_LIB_DIR="${EPREFIX}"/usr/$(get_libdir) |
92 |
+ ) |
93 |
+ cmake_src_configure |
94 |
+} |
95 |
+ |
96 |
+pkg_postinst() { |
97 |
+ xdg_icon_cache_update |
98 |
+} |
99 |
+ |
100 |
+pkg_postrm() { |
101 |
+ xdg_icon_cache_update |
102 |
+} |