1 |
commit: 7e90bf893a1263777bc60c63b607402206944b53 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 26 22:32:43 2017 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 27 19:44:11 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e90bf89 |
7 |
|
8 |
games-action/postalplus: 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/postalplus/postalplus-1-r1.ebuild | 36 ++++++++++++++++++++++++++ |
17 |
1 file changed, 36 insertions(+) |
18 |
|
19 |
diff --git a/games-action/postalplus/postalplus-1-r1.ebuild b/games-action/postalplus/postalplus-1-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000..1afc394 |
22 |
--- /dev/null |
23 |
+++ b/games-action/postalplus/postalplus-1-r1.ebuild |
24 |
@@ -0,0 +1,36 @@ |
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="Ultraviolent and controversial game featuring the Postal Dude" |
33 |
+HOMEPAGE="http://www.lokigames.com/products/postal/" |
34 |
+SRC_URI="" |
35 |
+ |
36 |
+LICENSE="LOKI-EULA" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~x86" |
39 |
+IUSE="" |
40 |
+RESTRICT="strip" |
41 |
+ |
42 |
+S=${WORKDIR} |
43 |
+ |
44 |
+src_install() { |
45 |
+ local dir=/opt/${PN} |
46 |
+ |
47 |
+ cdrom_get_cds postal_plus.ini |
48 |
+ exeinto "${dir}" |
49 |
+ doexe "${CDROM_ROOT}"/bin/x86/postal |
50 |
+ insinto "${dir}" |
51 |
+ doins "${CDROM_ROOT}"/{icon.{bmp,xpm},postal_plus.ini,README} |
52 |
+ cp "${CDROM_ROOT}"/icon.xpm ${PN}.xpm || die |
53 |
+ |
54 |
+ cp -r "${CDROM_ROOT}"/res "${D}${dir}" || die |
55 |
+ find "${D}" -name TRANS.TBL -exec rm '{}' + || die |
56 |
+ |
57 |
+ make_wrapper ${PN} ./postal "${dir}" |
58 |
+ doicon ${PN}.xpm |
59 |
+ make_desktop_entry ${PN} "Postal Plus" ${PN} |
60 |
+} |