1 |
commit: a8fd61c1b8896f190a107ae4515a5604433c9108 |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 26 21:35:58 2017 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 27 21:41:26 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8fd61c1 |
7 |
|
8 |
games-rpg/comi: New package for The Curse of Monkey Island via ScummVM |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
11 |
|
12 |
games-rpg/comi/comi-1.ebuild | 66 ++++++++++++++++++++++++++++++++++++++++++ |
13 |
games-rpg/comi/files/comi.jpg | Bin 0 -> 5320 bytes |
14 |
games-rpg/comi/metadata.xml | 8 +++++ |
15 |
3 files changed, 74 insertions(+) |
16 |
|
17 |
diff --git a/games-rpg/comi/comi-1.ebuild b/games-rpg/comi/comi-1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..f53ac11796d |
20 |
--- /dev/null |
21 |
+++ b/games-rpg/comi/comi-1.ebuild |
22 |
@@ -0,0 +1,66 @@ |
23 |
+# Copyright 1999-2017 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=6 |
27 |
+ |
28 |
+inherit cdrom estack eutils xdg |
29 |
+ |
30 |
+DESCRIPTION="The Curse of Monkey Island, the third game in the series" |
31 |
+HOMEPAGE="https://en.wikipedia.org/wiki/The_Curse_of_Monkey_Island" |
32 |
+LICENSE="${PN}" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="~amd64 ~x86" |
35 |
+IUSE="doc" |
36 |
+RESTRICT="bindist" |
37 |
+ |
38 |
+RDEPEND=">=games-engines/scummvm-0.4.0" |
39 |
+ |
40 |
+S="${WORKDIR}" |
41 |
+ |
42 |
+dotar() { |
43 |
+ cd "${CDROM_ABSMATCH%/*}" || die |
44 |
+ eshopts_push -s nocaseglob nullglob |
45 |
+ |
46 |
+ # Lowercase |
47 |
+ # Documentation into doc |
48 |
+ # Remainder into data |
49 |
+ # Avoid copying files twice |
50 |
+ |
51 |
+ tar c \ |
52 |
+ --mode=u+w \ |
53 |
+ --ignore-case \ |
54 |
+ --xform='s:^[^a-z]+$:\L\0:x' \ |
55 |
+ --xform='s:.*:data/\0:x' \ |
56 |
+ --xform='s:.*\.(pdf|txt)$:doc/\0:x' \ |
57 |
+ --xform='s:^doc/data/:doc/:x' \ |
58 |
+ --exclude="$(use doc || echo '*.pdf')" \ |
59 |
+ --exclude-from=<(find "${WORKDIR}"/data -type f -printf "%P\n" 2>/dev/null) \ |
60 |
+ *.{txt,pdf} *.la[0-9] resource*/ \ |
61 |
+ | tar x -C "${WORKDIR}" |
62 |
+ |
63 |
+ assert "tar failed" |
64 |
+ eshopts_pop |
65 |
+ |
66 |
+ # Don't prevent CD ejection. |
67 |
+ cd "${WORKDIR}" || die |
68 |
+} |
69 |
+ |
70 |
+src_unpack() { |
71 |
+ cdrom_get_cds comi.la1 comi.la2 |
72 |
+ dotar |
73 |
+ |
74 |
+ cdrom_load_next_cd |
75 |
+ dotar |
76 |
+} |
77 |
+ |
78 |
+src_install() { |
79 |
+ insinto /usr/share/games/scummvm/games/comi |
80 |
+ doins -r data/* |
81 |
+ |
82 |
+ # Documentation may be missing. |
83 |
+ [[ -d doc ]] && dodoc doc/* |
84 |
+ |
85 |
+ doicon "${FILESDIR}"/${PN}.jpg |
86 |
+ make_wrapper ${PN} "scummvm comi" |
87 |
+ make_desktop_entry ${PN} "The Curse of Monkey Island" ${PN}.jpg |
88 |
+} |
89 |
|
90 |
diff --git a/games-rpg/comi/files/comi.jpg b/games-rpg/comi/files/comi.jpg |
91 |
new file mode 100644 |
92 |
index 00000000000..941b4a69c89 |
93 |
Binary files /dev/null and b/games-rpg/comi/files/comi.jpg differ |
94 |
|
95 |
diff --git a/games-rpg/comi/metadata.xml b/games-rpg/comi/metadata.xml |
96 |
new file mode 100644 |
97 |
index 00000000000..26079e608be |
98 |
--- /dev/null |
99 |
+++ b/games-rpg/comi/metadata.xml |
100 |
@@ -0,0 +1,8 @@ |
101 |
+<?xml version="1.0" encoding="UTF-8"?> |
102 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
103 |
+<pkgmetadata> |
104 |
+ <maintainer type="project"> |
105 |
+ <email>games@g.o</email> |
106 |
+ <name>Gentoo Games Project</name> |
107 |
+ </maintainer> |
108 |
+</pkgmetadata> |