1 |
commit: 7cf10172c3de4ccba6313b63d4a066bec1706bbf |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 30 08:18:51 2019 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 30 08:18:51 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cf10172 |
7 |
|
8 |
games-fps/etqw-data: Stop using games.eclass |
9 |
|
10 |
Package-Manager: Portage-2.3.67, Repoman-2.3.14 |
11 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
12 |
|
13 |
games-fps/etqw-data/etqw-data-1.0-r1.ebuild | 53 +++++++++++++++++++++++ |
14 |
games-fps/etqw-data/etqw-data-1.0.ebuild | 65 ----------------------------- |
15 |
2 files changed, 53 insertions(+), 65 deletions(-) |
16 |
|
17 |
diff --git a/games-fps/etqw-data/etqw-data-1.0-r1.ebuild b/games-fps/etqw-data/etqw-data-1.0-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..6f5806dd98a |
20 |
--- /dev/null |
21 |
+++ b/games-fps/etqw-data/etqw-data-1.0-r1.ebuild |
22 |
@@ -0,0 +1,53 @@ |
23 |
+# Copyright 1999-2019 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+inherit cdrom |
28 |
+ |
29 |
+DESCRIPTION="Enemy Territory: Quake Wars data files" |
30 |
+HOMEPAGE="http://zerowing.idsoftware.com/linux/etqw/ETQWFrontPage/" |
31 |
+SRC_URI="" |
32 |
+ |
33 |
+LICENSE="ETQW" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="-* ~amd64 ~x86" |
36 |
+IUSE="videos" |
37 |
+ |
38 |
+S="${WORKDIR}" |
39 |
+ |
40 |
+src_install() { |
41 |
+ local dir=/opt/etqw |
42 |
+ |
43 |
+ cdrom_get_cds Setup/Data/base/DEU:Setup/Data/base/POL:Setup/Data/base |
44 |
+ |
45 |
+ cd "${CDROM_ROOT}"/Setup/Data/base |
46 |
+ insinto "${dir}"/base |
47 |
+ doins pak00{0..4}.pk4 |
48 |
+ doins -r megatextures |
49 |
+ |
50 |
+ case ${CDROM_SET} in |
51 |
+ 0) |
52 |
+ doins \ |
53 |
+ zpak_english000.pk4 \ |
54 |
+ DEU/zpak_german000.pk4 \ |
55 |
+ ESP/zpak_spanish000.pk4 \ |
56 |
+ FRA/zpak_french000.pk4 |
57 |
+ ;; |
58 |
+ 1) |
59 |
+ doins \ |
60 |
+ POL/zpak_polish000.pk4 \ |
61 |
+ RUS/zpak_russian000.pk4 |
62 |
+ ;; |
63 |
+ 2) |
64 |
+ doins zpak_english000.pk4 |
65 |
+ ;; |
66 |
+ esac |
67 |
+ |
68 |
+ if use videos ; then |
69 |
+ case ${CDROM_SET} in |
70 |
+ 0|2) |
71 |
+ doins -r video |
72 |
+ ;; |
73 |
+ esac |
74 |
+ fi |
75 |
+} |
76 |
|
77 |
diff --git a/games-fps/etqw-data/etqw-data-1.0.ebuild b/games-fps/etqw-data/etqw-data-1.0.ebuild |
78 |
deleted file mode 100644 |
79 |
index 048efa9cd24..00000000000 |
80 |
--- a/games-fps/etqw-data/etqw-data-1.0.ebuild |
81 |
+++ /dev/null |
82 |
@@ -1,65 +0,0 @@ |
83 |
-# Copyright 1999-2018 Gentoo Foundation |
84 |
-# Distributed under the terms of the GNU General Public License v2 |
85 |
- |
86 |
-EAPI=0 |
87 |
- |
88 |
-inherit eutils cdrom games |
89 |
- |
90 |
-DESCRIPTION="Enemy Territory: Quake Wars data files" |
91 |
-HOMEPAGE="http://zerowing.idsoftware.com/linux/etqw/" |
92 |
-SRC_URI="" |
93 |
- |
94 |
-LICENSE="ETQW" |
95 |
-SLOT="0" |
96 |
-KEYWORDS="-* ~amd64 ~x86" |
97 |
-IUSE="videos" |
98 |
- |
99 |
-S=${WORKDIR} |
100 |
- |
101 |
-src_install() { |
102 |
- local dir=${GAMES_PREFIX_OPT}/etqw |
103 |
- |
104 |
- cdrom_get_cds Setup/Data/base/DEU:Setup/Data/base/POL:Setup/Data/base |
105 |
- |
106 |
- cd "${CDROM_ROOT}"/Setup/Data/base |
107 |
- insinto "${dir}"/base |
108 |
- doins pak00{0..4}.pk4 || die "doins pak failed" |
109 |
- doins -r megatextures || die "doins megatextures failed" |
110 |
- |
111 |
- case ${CDROM_SET} in |
112 |
- 0) |
113 |
- doins \ |
114 |
- zpak_english000.pk4 \ |
115 |
- DEU/zpak_german000.pk4 \ |
116 |
- ESP/zpak_spanish000.pk4 \ |
117 |
- FRA/zpak_french000.pk4 \ |
118 |
- || die "doins zpak failed" |
119 |
- ;; |
120 |
- 1) |
121 |
- doins \ |
122 |
- POL/zpak_polish000.pk4 \ |
123 |
- RUS/zpak_russian000.pk4 \ |
124 |
- || die "doins zpak failed" |
125 |
- ;; |
126 |
- 2) |
127 |
- doins zpak_english000.pk4 || die "doins zpak failed" |
128 |
- ;; |
129 |
- esac |
130 |
- |
131 |
- if use videos ; then |
132 |
- case ${CDROM_SET} in |
133 |
- 0|2) |
134 |
- doins -r video || die "doins video failed" |
135 |
- ;; |
136 |
- esac |
137 |
- fi |
138 |
- |
139 |
- prepgamesdirs |
140 |
-} |
141 |
- |
142 |
-pkg_postinst() { |
143 |
- games_pkg_postinst |
144 |
- |
145 |
- elog "This is just the data portion of the game. You will need to install" |
146 |
- elog "games-fps/etqw-bin to play it." |
147 |
-} |