Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-action/xblast/
Date: Tue, 31 Jan 2017 00:59:48
Message-Id: 1485824362.3e08015ce5098d652cbaeb6755a9633a68071859.wizardedit@gentoo
1 commit: 3e08015ce5098d652cbaeb6755a9633a68071859
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 31 00:33:28 2017 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 31 00:59:22 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e08015c
7
8 games-action/xblast: remove deprecated games eclass
9
10 Also update to EAPI 6
11
12 Gentoo-Bug: https://bugs.gentoo.org/574082
13
14 Package-Manager: Portage-2.3.2, Repoman-2.3.1
15
16 games-action/xblast/xblast-2.10.4-r1.ebuild | 71 +++++++++++++++++++++++++++++
17 1 file changed, 71 insertions(+)
18
19 diff --git a/games-action/xblast/xblast-2.10.4-r1.ebuild b/games-action/xblast/xblast-2.10.4-r1.ebuild
20 new file mode 100644
21 index 00000000..488b6a7
22 --- /dev/null
23 +++ b/games-action/xblast/xblast-2.10.4-r1.ebuild
24 @@ -0,0 +1,71 @@
25 +# Copyright 1999-2017 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +# $Id$
28 +
29 +EAPI=6
30 +inherit autotools
31 +
32 +# Change these as releases changes
33 +IMAGES="images-2005-01-06"
34 +LEVELS="levels-2005-01-06"
35 +MODELS="models-2005-01-06"
36 +MUSICS="musics-2005-01-06"
37 +SOUNDS="sounds"
38 +
39 +DESCRIPTION="Bomberman clone w/network support for up to 6 players"
40 +HOMEPAGE="http://xblast.sourceforge.net/"
41 +SRC_URI="mirror://sourceforge/xblast/${P}.tar.gz
42 + mirror://sourceforge/xblast/${IMAGES}.tar.gz
43 + mirror://sourceforge/xblast/${LEVELS}.tar.gz
44 + mirror://sourceforge/xblast/${MODELS}.tar.gz
45 + mirror://sourceforge/xblast/${MUSICS}.tar.gz
46 + mirror://sourceforge/xblast/${SOUNDS}.tar.gz"
47 +
48 +LICENSE="GPL-2"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~ppc ~x86"
51 +IUSE=""
52 +
53 +RDEPEND="
54 + media-libs/libpng:0
55 + x11-libs/libICE
56 + x11-libs/libX11"
57 +DEPEND="${RDEPEND}
58 + x11-libs/libXt"
59 +
60 +src_prepare() {
61 + default
62 +
63 + eautoreconf #255857
64 +}
65 +
66 +src_configure() {
67 + econf \
68 + --with-otherdatadir=/usr/share/${PN} \
69 + --enable-sound
70 +}
71 +
72 +src_install() {
73 + local IMAGE_INSTALL_DIR="/usr/share/${PN}/image"
74 +
75 + default
76 +
77 + # Images
78 + dodir "${IMAGE_INSTALL_DIR}"
79 + cp -pPR "${WORKDIR}/${IMAGES}"/* "${D}/${IMAGE_INSTALL_DIR}" || die
80 +
81 + # Levels
82 + insinto "$/usr/share/${PN}/level"
83 + doins "${WORKDIR}/${LEVELS}"/*
84 +
85 + # Models
86 + insinto "/usr/share/${PN}/image/sprite"
87 + doins "${WORKDIR}/${MODELS}"/*
88 +
89 + # Music and sound
90 + insinto "/usr/share/${PN}/sounds"
91 + doins "${WORKDIR}/${MUSICS}"/* "${WORKDIR}/${SOUNDS}"/*
92 +
93 + # Cleanup
94 + find "${D}" -name Imakefile -exec rm \{\} \;
95 +}