1 |
commit: 49d5fab6297f9dc2b76446ec58cc2ffe710809d2 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 13 01:24:13 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 13 01:38:39 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49d5fab6 |
7 |
|
8 |
games-action/battalion: EAPI6->8, fix and keyword for ~amd64 |
9 |
|
10 |
Upstream subtly fixed this game for amd64 in the same tarball |
11 |
without releasing a new version (thus -r1 tarball). |
12 |
|
13 |
Also fix highscore file (gamestat), and add missing man page |
14 |
plus .sho data file. |
15 |
|
16 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
17 |
|
18 |
games-action/battalion/Manifest | 2 + |
19 |
games-action/battalion/battalion-1.4b-r2.ebuild | 73 +++++++++++++++++++++++++ |
20 |
2 files changed, 75 insertions(+) |
21 |
|
22 |
diff --git a/games-action/battalion/Manifest b/games-action/battalion/Manifest |
23 |
index 5714ea24368..148db2f77c1 100644 |
24 |
--- a/games-action/battalion/Manifest |
25 |
+++ b/games-action/battalion/Manifest |
26 |
@@ -1 +1,3 @@ |
27 |
+DIST battalion1.4b-r1.tar.bz2 1103031 BLAKE2B 393561b879813244c90cba1fe1186a65920bf383926c06c28f1ce3a04afa66eab08f3b35925495bf4ca9b0d37eb1925bad5cbace602a8cb575cc4d6c5410fd01 SHA512 5c2acf7941cfd4ae4c7f46b3df7c7e6090dfd099276c67b0de83a4e6e14de00b099814980a12bddf1349407e7e1e62f91da5d0da842fd26f240b9a6cb37ecb04 |
28 |
DIST battalion1.4b.tar.bz2 942342 BLAKE2B 6a4bd9afc7202d68c2cf62fbfe5b3b8377069263d71adaad006d2b4803d5989b130e0ef7fd5b1479a7698d79c819bc463ab19f2fa1493d4caf616708091e2c83 SHA512 c3c615772012c63a709aaeaf4f23246760bf577b82eeec7cf5b2a479c6240fe4a2f839aca50540299ed4bee9b297f61fb8b7e1f5af74ea357f0d7e749d86f84b |
29 |
+DIST battalionSUN4.tar.gz 1593265 BLAKE2B 239dff49c4d2c33a440594c113f45d347e598935257e30a04a18bd0f6b440b7790436000213fcbacfa862187f4760b9927539977f144ff5e92d7dfddbb7f3d7e SHA512 1e1ea7c7232b99b01a85fdf0660877944d64172b751df1dcd63a6cbeb4179078e80879aca77d84bb37b68fcf082680243987d5b65c77e5ea48e8f5645f9b2ef0 |
30 |
|
31 |
diff --git a/games-action/battalion/battalion-1.4b-r2.ebuild b/games-action/battalion/battalion-1.4b-r2.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..4d03d116cfb |
34 |
--- /dev/null |
35 |
+++ b/games-action/battalion/battalion-1.4b-r2.ebuild |
36 |
@@ -0,0 +1,73 @@ |
37 |
+# Copyright 1999-2021 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=8 |
41 |
+ |
42 |
+inherit toolchain-funcs |
43 |
+ |
44 |
+DESCRIPTION="Be a rampaging monster and destroy the city" |
45 |
+HOMEPAGE="https://www.evl.uic.edu/aej/AndyBattalion.html" |
46 |
+SRC_URI=" |
47 |
+ https://www.evl.uic.edu/aej/BATTALION/${PN}${PV}.tar.bz2 -> ${PN}${PV}-r1.tar.bz2 |
48 |
+ https://www.evl.uic.edu/aej/BATTALION/${PN}SUN4.tar.gz" |
49 |
+S="${WORKDIR}/${PN}${PV}" |
50 |
+ |
51 |
+LICENSE="battalion HPND" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~x86" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ acct-group/gamestat |
57 |
+ virtual/glu |
58 |
+ virtual/opengl |
59 |
+ x11-libs/libX11" |
60 |
+DEPEND="${RDEPEND}" |
61 |
+BDEPEND="virtual/pkgconfig" |
62 |
+ |
63 |
+PATCHES=( |
64 |
+ "${FILESDIR}"/${P}-warning.patch |
65 |
+ "${FILESDIR}"/${P}-fix-build-system.patch |
66 |
+) |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ default |
70 |
+ |
71 |
+ sed -e "/getenv.*DATADIR/s|= .*|= \"${EPREFIX}/usr/share/${PN}\";|" \ |
72 |
+ -e "/getenv.*SCOREDIR/s|= .*|= \"${EPREFIX}/var/games\";|" \ |
73 |
+ -i battalion.c || die |
74 |
+ |
75 |
+ sed '1s/1/6/' ../${PN}SUN4/${PN}.man > "${T}"/${PN}.6 |
76 |
+ |
77 |
+ # Only .raw sound files are used on Linux. The .au files are not needed. |
78 |
+ rm {SOUNDS,MUSIC}/*.au || die |
79 |
+} |
80 |
+ |
81 |
+src_compile() { |
82 |
+ tc-export CC PKG_CONFIG |
83 |
+ |
84 |
+ emake clean |
85 |
+ emake |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ dobin ${PN} |
90 |
+ doman "${T}"/${PN}.6 |
91 |
+ einstalldocs |
92 |
+ |
93 |
+ insinto /usr/share/${PN} |
94 |
+ doins -r DATA MUSIC SOUNDS TEXTURES ../${PN}SUN4/${PN}.data/${PN}.sho |
95 |
+ |
96 |
+ dodir /var/games |
97 |
+ > "${ED}"/var/games/${PN}_hiscore || die |
98 |
+ |
99 |
+ fowners :gamestat /usr/bin/${PN} /var/games/${PN}_hiscore |
100 |
+ fperms g+s /usr/bin/${PN} |
101 |
+ fperms 660 /var/games/${PN}_hiscore |
102 |
+} |
103 |
+ |
104 |
+pkg_postinst() { |
105 |
+ if [[ ! ${REPLACING_VERSIONS} ]]; then |
106 |
+ elog "Note that sound and music are not enabled by default," |
107 |
+ elog "and require OSS support (/dev/dsp) to function." |
108 |
+ fi |
109 |
+} |