diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-arcade/njam/njam-1.25-r1.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-arcade/njam/njam-1.25-r1.ebuild')
-rw-r--r-- | games-arcade/njam/njam-1.25-r1.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/games-arcade/njam/njam-1.25-r1.ebuild b/games-arcade/njam/njam-1.25-r1.ebuild new file mode 100644 index 000000000000..2bdb8acf9b96 --- /dev/null +++ b/games-arcade/njam/njam-1.25-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2018 Gentoo Foundation +# 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="mirror://sourceforge/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 +} |