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/descent2-demodata/
Date: Thu, 27 Apr 2017 21:42:15
Message-Id: 1493329286.86bcbef9502d4289e40bb64ed68036ce1c035b89.chewi@gentoo
1 commit: 86bcbef9502d4289e40bb64ed68036ce1c035b89
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 13 23:20:18 2017 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 27 21:41:26 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86bcbef9
7
8 games-action/descent2-demodata: EAPI bump, cleanups, drop dead mirrors
9
10 Package-Manager: Portage-2.3.4, Repoman-2.3.2
11
12 .../descent2-demodata-1.0-r1.ebuild | 54 ++++++++++++++++++++++
13 1 file changed, 54 insertions(+)
14
15 diff --git a/games-action/descent2-demodata/descent2-demodata-1.0-r1.ebuild b/games-action/descent2-demodata/descent2-demodata-1.0-r1.ebuild
16 new file mode 100644
17 index 00000000000..9923919ecad
18 --- /dev/null
19 +++ b/games-action/descent2-demodata/descent2-demodata-1.0-r1.ebuild
20 @@ -0,0 +1,54 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +MY_PN="d2demo"
27 +DEMO="${MY_PN}${PV//.}.zip"
28 +
29 +DESCRIPTION="Demo data files for Descent 2"
30 +HOMEPAGE="http://www.interplay.com/games/descent.php"
31 +SRC_URI="ftp://ftp.funet.fi/pub/msdos/games/interplay/${DEMO}"
32 +LICENSE="free-noncomm"
33 +SLOT="0"
34 +KEYWORDS="~amd64 ~ppc ~x86"
35 +
36 +# <d2x-0.2.5-r3 may include the data.
37 +RDEPEND="!<games-action/d2x-0.2.5-r3
38 + !games-action/descent2-data"
39 +
40 +DEPEND="app-arch/unzip
41 + app-arch/unarj"
42 +
43 +S="${WORKDIR}"
44 +
45 +src_unpack() {
46 + default
47 +
48 + # This is much more fun than simply downloading
49 + # http://www.icculus.org/d2x/data/d2shar10.tar.gz
50 + unarj e D2_1.SOW || die
51 + mv ${MY_PN}.ham{,1} || die
52 + unarj e D2_2.SOW || die
53 + mv ${MY_PN}.ham{,2} || die
54 + mv ${MY_PN}.pig{,2} || die
55 + unarj e D2_3.SOW || die
56 + mv ${MY_PN}.pig{,3} || die
57 +
58 + # From the sows, big porkie pies shall grow
59 + cat ${MY_PN}.ham{1,2} > ${MY_PN}.ham || die
60 + cat ${MY_PN}.pig{2,3} > ${MY_PN}.pig || die
61 +}
62 +
63 +src_install() {
64 + insinto /usr/share/games/d2x
65 + doins *.{ham,hog,pig}
66 + insinto /usr/share/games/d2x/demos
67 + doins *.dem
68 + dodoc *.txt
69 +}
70 +
71 +pkg_postinst() {
72 + elog "A client is needed to run the game, e.g. games-action/dxx-rebirth."
73 + echo
74 +}