| 1 |
# Copyright 1999-2011 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/games-action/luola/luola-1.3.0-r1.ebuild,v 1.3 2009/01/05 17:39:11 mr_bones_ Exp $
|
| 4 |
|
| 5 |
EAPI=2
|
| 6 |
inherit eutils autotools games
|
| 7 |
|
| 8 |
DESCRIPTION="A 2D multiplayer arcade game resembling V-Wing"
|
| 9 |
HOMEPAGE="http://luolamies.org/software/luola/"
|
| 10 |
PATCH_SET="http://luolamies.org/software/luola/luola-1.3.0-1.patch
|
| 11 |
http://luolamies.org/software/luola/luola-1.3.0-2.patch"
|
| 12 |
SRC_URI="http://luolamies.org/software/luola/${P}.tar.gz
|
| 13 |
http://www.luolamies.org/software/luola/stdlevels-6.0.tar.gz
|
| 14 |
http://www.luolamies.org/software/luola/nostalgia-1.2.tar.gz
|
| 15 |
${PATCH_SET}"
|
| 16 |
|
| 17 |
LICENSE="GPL-2"
|
| 18 |
SLOT="0"
|
| 19 |
KEYWORDS="amd64 ~ppc x86"
|
| 20 |
IUSE=""
|
| 21 |
|
| 22 |
DEPEND="media-libs/libsdl
|
| 23 |
media-libs/sdl-gfx
|
| 24 |
media-libs/sdl-image
|
| 25 |
media-libs/sdl-mixer
|
| 26 |
media-libs/sdl-ttf"
|
| 27 |
|
| 28 |
src_prepare() {
|
| 29 |
local p
|
| 30 |
|
| 31 |
epatch "${FILESDIR}"/${P}-underlink.patch
|
| 32 |
|
| 33 |
cd "${S}/src"
|
| 34 |
for p in ${PATCH_SET}
|
| 35 |
do
|
| 36 |
epatch "${DISTDIR}/${p##*/}"
|
| 37 |
done
|
| 38 |
|
| 39 |
cd ..
|
| 40 |
eautoreconf
|
| 41 |
}
|
| 42 |
|
| 43 |
src_configure() {
|
| 44 |
egamesconf --enable-sound
|
| 45 |
}
|
| 46 |
|
| 47 |
src_install() {
|
| 48 |
emake DESTDIR="${D}" install || die "emake install failed"
|
| 49 |
insinto "${GAMES_DATADIR}"/${PN}/levels
|
| 50 |
doins "${WORKDIR}"/*.{lev,png} || die "doins failed"
|
| 51 |
dodoc AUTHORS ChangeLog DATAFILE FAQ LEVELFILE README TODO \
|
| 52 |
RELEASENOTES.txt ../README.Nostalgia
|
| 53 |
newdoc ../README README.stdlevels
|
| 54 |
doicon luola.png
|
| 55 |
make_desktop_entry luola Luola
|
| 56 |
prepgamesdirs
|
| 57 |
}
|