games-arcade/njam: drop old

Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/37375
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
Michael Mair-Keimberger
2024-06-30 13:56:52 +02:00
committed by Conrad Kostecki
parent d9ef913034
commit fa61c118e0
2 changed files with 0 additions and 53 deletions

View File

@@ -1,2 +1 @@
DIST njam-1.25-src.tar.gz 1665803 BLAKE2B 7e505bd2b6d1d50046c98a3e0edbe5cdd4831ee8d8525562d2b85296f98881f7aaab7154c2482c24be88015a81dc82d3d1b89693d6e7cc16a163a6f342f3b5e3 SHA512 d19c249ade34ede322245718fbc6fc79c5a0ed5f5da50989f88de48410dda3d7ae29f8968185166dfdc1dd23dae8126efe4a5f3c76c3731b90afd1c798f66917
DIST njam-1.25.tar.gz 1665803 BLAKE2B 7e505bd2b6d1d50046c98a3e0edbe5cdd4831ee8d8525562d2b85296f98881f7aaab7154c2482c24be88015a81dc82d3d1b89693d6e7cc16a163a6f342f3b5e3 SHA512 d19c249ade34ede322245718fbc6fc79c5a0ed5f5da50989f88de48410dda3d7ae29f8968185166dfdc1dd23dae8126efe4a5f3c76c3731b90afd1c798f66917

View File

@@ -1,52 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit desktop flag-o-matic
MY_P="${P}-src"
DESCRIPTION="Multi or single-player network Pacman-like game in SDL"
HOMEPAGE="http://njam.sourceforge.net/"
SRC_URI="https://downloads.sourceforge.net/njam/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="media-libs/sdl-mixer
media-libs/sdl-image
media-libs/libsdl
media-libs/sdl-net"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
src_prepare() {
default
sed -i \
-e "s:hiscore.dat:/var/${PN}/\0:" \
src/njam.cpp \
|| die "sed failed"
sed -i \
-e "/hiscore.dat/ s:\$(DEFAULT_LIBDIR):/var:" \
Makefile.in \
|| die "sed failed"
eapply "${FILESDIR}"/${P}-gcc45.patch
eapply "${FILESDIR}"/${P}-format-security.patch #542124
# njam segfaults on startup with -Os
replace-flags "-Os" "-O2"
}
src_install() {
default
HTML_DOCS="${ED}/usr/share/njam/html/*"
rm -rf "${ED}/usr/share/njam/html/"
rm -f "${ED}"/README "${ED}"/levels/readme.txt
newicon data/njamicon.bmp njam.bmp
make_desktop_entry njam Njam /usr/share/pixmaps/njam.bmp
}