Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-action/abuse/
Date: Sun, 17 Feb 2019 09:52:18
Message-Id: 1550397056.520ab86b4ee56ea2e3733d5d847e113b96892759.chewi@gentoo
1 commit: 520ab86b4ee56ea2e3733d5d847e113b96892759
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 17 09:50:56 2019 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 17 09:50:56 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=520ab86b
7
8 games-action/abuse: Version bump to 0.9_p20181213 from new SDL2 fork
9
10 OpenGL support is now handled solely by SDL.
11
12 Package-Manager: Portage-2.3.60, Repoman-2.3.12
13 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
14
15 games-action/abuse/Manifest | 1 +
16 games-action/abuse/abuse-0.9_p20181213.ebuild | 48 +++++++++++++++++++++++++++
17 2 files changed, 49 insertions(+)
18
19 diff --git a/games-action/abuse/Manifest b/games-action/abuse/Manifest
20 index d229ba0e09d..411e98d2994 100644
21 --- a/games-action/abuse/Manifest
22 +++ b/games-action/abuse/Manifest
23 @@ -1 +1,2 @@
24 DIST abuse-0.8.tar.gz 6053500 BLAKE2B 4f52256b7bf13e0efa77ef50147a976fdf1fceec4ce20fb4b855a9961a7c816cf08bf51286b424da42072956a137bc3385357cfdb61bf37ff9f907284d99e09c SHA512 5c60dcf6910f9f751da26e919cd289c12349bb82eb925f9a41dc921263ece0d0f5f24c2ab2d1c718c0a5d0315453f92dfcba665fe5082eb4135ed737d2859d18
25 +DIST abuse-0.9_p20181213.tar.gz 4668746 BLAKE2B 5834d9a3a3172ec6364adf4ffc4196e76b2f104a77d7c5eb94f72cb00e326a66b56bf66083ab8fd566d1bc97b7f8ac6ac1edb4ad60605526761487a45a4136ac SHA512 4a7bdd67880a86a686f896d42b9a7f0c3a6e8a9e8891e514ebb68634b6b31641f5ade91da0f0bd4e6da7081b67c3bf944246ec3538a547e5ee68b4d8f4cebbeb
26
27 diff --git a/games-action/abuse/abuse-0.9_p20181213.ebuild b/games-action/abuse/abuse-0.9_p20181213.ebuild
28 new file mode 100644
29 index 00000000000..5feb6d8953b
30 --- /dev/null
31 +++ b/games-action/abuse/abuse-0.9_p20181213.ebuild
32 @@ -0,0 +1,48 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit cmake-utils desktop xdg-utils
39 +
40 +COMMIT="42b6acd19af00689e8f34355e3b13323d8ea3f79"
41 +DATA_PV="0.8"
42 +
43 +DESCRIPTION="Port of Abuse by Crack Dot Com"
44 +HOMEPAGE="https://github.com/Xenoveritas/abuse"
45 +SRC_URI="https://github.com/Xenoveritas/abuse/archive/${COMMIT}.tar.gz -> ${P}.tar.gz
46 + http://abuse.zoy.org/raw-attachment/wiki/download/${PN}-${DATA_PV}.tar.gz"
47 +
48 +LICENSE="GPL-2 public-domain WTFPL-2"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~x86"
51 +
52 +DEPEND=">=media-libs/libsdl2-2.0.3[sound,video]
53 + media-libs/sdl2-mixer"
54 +
55 +RDEPEND="${DEPEND}"
56 +
57 +S="${WORKDIR}/${PN}-${COMMIT}"
58 +
59 +src_prepare() {
60 + ln -snf ../../${PN}-${DATA_PV}/data/{music,sfx} data/ || die
61 + cmake-utils_src_prepare
62 +}
63 +
64 +src_configure() {
65 + # https://github.com/Xenoveritas/abuse/pull/6
66 + local mycmakeargs=(
67 + -DBUILD_SHARED_LIBS=OFF
68 + )
69 +
70 + cmake-utils_src_configure
71 +}
72 +
73 +src_install() {
74 + cmake-utils_src_install
75 + doicon -s 32 doc/${PN}.png
76 + make_desktop_entry abuse Abuse
77 +}
78 +
79 +pkg_postinst() { xdg_icon_cache_update; }
80 +pkg_postrm() { xdg_icon_cache_update; }