You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-action/noiz2sa/noiz2sa-0.51a.ebuild

47 lines
1.1 KiB

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
inherit eutils games
DESCRIPTION="Abstract Shooting Game"
HOMEPAGE="http://www.asahi-net.or.jp/~cs8k-cyu/windows/noiz2sa_e.html http://sourceforge.net/projects/noiz2sa/"
SRC_URI="mirror://sourceforge/noiz2sa/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE=""
DEPEND="media-libs/sdl-mixer[vorbis]
>=dev-libs/libbulletml-0.0.3
virtual/opengl"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${PN}/src
src_prepare(){
epatch "${FILESDIR}"/${P}-gcc41.patch \
"${FILESDIR}"/${P}-underlink.patch
sed -i \
-e "s:/.noiz2sa.prf:/noiz2sa.prf:" \
-e "s:getenv(\"HOME\"):\"${GAMES_STATEDIR}\":" \
attractmanager.c \
|| die "sed failed"
cp makefile.lin Makefile || die "Failed copying Makefile"
}
src_install(){
local datadir="${GAMES_DATADIR}/${PN}"
dogamesbin ${PN}
dodir "${datadir}" "${GAMES_STATEDIR}"
cp -r ../noiz2sa_share/* "${D}/${datadir}" || die "cp failed"
dodoc ../readme*
touch "${D}${GAMES_STATEDIR}/${PN}.prf"
fperms 660 "${GAMES_STATEDIR}/${PN}.prf"
prepgamesdirs
}