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/fakk2/
Date: Tue, 24 Jan 2017 23:40:25
Message-Id: 1485301156.8698ea5fa9c37fdc3cece5f43ed2c7c69abdc3c1.wizardedit@gentoo
1 commit: 8698ea5fa9c37fdc3cece5f43ed2c7c69abdc3c1
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 24 22:58:51 2017 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 24 23:39:16 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8698ea5f
7
8 games-action/fakk2: 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/fakk2/fakk2-1.02-r1.ebuild | 65 +++++++++++++++++++++++++++++++++
17 1 file changed, 65 insertions(+)
18
19 diff --git a/games-action/fakk2/fakk2-1.02-r1.ebuild b/games-action/fakk2/fakk2-1.02-r1.ebuild
20 new file mode 100644
21 index 00000000..aa736c6
22 --- /dev/null
23 +++ b/games-action/fakk2/fakk2-1.02-r1.ebuild
24 @@ -0,0 +1,65 @@
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 eutils cdrom
31 +
32 +DESCRIPTION="Heavy Metal: FAKK2 - 3D third-person action shooter based on the Heavy Metal comics/movies"
33 +HOMEPAGE="http://www.lokigames.com/products/fakk2/"
34 +SRC_URI=""
35 +
36 +LICENSE="LOKI-EULA"
37 +SLOT="0"
38 +KEYWORDS="~x86"
39 +IUSE="nocd"
40 +RESTRICT="strip"
41 +
42 +RDEPEND="virtual/opengl"
43 +
44 +S=${WORKDIR}
45 +
46 +dir=/opt/${PN}
47 +Ddir=${D}/${dir}
48 +
49 +pkg_setup() {
50 + if use nocd ; then
51 + ewarn "The installed game takes about 378MB of space!"
52 + fi
53 +}
54 +
55 +src_install() {
56 + cdrom_get_cds fakk
57 + einfo "Copying files... this may take a while..."
58 + exeinto "${dir}"
59 + doexe ${CDROM_ROOT}/bin/x86/glibc-2.1/${PN}
60 + insinto "${dir}"
61 + doins ${CDROM_ROOT}/{README,icon.{bmp,xpm}}
62 + exeinto "${dir}"/fakk
63 + doexe ${CDROM_ROOT}/bin/x86/glibc-2.1/fakk/{c,f}game.so
64 + if use nocd ; then
65 + insinto "${dir}"/fakk
66 + doins ${CDROM_ROOT}/fakk/pak{0,1,2,3}.pk3
67 + doins ${CDROM_ROOT}/fakk/default.cfg
68 + fi
69 +
70 + # Now, since these files are coming off a cd, the times/sizes/md5sums won't
71 + # be different ... that means portage will try to unmerge some files (!)
72 + # So, we run touch on ${D} to make sure portage doesn't do any such thing
73 + find "${Ddir}" -exec touch '{}' \;
74 +
75 + make_wrapper ${PN} ./${PN} "${dir}" "${dir}"
76 + newicon ${CDROM_ROOT}/icon.xpm ${PN}.xpm
77 +
78 + make_desktop_entry ${PN} "FAKK2" ${PN}
79 +}
80 +
81 +pkg_postinst() {
82 + echo
83 + ewarn "There are two possible security bugs in this package, both causing a denial of"
84 + ewarn "service. One affects the game when running a server, the other when running as"
85 + ewarn "a client. For more information, see bug #82149."
86 + echo
87 + elog "To play the game run:"
88 + elog " fakk2"
89 +}