mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
games-arcade/njam: Drop old
Package-Manager: Portage-2.3.31, Repoman-2.3.9
This commit is contained in:
@@ -1,46 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit eutils flag-o-matic games
|
||||
|
||||
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() {
|
||||
sed -i \
|
||||
-e "s:hiscore.dat:${GAMES_STATEDIR}/${PN}/\0:" \
|
||||
src/njam.cpp \
|
||||
|| die "sed failed"
|
||||
sed -i \
|
||||
-e "/hiscore.dat/ s:\$(DEFAULT_LIBDIR):${GAMES_STATEDIR}:" \
|
||||
Makefile.in \
|
||||
|| die "sed failed"
|
||||
epatch "${FILESDIR}"/${P}-gcc45.patch
|
||||
# njam segfaults on startup with -Os
|
||||
replace-flags "-Os" "-O2"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir "${GAMES_STATEDIR}/${PN}"
|
||||
emake DESTDIR="${D}" install
|
||||
dohtml -r "${D}${GAMES_DATADIR}/njam/html/"*
|
||||
rm -rf "${D}${GAMES_DATADIR}/njam/html/"
|
||||
newicon data/njamicon.bmp njam.bmp
|
||||
make_desktop_entry njam Njam /usr/share/pixmaps/njam.bmp
|
||||
prepgamesdirs
|
||||
}
|
||||
Reference in New Issue
Block a user