1 |
commit: 8cbf8f8ac5cdc3843ceb5ab215d677aced012a3d |
2 |
Author: Nikoli <nikoli <AT> lavabit <DOT> com> |
3 |
AuthorDate: Wed Nov 23 18:07:36 2011 +0000 |
4 |
Commit: Nikoli <nikoli <AT> lavabit <DOT> com> |
5 |
CommitDate: Wed Nov 23 18:07:36 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=8cbf8f8a |
7 |
|
8 |
doom3-gpl: initial ebuild |
9 |
|
10 |
(Portage version: 2.1.10.11/git/Linux x86_64, unsigned Manifest commit) |
11 |
|
12 |
--- |
13 |
games-fps/doom3-gpl/ChangeLog | 10 +++ |
14 |
games-fps/doom3-gpl/doom3-gpl-9999.ebuild | 99 +++++++++++++++++++++++++++++ |
15 |
games-fps/doom3-gpl/metadata.xml | 9 +++ |
16 |
3 files changed, 118 insertions(+), 0 deletions(-) |
17 |
|
18 |
diff --git a/games-fps/doom3-gpl/ChangeLog b/games-fps/doom3-gpl/ChangeLog |
19 |
new file mode 100644 |
20 |
index 0000000..428c781 |
21 |
--- /dev/null |
22 |
+++ b/games-fps/doom3-gpl/ChangeLog |
23 |
@@ -0,0 +1,10 @@ |
24 |
+# ChangeLog for games-fps/doom3-gpl |
25 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
26 |
+# $Header: $ |
27 |
+ |
28 |
+*doom3-gpl-9999 (23 Nov 2011) |
29 |
+ |
30 |
+ 23 Nov 2011; Nikoli <nikoli@×××××××.com> +doom3-gpl-9999.ebuild, |
31 |
+ +metadata.xml: |
32 |
+ initial ebuild |
33 |
+ |
34 |
|
35 |
diff --git a/games-fps/doom3-gpl/doom3-gpl-9999.ebuild b/games-fps/doom3-gpl/doom3-gpl-9999.ebuild |
36 |
new file mode 100644 |
37 |
index 0000000..1d5d5ce |
38 |
--- /dev/null |
39 |
+++ b/games-fps/doom3-gpl/doom3-gpl-9999.ebuild |
40 |
@@ -0,0 +1,99 @@ |
41 |
+# Copyright 1999-2011 Gentoo Foundation |
42 |
+# Distributed under the terms of the GNU General Public License v2 |
43 |
+# $Header: $ |
44 |
+ |
45 |
+EAPI="3" |
46 |
+ |
47 |
+inherit scons-utils toolchain-funcs games git-2 |
48 |
+ |
49 |
+DESCRIPTION="3rd installment of the classic iD 3D first-person shooter" |
50 |
+HOMEPAGE="https://github.com/TTimo/doom3.gpl" |
51 |
+EGIT_REPO_URI="git://github.com/TTimo/doom3.gpl.git" |
52 |
+ |
53 |
+LICENSE="GPL-3" |
54 |
+SLOT="0" |
55 |
+KEYWORDS="" |
56 |
+IUSE="alsa debug dedicated opengl" |
57 |
+ |
58 |
+RDEPEND=" |
59 |
+ opengl? ( |
60 |
+ virtual/opengl |
61 |
+ alsa? ( media-libs/alsa-lib ) |
62 |
+ amd64? ( app-emulation/emul-linux-x86-xlibs[opengl] ) |
63 |
+ ) |
64 |
+" |
65 |
+DEPEND="${RDEPEND} |
66 |
+ sys-devel/m4 |
67 |
+" |
68 |
+ |
69 |
+dir=$(games_get_libdir)/${PN} |
70 |
+ |
71 |
+src_configure() { |
72 |
+ S+="/neo" |
73 |
+ |
74 |
+ myesconsargs=( |
75 |
+ CC="$(tc-getCC)" |
76 |
+ CXX="$(tc-getCXX)" |
77 |
+ ) |
78 |
+ # FIXME build fails with JOBS=3 |
79 |
+ #JOBS="$(echo -j1 ${MAKEOPTS} | sed -r "s/.*(-j\s*|--jobs=)([0-9]+).*/\2/")" |
80 |
+ |
81 |
+ if use debug; then |
82 |
+ myesconsargs+=( BUILD="debug-all" ) |
83 |
+ else |
84 |
+ myesconsargs+=( BUILD="release" ) |
85 |
+ fi |
86 |
+ |
87 |
+ if use dedicated; then |
88 |
+ if use opengl; then |
89 |
+ myesconsargs+=( DEDICATED="2" ) |
90 |
+ else |
91 |
+ myesconsargs+=( DEDICATED="1" ) |
92 |
+ fi |
93 |
+ else |
94 |
+ # TODO use EAPI4 |
95 |
+ use !opengl && die "Nothing to build" |
96 |
+ myesconsargs+=( DEDICATED="0" ) |
97 |
+ fi |
98 |
+ |
99 |
+ # FIXME needs 32-bit libz.a |
100 |
+ myesconsargs+=( NOCURL="1" ) |
101 |
+} |
102 |
+ |
103 |
+src_compile() { |
104 |
+ escons |
105 |
+} |
106 |
+ |
107 |
+src_install() { |
108 |
+ exeinto "${dir}" |
109 |
+ doexe gamex86-base.so || die |
110 |
+ doexe gamex86-d3xp.so || die |
111 |
+ |
112 |
+ if use dedicated; then |
113 |
+ doexe doomded.x86 || die |
114 |
+ fi |
115 |
+ |
116 |
+ if use opengl; then |
117 |
+ doexe doom.x86 || die |
118 |
+ doexe sys/linux/setup/image/openurl.sh || die |
119 |
+ games_make_wrapper ${PN} ./doom.x86 "${dir}" "${dir}" |
120 |
+ newicon sys/linux/setup/image/doom3.png ${PN}.png || die |
121 |
+ make_desktop_entry ${PN} "Doom III GPL" |
122 |
+ fi |
123 |
+ |
124 |
+ prepgamesdirs |
125 |
+ |
126 |
+ dodoc sys/linux/setup/image/README || die |
127 |
+} |
128 |
+ |
129 |
+pkg_postinst() { |
130 |
+ games_pkg_postinst |
131 |
+ |
132 |
+ elog "You need to copy 'base' directory" |
133 |
+ elog "from either your installation media or your hard drive to" |
134 |
+ elog "${dir}/ before running the game." |
135 |
+ echo |
136 |
+ elog "To play the game, run:" |
137 |
+ elog " ${PN}" |
138 |
+ echo |
139 |
+} |
140 |
|
141 |
diff --git a/games-fps/doom3-gpl/metadata.xml b/games-fps/doom3-gpl/metadata.xml |
142 |
new file mode 100644 |
143 |
index 0000000..b7d7b86 |
144 |
--- /dev/null |
145 |
+++ b/games-fps/doom3-gpl/metadata.xml |
146 |
@@ -0,0 +1,9 @@ |
147 |
+<?xml version="1.0" encoding="UTF-8"?> |
148 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
149 |
+<pkgmetadata> |
150 |
+ <herd>no-herd</herd> |
151 |
+ <maintainer> |
152 |
+ <email>nikoli@×××××××.com</email> |
153 |
+ <name>Nikoli</name> |
154 |
+ </maintainer> |
155 |
+</pkgmetadata> |