Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/wargus/
Date: Fri, 29 Jul 2022 18:02:47
Message-Id: 1659117755.b5462d7f8693e42615d7a02824fe1c8b151052cc.mgorny@gentoo
1 commit: b5462d7f8693e42615d7a02824fe1c8b151052cc
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 29 16:08:33 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 29 18:02:35 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5462d7f
7
8 games-strategy/wargus: Bump to 3.3.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 games-strategy/wargus/Manifest | 1 +
13 games-strategy/wargus/wargus-3.3.0.ebuild | 81 +++++++++++++++++++++++++++++++
14 2 files changed, 82 insertions(+)
15
16 diff --git a/games-strategy/wargus/Manifest b/games-strategy/wargus/Manifest
17 index 3eabf6a8f07a..4ba61d64d047 100644
18 --- a/games-strategy/wargus/Manifest
19 +++ b/games-strategy/wargus/Manifest
20 @@ -4,3 +4,4 @@ DIST wargus-3.1.0.tar.gz 4977868 BLAKE2B 063d47f53b58360c3ccc1aea301f4731a0108a5
21 DIST wargus-3.1.1.tar.gz 4982124 BLAKE2B 1dd583c46f841c03d0e859e3c79da72da5866c5f6c67d1e23bf186935f2ae8d539e6dec36bb7c41b6f74af3a4f93c308489c802890c982a13aa68ba2cfbc4626 SHA512 8ec6a3dd11db9cb5984c9d61882beac0851f744203f9d90f23783b8a6b7f2728a180d7354c2e85d7ec8105c731a3e6996f5a688ce6bf5fa9437040c09cea6a59
22 DIST wargus-3.1.2.tar.gz 4981468 BLAKE2B 76e925a6cd469a583adffe67f53a407f919b93c6700aeaa182db05b07691d64e6040d6f9f80461b14b81b412882bb58b976253b382d9e4aced7d1429c28832d2 SHA512 6925eab28b63222c4957b40c7b9a57ca231a18a7b36509c90f72d563a43a2ac4bd82bda3ca02e68099045fcddf10dd36c5a93c6f114f7bdcfb67afa7c7471b1e
23 DIST wargus-3.2.0.tar.gz 5062175 BLAKE2B e742c2dae21aa5a8a05ef8a4cefc7d1245707d401aa9e14dfc633aeac0e4e4e54459c0ce07cbd32aed842c3dcf57ea8df39fcfc34a9316211146a61ce71464dc SHA512 bc85304c0994abf778cf157d1013d9dea18e1d761a3b432018641211824bcdb2e424c938842848d8c7a670d8660289b5860342a99be7af259cf8eaf883af1285
24 +DIST wargus-3.3.0.tar.gz 5094634 BLAKE2B aa0b02d62dc8620ba9517e5c7d1e8193f2c4c0e20b9b96b91cd5aa57fefdfda7354c82d67507aea67704adc7c77d90b858f0f3fb78d2a1bf430b5c4c5251f432 SHA512 3a2bd04aed0ced18a11ab925ca3d4da98f8848b45a0716fe5164ee5e0f9c76a63d7783d9ba94f3de022622e841f0257cb59d507ea772b2cc42419cef01ea8cbc
25
26 diff --git a/games-strategy/wargus/wargus-3.3.0.ebuild b/games-strategy/wargus/wargus-3.3.0.ebuild
27 new file mode 100644
28 index 000000000000..fff6023fa177
29 --- /dev/null
30 +++ b/games-strategy/wargus/wargus-3.3.0.ebuild
31 @@ -0,0 +1,81 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +inherit cmake xdg-utils
38 +
39 +DESCRIPTION="Warcraft II for the Stratagus game engine"
40 +HOMEPAGE="
41 + https://stratagus.com/
42 + https://github.com/Wargus/wargus/
43 +"
44 +SRC_URI="
45 + https://github.com/Wargus/wargus/archive/v${PV}.tar.gz
46 + -> ${P}.tar.gz
47 +"
48 +
49 +LICENSE="GPL-2"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~x86"
52 +IUSE="+bne"
53 +
54 +DEPEND="
55 + =games-engines/stratagus-${PV}*[theora]
56 + media-libs/libpng:0=
57 + sys-libs/zlib:=
58 + x11-libs/gtk+:2
59 + x11-libs/libX11
60 + bne? ( app-arch/stormlib:= )
61 + !games-strategy/wargus-data
62 +"
63 +RDEPEND="
64 + ${DEPEND}
65 +"
66 +BDEPEND="
67 + virtual/pkgconfig
68 +"
69 +
70 +pkg_pretend() {
71 + if has_version games-strategy/wargus-data; then
72 + ewarn "The system-wide install of game data via games-strategy/wargus-data"
73 + ewarn "no longer works. The old data will be uninstalled after merging"
74 + ewarn "this version of Wargus. If you would like to preserve it, please"
75 + ewarn "abort the process and back /usr/share/stratagus/wargus up."
76 + fi
77 +}
78 +
79 +src_configure() {
80 + local mycmakeargs=(
81 + -DGAMEDIR="${EPREFIX}/usr/bin"
82 + -DBINDIR="${EPREFIX}/usr/bin"
83 + -DSTRATAGUS="${EPREFIX}/usr/bin/stratagus"
84 + -DSHAREDIR="${EPREFIX}/usr/share/stratagus/wargus"
85 + -DICONDIR=/usr/share/icons/hicolor/64x64/apps
86 + -DWITH_STORMLIB=$(usex bne)
87 + )
88 + cmake_src_configure
89 +}
90 +
91 +pkg_postinst() {
92 + elog "Wargus requires the data from the original game to run. The game"
93 + elog "will ask you for the location of the game data and extract/convert"
94 + elog "it automatically on the first run."
95 +
96 + if ! has_version media-video/ffmpeg ||
97 + ! has_version media-sound/cdparanoia
98 + then
99 + elog
100 + elog "If you did not convert the game data yet, you may want to install"
101 + elog "the following optional dependencies:"
102 + elog
103 + elog "media-video/ffmpeg -- to convert game videos"
104 + elog "media-sound/cdparanoia -- to rip game music from the CD"
105 + fi
106 +
107 + xdg_icon_cache_update
108 +}
109 +
110 +pkg_postrm() {
111 + xdg_icon_cache_update
112 +}