1 |
commit: 85efa495fa96d2f6b335a49ac6fefe2f1b556d3c |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 29 16:58:02 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 29 17:13:10 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85efa495 |
7 |
|
8 |
games-fps/doom-data: Stop using games.eclass |
9 |
|
10 |
Package-Manager: Portage-2.3.31, Repoman-2.3.9 |
11 |
|
12 |
games-fps/doom-data/doom-data-1-r2.ebuild | 40 +++++++++++++++++++++++++++++++ |
13 |
1 file changed, 40 insertions(+) |
14 |
|
15 |
diff --git a/games-fps/doom-data/doom-data-1-r2.ebuild b/games-fps/doom-data/doom-data-1-r2.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..dcbff4655ed |
18 |
--- /dev/null |
19 |
+++ b/games-fps/doom-data/doom-data-1-r2.ebuild |
20 |
@@ -0,0 +1,40 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+inherit eutils |
26 |
+ |
27 |
+DESCRIPTION="Collection of doom wad files from id" |
28 |
+HOMEPAGE="http://www.idsoftware.com/" |
29 |
+SRC_URI="mirror://gentoo/doom1.wad.bz2" |
30 |
+ |
31 |
+LICENSE="freedist" |
32 |
+SLOT="0" |
33 |
+KEYWORDS="~amd64 ~arm ~x86" |
34 |
+IUSE="doomsday" |
35 |
+ |
36 |
+RDEPEND="doomsday? ( games-fps/doomsday )" |
37 |
+DEPEND="" |
38 |
+ |
39 |
+S="${WORKDIR}" |
40 |
+ |
41 |
+src_install() { |
42 |
+ insinto /usr/share/doom-data |
43 |
+ doins *.wad |
44 |
+ if use doomsday; then |
45 |
+ # Make wrapper for doomsday |
46 |
+ make_wrapper doomsday-demo "jdoom -file \ |
47 |
+ /usr/share/doom-data/doom1.wad" |
48 |
+ make_desktop_entry doomsday-demo "Doomsday - Demo" |
49 |
+ fi |
50 |
+} |
51 |
+ |
52 |
+pkg_postinst() { |
53 |
+ if use doomsday; then |
54 |
+ elog "To use the doomsday engine, run doomsday-demo" |
55 |
+ else |
56 |
+ elog "A Doom engine is required to play the wad" |
57 |
+ elog "Enable the doomsday use flag if you want to use" |
58 |
+ elog " the doomsday engine" |
59 |
+ fi |
60 |
+} |