1 |
commit: deba87d7ea08f6e3457289c2df004f2afb65c510 |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 26 22:16:43 2017 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 27 21:41:27 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=deba87d7 |
7 |
|
8 |
games-action/descent1-data: New package for the full version |
9 |
|
10 |
I'm not sure why we had we descent1-demodata and descent2-data for |
11 |
years but not this. |
12 |
|
13 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
14 |
|
15 |
games-action/descent1-data/Manifest | 2 + |
16 |
.../descent1-data/descent1-data-1.4a.ebuild | 111 +++++++++++++++++++++ |
17 |
games-action/descent1-data/metadata.xml | 8 ++ |
18 |
3 files changed, 121 insertions(+) |
19 |
|
20 |
diff --git a/games-action/descent1-data/Manifest b/games-action/descent1-data/Manifest |
21 |
new file mode 100644 |
22 |
index 00000000000..2c53556c15a |
23 |
--- /dev/null |
24 |
+++ b/games-action/descent1-data/Manifest |
25 |
@@ -0,0 +1,2 @@ |
26 |
+DIST descent-game-content-10to14a-patch.zip 439853 SHA256 0f63b3c50b78b584f41b6c7d6bf71d43ea5fb5b48d173435a4e69ab9ff2c8b8b SHA512 b71ec888509c77dc8ebc94d5a172a27ab0b16ddfdcb47ac243cefe33b87bbca82df843d9a4bffad8c6f345bfefd89e9e3564353922b00c81ef993e409950eb59 WHIRLPOOL 2daf1713173b0b964133daae6122d444da0691b029a2ffbc8de6818b197d631cede855a7111495689abe32c85c0ee6c656ba2198792f7049e181e2ecd8c0ae6f |
27 |
+DIST setup_descent_2.1.0.8.exe 25876928 SHA256 0d2d3e436e0011ec3eb888c8980bb8fd1c9258b0d4f9a0a7ad20a7a85c0d3046 SHA512 bab4269900b7ff0808d4495d5e01d2ebe987b5c37544e3651ff215fe8632b31ad4880ef3f968bd551b1462b9c5d1d392317f1ffec26c5314c76d8341800da876 WHIRLPOOL 1a3c09e59d36f9a2a02c7225846d76246e9612a2bc7e15559380a16cebac25453df0e084a82d9953978e1baf23715ee01f3a26a8def9c4add66e54dd821f6519 |
28 |
|
29 |
diff --git a/games-action/descent1-data/descent1-data-1.4a.ebuild b/games-action/descent1-data/descent1-data-1.4a.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..85cf48cd3a0 |
32 |
--- /dev/null |
33 |
+++ b/games-action/descent1-data/descent1-data-1.4a.ebuild |
34 |
@@ -0,0 +1,111 @@ |
35 |
+# Copyright 1999-2017 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=6 |
39 |
+ |
40 |
+CDROM_OPTIONAL="yes" |
41 |
+inherit cdrom eutils |
42 |
+ |
43 |
+# For GOG install |
44 |
+MY_EXE="setup_descent_2.1.0.8.exe" |
45 |
+ |
46 |
+DESCRIPTION="Data files for Descent 1" |
47 |
+HOMEPAGE="http://www.interplay.com/games/descent.php" |
48 |
+SRC_URI="cdinstall? ( http://www.dxx-rebirth.com/download/dxx/misc/descent-game-content-10to14a-patch.zip ) |
49 |
+ !cdinstall? ( ${MY_EXE} )" |
50 |
+LICENSE="descent-data" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~x86" |
53 |
+IUSE="doc" |
54 |
+RESTRICT="bindist !cdinstall? ( fetch )" |
55 |
+ |
56 |
+RDEPEND="!games-action/descent1-demodata" |
57 |
+ |
58 |
+DEPEND="cdinstall? ( app-arch/unzip ) |
59 |
+ !cdinstall? ( app-arch/innoextract )" |
60 |
+ |
61 |
+S="${WORKDIR}" |
62 |
+ |
63 |
+pkg_nofetch() { |
64 |
+ elog "You must place a copy of, or symlink to, the GOG setup package here:" |
65 |
+ elog "${DISTDIR}/${MY_EXE}" |
66 |
+ echo |
67 |
+ elog "If you wish to install from CD-ROM instead, please enable the cdinstall flag." |
68 |
+} |
69 |
+ |
70 |
+src_unpack() { |
71 |
+ if use cdinstall; then |
72 |
+ default |
73 |
+ cdrom_get_cds descent/descent.hog:descent.hog |
74 |
+ |
75 |
+ case ${CDROM_SET} in |
76 |
+ 0) einfo "Found Descent 1 CD" ;; |
77 |
+ 1) einfo "Found Descent 1 installation" ;; |
78 |
+ esac |
79 |
+ |
80 |
+ cd "${CDROM_ABSMATCH%/*}" || die |
81 |
+ else |
82 |
+ innoextract -e -s -p0 -L -I app -d gog "${DISTDIR}/${MY_EXE}" || die |
83 |
+ cd "${WORKDIR}/gog/app" || die |
84 |
+ fi |
85 |
+ |
86 |
+ eshopts_push -s globstar nocaseglob nullglob |
87 |
+ |
88 |
+ # Strip directories |
89 |
+ # Lowercase |
90 |
+ # chaos.* into data/missions |
91 |
+ # *.dem into data/demos |
92 |
+ # Documentation into doc |
93 |
+ # Remainder into data |
94 |
+ |
95 |
+ tar c \ |
96 |
+ --mode=u+w \ |
97 |
+ --ignore-case \ |
98 |
+ --xform='s:.*/::xg' \ |
99 |
+ --xform='s:.*:\L\0:x' \ |
100 |
+ --xform='s:^chaos\.:data/missions/\0:x' \ |
101 |
+ --xform='s:.*\.dem$:data/demos/\0:x' \ |
102 |
+ --xform='s:.*\.(faq|pdf|txt)$:doc/\0:x' \ |
103 |
+ --xform='s:^[^/]+$:data/\0:x' \ |
104 |
+ --exclude="$(use doc || echo '*.pdf')" \ |
105 |
+ *.{faq,txt,pdf} **/*.{dem,hog,msn,pig} \ |
106 |
+ | tar x -C "${WORKDIR}" |
107 |
+ |
108 |
+ assert "tar failed" |
109 |
+ eshopts_pop |
110 |
+} |
111 |
+ |
112 |
+src_prepare() { |
113 |
+ if use cdinstall; then |
114 |
+ case $(md5sum data/descent.hog || die) in |
115 |
+ 8adfff2e5205486cd5574ac3dd0b4381*) |
116 |
+ patch -p0 data/descent.hog < descent.hog.diff || die ;; |
117 |
+ c792a21a30b869b1ec6d31ad64e9557e*) |
118 |
+ einfo "descent.hog already patched" ;; |
119 |
+ *) |
120 |
+ ewarn "Unknown descent.hog detected, cannot patch" ;; |
121 |
+ esac |
122 |
+ |
123 |
+ case $(md5sum data/descent.pig || die) in |
124 |
+ 7916448ae69bcc0dd4f3b057a961285f*) |
125 |
+ patch -p0 data/descent.pig < descent.pig.diff || die ;; |
126 |
+ fa7e48b7b1495399af838e31ac13b7da*) |
127 |
+ einfo "descent.pig already patched" ;; |
128 |
+ *) |
129 |
+ ewarn "Unknown descent.pig detected, cannot patch" ;; |
130 |
+ esac |
131 |
+ fi |
132 |
+ |
133 |
+ default |
134 |
+} |
135 |
+ |
136 |
+src_install() { |
137 |
+ insinto /usr/share/games/d1x |
138 |
+ doins -r data/* |
139 |
+ [[ -d doc ]] && dodoc doc/* |
140 |
+} |
141 |
+ |
142 |
+pkg_postinst() { |
143 |
+ elog "A client is needed to run the game, e.g. games-action/dxx-rebirth." |
144 |
+ echo |
145 |
+} |
146 |
|
147 |
diff --git a/games-action/descent1-data/metadata.xml b/games-action/descent1-data/metadata.xml |
148 |
new file mode 100644 |
149 |
index 00000000000..26079e608be |
150 |
--- /dev/null |
151 |
+++ b/games-action/descent1-data/metadata.xml |
152 |
@@ -0,0 +1,8 @@ |
153 |
+<?xml version="1.0" encoding="UTF-8"?> |
154 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
155 |
+<pkgmetadata> |
156 |
+ <maintainer type="project"> |
157 |
+ <email>games@g.o</email> |
158 |
+ <name>Gentoo Games Project</name> |
159 |
+ </maintainer> |
160 |
+</pkgmetadata> |