1 |
commit: c27a8b891c263d60c4685c9a314953a65a1e6a7c |
2 |
Author: Stefan Strogin <stefan.strogin <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Jan 23 22:08:20 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 3 14:07:53 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c27a8b89 |
7 |
|
8 |
games-roguelike/moria: version 5.7.10 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/674540 |
11 |
Package-Manager: Portage-2.3.57, Repoman-2.3.12 |
12 |
Signed-off-by: Stefan Strogin <stefan.strogin <AT> gmail.com> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/10899 |
14 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
15 |
|
16 |
games-roguelike/moria/Manifest | 1 + |
17 |
.../moria/files/moria-5.7.10-gentoo-paths.patch | 33 +++++++ |
18 |
games-roguelike/moria/files/moria.6 | 108 +++++++++++++++++++++ |
19 |
games-roguelike/moria/metadata.xml | 11 ++- |
20 |
games-roguelike/moria/moria-5.7.10.ebuild | 49 ++++++++++ |
21 |
5 files changed, 198 insertions(+), 4 deletions(-) |
22 |
|
23 |
diff --git a/games-roguelike/moria/Manifest b/games-roguelike/moria/Manifest |
24 |
index cbe1291829f..c64583a00c4 100644 |
25 |
--- a/games-roguelike/moria/Manifest |
26 |
+++ b/games-roguelike/moria/Manifest |
27 |
@@ -1,2 +1,3 @@ |
28 |
+DIST moria-5.7.10.tar.gz 392842 BLAKE2B 6b1f372d2c5503c708428b119e2c0333d3134eab3bd76ad8453ee062764b41d9dccca31c1512bd9561b5ba48b59dac32a447bb058c26c1cd9595cdc2e06cb9fc SHA512 f81754f03ae36ab5a8737fb0ae18da422b87da8684d00c88c934afa2c0b42e429c23a475751c506b499f809a421d1d3dfcc729e0d64d901b2e6c74e444d0f06f |
29 |
DIST moria-extras.tar.bz2 57324 BLAKE2B 7a885e5595c8c3a3d0a29c65729e03ab1d26ad514b96a1d078a436960c1245283a51544dc54c6a5f225b77da3c3a72f8c7407efeac2b0629d51330b3abf9af49 SHA512 39d04ffdbe779fc070ee72084df5c731f8db25116e9156898d4c78c86e02288cf3560849461f2081209a06a74274789a671b104dc806b63a0d955adad17fd85f |
30 |
DIST um5.5.2.tar.Z 910536 BLAKE2B d36d5cbb45992937f8e7c2f98cf2ad568e11e2d2b1af107e77ba98d8cfc23f2f4bcdb43ab9d5a9dd05e0ec45a5ecd298a1c4c7307bc0f75ca629c9c63cf9d3bb SHA512 987bbccb9cb4870ec91704cd20cf19875320d1cfe62c4c5a0063bfc3827732a0e3334a4ea3712137f3262d7418db0ea7e803d724e2dec4d5eb41ebe741f326cc |
31 |
|
32 |
diff --git a/games-roguelike/moria/files/moria-5.7.10-gentoo-paths.patch b/games-roguelike/moria/files/moria-5.7.10-gentoo-paths.patch |
33 |
new file mode 100644 |
34 |
index 00000000000..0d17c549e77 |
35 |
--- /dev/null |
36 |
+++ b/games-roguelike/moria/files/moria-5.7.10-gentoo-paths.patch |
37 |
@@ -0,0 +1,33 @@ |
38 |
+diff --git a/src/config.cpp b/src/config.cpp |
39 |
+index 09528f7..1c299ed 100644 |
40 |
+--- a/src/config.cpp |
41 |
++++ b/src/config.cpp |
42 |
+@@ -12,17 +12,17 @@ namespace config { |
43 |
+ // Data files used by Umoria |
44 |
+ // NOTE: use relative paths to the executable binary. |
45 |
+ namespace files { |
46 |
+- const std::string splash_screen = "data/splash.txt"; |
47 |
+- const std::string welcome_screen = "data/welcome.txt"; |
48 |
+- const std::string license = "LICENSE"; |
49 |
+- const std::string versions_history = "data/versions.txt"; |
50 |
+- const std::string help = "data/help.txt"; |
51 |
+- const std::string help_wizard = "data/help_wizard.txt"; |
52 |
+- const std::string help_roguelike = "data/rl_help.txt"; |
53 |
+- const std::string help_roguelike_wizard = "data/rl_help_wizard.txt"; |
54 |
+- const std::string death_tomb = "data/death_tomb.txt"; |
55 |
+- const std::string death_royal = "data/death_royal.txt"; |
56 |
+- const std::string scores = "scores.dat"; |
57 |
++ const std::string splash_screen = "/usr/share/moria/splash.txt"; |
58 |
++ const std::string welcome_screen = "/usr/share/moria/welcome.txt"; |
59 |
++ const std::string license = "/usr/share/doc/@PF@/LICENSE"; |
60 |
++ const std::string versions_history = "/usr/share/moria/versions.txt"; |
61 |
++ const std::string help = "/usr/share/moria/help.txt"; |
62 |
++ const std::string help_wizard = "/usr/share/moria/help_wizard.txt"; |
63 |
++ const std::string help_roguelike = "/usr/share/moria/rl_help.txt"; |
64 |
++ const std::string help_roguelike_wizard = "/usr/share/moria/rl_help_wizard.txt"; |
65 |
++ const std::string death_tomb = "/usr/share/moria/death_tomb.txt"; |
66 |
++ const std::string death_royal = "/usr/share/moria/death_royal.txt"; |
67 |
++ const std::string scores = "/var/lib/moria/scores.dat"; |
68 |
+ std::string save_game = "game.sav"; |
69 |
+ } |
70 |
+ |
71 |
|
72 |
diff --git a/games-roguelike/moria/files/moria.6 b/games-roguelike/moria/files/moria.6 |
73 |
new file mode 100644 |
74 |
index 00000000000..be1fc7cc353 |
75 |
--- /dev/null |
76 |
+++ b/games-roguelike/moria/files/moria.6 |
77 |
@@ -0,0 +1,108 @@ |
78 |
+.TH MORIA 6 "" |
79 |
+.SH NAME |
80 |
+moria \- a dungeon game |
81 |
+.SH SYNOPSIS |
82 |
+.B |
83 |
+moria |
84 |
+[ |
85 |
+.B \-o |
86 |
+] [ |
87 |
+.B \-r |
88 |
+] [ |
89 |
+.B \-s |
90 |
+] [ |
91 |
+.B \-S |
92 |
+] [ |
93 |
+.B \-n |
94 |
+] [ |
95 |
+.B \-w |
96 |
+] [ savefile ] |
97 |
+.SH DESCRIPTION |
98 |
+.I Moria\^ |
99 |
+plays a dungeon game with you. |
100 |
+It lets you generate a character, |
101 |
+lets you buy equipment, |
102 |
+and lets you wander in a fathomless dungeon |
103 |
+while finding treasure and being attacked by monsters |
104 |
+and fellow adventurers. |
105 |
+Typing |
106 |
+.B ? |
107 |
+gives you a list of commands. |
108 |
+.PP |
109 |
+The ultimate object of |
110 |
+.I moria |
111 |
+is to kill the Balrog, |
112 |
+which dwells on the 50th level of the |
113 |
+dungeon, 2,500 feet underground. |
114 |
+Most players never even reach the Balrog, |
115 |
+and those that do seldom live to tell about it. |
116 |
+.PP |
117 |
+For a more complete description of the game, |
118 |
+read the document |
119 |
+.I The Dungeons of Moria. |
120 |
+.PP |
121 |
+By default, |
122 |
+.I moria |
123 |
+will save and restore games from a file |
124 |
+called moria.save in your home directory. If the environment |
125 |
+variable MORIA_SAV is defined, then |
126 |
+.I moria |
127 |
+will use that |
128 |
+file name instead of the default. If MORIA_SAV is not a complete |
129 |
+path name, then the savefile will be created or restored from the |
130 |
+current directory. You can also explicitly specify a savefile |
131 |
+on the command line. |
132 |
+.PP |
133 |
+If you use the \fB\-n\fP option, |
134 |
+.I moria |
135 |
+will create a new game, |
136 |
+ignoring any savefile which may already exist. |
137 |
+This works best when a savefile name is specified on the |
138 |
+command line, as this will prevent |
139 |
+.I moria |
140 |
+from trying to overwrite the default savefile |
141 |
+(if it exists) when you try to save your game. |
142 |
+.PP |
143 |
+You move in various directions |
144 |
+by pressing the numeric keypad keys, VMS-style. |
145 |
+If you specify |
146 |
+\fB\-r\fP, you move the same way you do in \fIrogue\fP(6). |
147 |
+You can also specify |
148 |
+\fB\-o\fP to force the VMS-style command set. |
149 |
+These options will override defaults stored in the savefile. If these |
150 |
+options are given multiple times, only the last one will take effect. |
151 |
+.PP |
152 |
+If you specify |
153 |
+.BR \-s , |
154 |
+.I moria |
155 |
+prints all of the scores in the score file and exits. |
156 |
+On a multiuser system, if you specify |
157 |
+.BR \-S , |
158 |
+.I moria |
159 |
+prints prints only those scores belonging to you and then exits. |
160 |
+.PP |
161 |
+If you specify \fB\-w\fP, |
162 |
+.I moria |
163 |
+will start up in wizard mode. |
164 |
+You can resurrect a dead character by using this option when starting |
165 |
+the game. Resurrected characters are teleported to the town level |
166 |
+and given zero hitpoints. |
167 |
+Wizard mode is intended for debugging the game, and for experimenting |
168 |
+with new features. Any other use is considered cheating. |
169 |
+Games played with wizard mode are not scored. |
170 |
+.SH AUTHORS |
171 |
+The original version of Moria was written in VMS/Pascal by Robert |
172 |
+Alan Koeneke, Jimmey Wayne Todd, |
173 |
+Gary McAdoo, and others at the University of Oklahoma. |
174 |
+This version was written by Jim Wilson at the University of California, |
175 |
+Berkeley, and released with minor revisions by David Grabiner at Harvard |
176 |
+University. |
177 |
+.SH BUGS |
178 |
+.PP |
179 |
+A suspended game that gets a hangup signal will die without creating a |
180 |
+save file. |
181 |
+ |
182 |
+Rerolling with a % at the class prompt not implemented. |
183 |
+ |
184 |
+For a more comprehensive list, see the ERRORS file in the source |
185 |
+distribution. |
186 |
|
187 |
diff --git a/games-roguelike/moria/metadata.xml b/games-roguelike/moria/metadata.xml |
188 |
index 78274e0fa55..51c540e92f8 100644 |
189 |
--- a/games-roguelike/moria/metadata.xml |
190 |
+++ b/games-roguelike/moria/metadata.xml |
191 |
@@ -1,8 +1,11 @@ |
192 |
<?xml version="1.0" encoding="UTF-8"?> |
193 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
194 |
<pkgmetadata> |
195 |
-<maintainer type="project"> |
196 |
- <email>games@g.o</email> |
197 |
- <name>Gentoo Games Project</name> |
198 |
-</maintainer> |
199 |
+ <maintainer type="project"> |
200 |
+ <email>games@g.o</email> |
201 |
+ <name>Gentoo Games Project</name> |
202 |
+ </maintainer> |
203 |
+ <upstream> |
204 |
+ <remote-id type="github">dungeons-of-moria/umoria</remote-id> |
205 |
+ </upstream> |
206 |
</pkgmetadata> |
207 |
|
208 |
diff --git a/games-roguelike/moria/moria-5.7.10.ebuild b/games-roguelike/moria/moria-5.7.10.ebuild |
209 |
new file mode 100644 |
210 |
index 00000000000..a5e1c54cf23 |
211 |
--- /dev/null |
212 |
+++ b/games-roguelike/moria/moria-5.7.10.ebuild |
213 |
@@ -0,0 +1,49 @@ |
214 |
+# Copyright 1999-2019 Gentoo Authors |
215 |
+# Distributed under the terms of the GNU General Public License v2 |
216 |
+ |
217 |
+EAPI=7 |
218 |
+ |
219 |
+CMAKE_IN_SOURCE_BUILD="yes" |
220 |
+inherit cmake-utils |
221 |
+ |
222 |
+DESCRIPTION="The Dungeons of Moria, a single player roguelike game, also known as Umoria" |
223 |
+HOMEPAGE="https://umoria.org/" |
224 |
+SRC_URI="https://github.com/dungeons-of-moria/umoria/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
225 |
+ |
226 |
+LICENSE="GPL-2" |
227 |
+SLOT="0" |
228 |
+KEYWORDS="~amd64 ~x86 ~x86-fbsd" |
229 |
+IUSE="" |
230 |
+ |
231 |
+RDEPEND=">=sys-libs/ncurses-6.0:0=" |
232 |
+DEPEND="${RDEPEND}" |
233 |
+BDEPEND="virtual/pkgconfig" |
234 |
+ |
235 |
+S="${WORKDIR}/umoria-${PV}" |
236 |
+ |
237 |
+PATCHES=( "${FILESDIR}/${P}-gentoo-paths.patch" ) |
238 |
+ |
239 |
+src_prepare() { |
240 |
+ cmake-utils_src_prepare |
241 |
+ sed -i "s/@PF@/${PF}/" src/config.cpp || die |
242 |
+} |
243 |
+ |
244 |
+src_install() { |
245 |
+ newbin umoria/umoria moria |
246 |
+ |
247 |
+ insinto /usr/share/moria |
248 |
+ doins data/*.txt |
249 |
+ |
250 |
+ insinto /var/lib/moria |
251 |
+ doins data/scores.dat |
252 |
+ fowners root:games /var/lib/moria/scores.dat |
253 |
+ fperms g+w /var/lib/moria/scores.dat |
254 |
+ |
255 |
+ doman "${FILESDIR}"/${PN}.6 |
256 |
+ dodoc -r AUTHORS README.md docs |
257 |
+ |
258 |
+ # The game binary will look for plain text LICENSE |
259 |
+ insinto /usr/share/doc/${PF} |
260 |
+ doins LICENSE |
261 |
+ docompress -x /usr/share/doc/${PF}/LICENSE |
262 |
+} |