blob: 66852134223c8c948f59c58becd6645ac410ef78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/smclone/smclone-0.97.ebuild,v 1.2 2005/08/27 05:15:07 mr_bones_ Exp $
inherit eutils games
MUSIC_V=2.0_RC_1
DESCRIPTION="clone of Super Mario World"
HOMEPAGE="http://smclone.sourceforge.net/"
SRC_URI="mirror://sourceforge/smclone/SMC_${PV}_source.zip
mirror://sourceforge/smclone/SMC_${PV}_game.zip
mirror://sourceforge/smclone/music_${MUSIC_V}.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86"
IUSE=""
RDEPEND="media-libs/libsdl
media-libs/sdl-image
media-libs/sdl-mixer
media-libs/sdl-ttf
media-libs/sdl-gfx"
DEPEND="${RDEPEND}
app-arch/unzip
>=sys-apps/portage-2.0.51"
S="${WORKDIR}/${PVR}"
src_unpack() {
unpack SMC_${PV}_source.zip SMC_${PV}_game.zip
cd "${S}"
unpack music_${MUSIC_V}.zip
find . '(' -name '*.dll' -o -name '*.exe' ')' -exec rm {} \;
edos2unix Makefile.am autogen.sh configure.ac src/preferences.cpp src/savegame.cpp
chmod a+x autogen.sh
epatch "${FILESDIR}"/${P}-gentoo-paths.patch
sed -i \
-e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:g" \
configure.ac src/preferences.cpp
#Bump VERSION to the correct one for this release
sed -i \
-e "s/VERSION=0.96/VERSION=0.97/" \
configure.ac \
|| die "sed failed"
./autogen.sh || die "autogen failed"
chmod a+x configure
cd src
epatch "${FILESDIR}"/${P}-use-HOME.patch
}
src_install() {
dogamesbin src/smc || die "dogamesbin failed"
insinto "${GAMES_DATADIR}/${PN}"
doins -r data/* || die "doins"
# Clean up data directory
rm -f "${D}${GAMES_DATADIR}"/${PN}/{data/,}Makefile*
dodoc *.txt ../readme-linux.txt
cd ..
dohtml *.html *.css
prepgamesdirs
}
|