summaryrefslogtreecommitdiff
path: root/games-arcade
diff options
context:
space:
mode:
Diffstat (limited to 'games-arcade')
-rw-r--r--games-arcade/Manifest.gzbin20917 -> 20921 bytes
-rw-r--r--games-arcade/kobodeluxe/Manifest2
-rw-r--r--games-arcade/kobodeluxe/files/kobodeluxe-0.5.1-midi-crash-fix.patch13
-rw-r--r--games-arcade/kobodeluxe/kobodeluxe-0.5.1-r4.ebuild70
4 files changed, 85 insertions, 0 deletions
diff --git a/games-arcade/Manifest.gz b/games-arcade/Manifest.gz
index 5d8c2049bb69..7e541d874844 100644
--- a/games-arcade/Manifest.gz
+++ b/games-arcade/Manifest.gz
Binary files differ
diff --git a/games-arcade/kobodeluxe/Manifest b/games-arcade/kobodeluxe/Manifest
index be5211b9554a..b76d2dc01d1d 100644
--- a/games-arcade/kobodeluxe/Manifest
+++ b/games-arcade/kobodeluxe/Manifest
@@ -1,6 +1,8 @@
AUX kobodeluxe-0.5.1-clang.patch 670 BLAKE2B bebded939e08b4a5184170c1527b4e9135e1c4be8ba3b788576778aab337f21eb96556ac7aefa8f3da76145abad1219a0840a8f58bf5dc8394b9b428f535b7c1 SHA512 7d36f7e537de05868107f34b1645db8f16e01317ab443d1cfb84eb4ab0ff8771e522539e37190bc555208e7ec996b90f4cfb130781232432d9d8a53fad18ca67
AUX kobodeluxe-0.5.1-glibc2.10.patch 219 BLAKE2B 78c45966711049c7715ae0efd18289be82b4ea3965d85338ab81c79f07785273a6d767cf471deace08722b3ab9b8581a45201e30343b9e6ad784d820256b7dd9 SHA512 77624a0e18958d76c938e9d1becb72803079364612056687fb955cc912bda9b4443c7e6245abb6a32cc3ff96b04c63993e3cd114f73115254efe7b50f749a45c
AUX kobodeluxe-0.5.1-glibc29.patch 2408 BLAKE2B c3abfe3594b2c43428d4e49a34285680a1ae2ac40106aac255aa2da846a67ecbcfcf8f5d8af48ca0adbf627d188f6a8941d6b4f75df3bdad39fff4d869b324e1 SHA512 de2014b9a0607ddb5853c63eb4c14daf4f14d2158697348d952305db09b4a8f84a3a918cd730085f01120b7cbcfae076afd73c559c1ddd46f5a9777c89e76897
+AUX kobodeluxe-0.5.1-midi-crash-fix.patch 482 BLAKE2B d58a2fb2e6fbf54d81b9493121b483dd03b88ebebb972665206f546f299fe767bd50e135780f593f3d3dd4db9c375f440db7fac83ed5fd1c5851f94e8e28ed09 SHA512 13802a7cbb0e6588e054ccc44581b25bd21e4d7461749e218416e80e5c010ad817bf47a73ca27a6b0ff6cf7a7b2909e0467d3460e64cf0c32fce448012538340
DIST KoboDeluxe-0.5.1.tar.bz2 1781752 BLAKE2B d7f08ab9603b861f8992629bac9a65051a3c5fee6822f1951d57cbc5c31055a6cefeed098637dda84c0a1538645f47816848d767a4fa7916726b5784dfbc0414 SHA512 fc107e4367fd300574823aa40c68311d95de3a403d7c930963b8754aac14293f0624996fd77c4de0677921d11883047b68dd95df81eeb03078c37426ebd58afd
EBUILD kobodeluxe-0.5.1-r3.ebuild 1287 BLAKE2B c9fa3c9613716f16c651528af844f4167a4c52ea76426b4c1b970a074871f054ba649ef3a0b97090ce600ee42bc544b9c968495faa9852d813b9827ab1b8c4ac SHA512 a6347dd89c4b5d72324340cb177d42e2efdd2374a81d820c6104e621a75186b6286cd051a87c52ad07fec0092e28bb9e129ee5f0906279eaed2fd1cf6fdb4885
+EBUILD kobodeluxe-0.5.1-r4.ebuild 1569 BLAKE2B b7a77871bc2f9ce1a79dd1c2015b5ff25bf886adc86bc162bee9f5304758d996762edecbf5e8d3d22f5233d03078e91e7f1d6ec64e5499ecdd5b40afcdb3d438 SHA512 ffd24c10068547d1bd25bb567055fd9614ae856e69b74e315c2788f8422d13c17ae43af659bb416947a541a78cdaddc1bdade7428affc3efa1c036b0853bff3d
MISC metadata.xml 250 BLAKE2B 8d44bd4c6e7d6491273e2015e36ddac74af7b94a124fd240ff030e16430f5c85e53ab812f0e3e94bb2e6d138f39b512bbe01ff98b0081cacc21a02d648ec7643 SHA512 80ac07a3cac10ad2e72e9989a130b7d2073934fe92914a9db2af4d0e769d4bf537770f8faba0654bbd64a7e85ee38cf1f9d03b4b9cd322864b1b2bb35087d610
diff --git a/games-arcade/kobodeluxe/files/kobodeluxe-0.5.1-midi-crash-fix.patch b/games-arcade/kobodeluxe/files/kobodeluxe-0.5.1-midi-crash-fix.patch
new file mode 100644
index 000000000000..0b0fd10d9b08
--- /dev/null
+++ b/games-arcade/kobodeluxe/files/kobodeluxe-0.5.1-midi-crash-fix.patch
@@ -0,0 +1,13 @@
+diff -up KoboDeluxe-0.5.1/sound/a_midicon.c~ KoboDeluxe-0.5.1/sound/a_midicon.c
+--- KoboDeluxe-0.5.1/sound/a_midicon.c~ 2015-06-03 20:31:31.000000000 +0200
++++ KoboDeluxe-0.5.1/sound/a_midicon.c 2015-06-03 20:47:40.836311461 +0200
+@@ -120,7 +120,8 @@ static inline void __press(unsigned ch,
+ {
+ m[ch].next[key] = -1;
+ m[ch].prev[key] = m[ch].last;
+- m[ch].next[m[ch].last] = (char)key;
++ if (m[ch].last != -1)
++ m[ch].next[m[ch].last] = (char)key;
+ m[ch].last = (char)key;
+ }
+
diff --git a/games-arcade/kobodeluxe/kobodeluxe-0.5.1-r4.ebuild b/games-arcade/kobodeluxe/kobodeluxe-0.5.1-r4.ebuild
new file mode 100644
index 000000000000..e3d86250f0f4
--- /dev/null
+++ b/games-arcade/kobodeluxe/kobodeluxe-0.5.1-r4.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit desktop
+
+MY_P="KoboDeluxe-${PV/_/}"
+DESCRIPTION="An SDL port of xkobo, a addictive space shoot-em-up"
+HOMEPAGE="http://www.olofson.net/kobodl/"
+SRC_URI="http://www.olofson.net/kobodl/download/${MY_P}.tar.bz2"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc64 ~x86"
+IUSE="opengl"
+
+DEPEND="media-libs/libsdl[joystick]
+ media-libs/sdl-image[png]
+ opengl? ( virtual/opengl )
+"
+RDEPEND="${DEPEND}
+ acct-group/gamestat
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-glibc29.patch
+ "${FILESDIR}"/${P}-glibc2.10.patch
+ "${FILESDIR}"/${P}-clang.patch
+ "${FILESDIR}"/${P}-midi-crash-fix.patch
+)
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}" || die
+ unpack ./icons.tar.gz
+}
+
+src_prepare() {
+ default
+
+ # Fix paths
+ sed -i \
+ -e 's:\$(datadir)/kobo-deluxe:$(datadir)/kobodeluxe:' \
+ -e "s:\$(sharedstatedir)/kobo-deluxe/scores:${EPREFIX}/var/games/kobodeluxe:" \
+ configure || die "sed configure failed"
+
+ sed -i \
+ -e 's:kobo-deluxe:kobodeluxe:' \
+ data/gfx/Makefile.in \
+ data/sfx/Makefile.in || die "sed data/Makefile.in failed"
+}
+
+src_configure() {
+ econf $(use_enable opengl)
+}
+
+src_install() {
+ default
+
+ for size in 16 22 32 48 64 128; do
+ newicon -s "${size}" icons/KDE/icons/${size}x${size}/kobodl.png KoboDeluxe.png
+ done
+ make_desktop_entry kobodl "Kobo Deluxe" KoboDeluxe
+
+ keepdir /var/games/kobodeluxe
+ fowners -R :gamestat /var/games/kobodeluxe/ /usr/bin/kobodl
+ fperms g+s /usr/bin/kobodl
+ fperms -R g+w /var/games/kobodeluxe
+}