Code: Select all
# Distributed under the terms of the GNU General Public License v2
inherit subversion games
ESVN_REPO_URI="http://svn.berlios.de/svnroot/repos/supertux/trunk/supertux"
ESVN_BOOTSTRAP=""
S=${WORKDIR}/${ECVS_MODULE}
DESCRIPTION="Supertux is a 2d run game, similar to giana sisters and supermario"
HOMEPAGE="http://supertux.berlios.de/wiki/index.php/Main_Page"
SRC_URI=""
IUSE="opengl"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="-*"
DEPEND="opengl? ( virtual/opengl )
dev-util/jam
media-libs/openal
dev-games/physfs
virtual/x11
>=media-libs/libsdl-1.1.5
>=media-libs/sdl-image-1.2.2
>=media-libs/sdl-mixer-1.2.5"
src_compile() {
local myconf
myconf="${myconf} --prefix=/usr"
./autogen.sh ${myconf} || die "./autogen.sh failed"
egamesconf \
--disable-dependency-tracking \
`use_enable opengl` \
${myconf} || die
jam || die
}
src_install() {
dogamesbin supertux || die "dogamesbin failed"
dodir "${GAMES_DATADIR}/supertux" || die "dodir falied"
cp -r data/* "${D}/${GAMES_DATADIR}/supertux/" || die "cp failed"
rm "${D}/${GAMES_DATADIR}/supertux/Jamfile"
doicon data/images/engine/icons/supertux.png || die "doicon failed"
dodir "/usr/share/applications/" || die "dodir failed"
cp supertux.desktop "${D}/usr/share/applications/" || die "cp failed"
dodoc AUTHORS ChangeLog COPYING NEWS README TODO
prepgamesdirs
}
Code: Select all
echo "=games-arcade/supertux-9999 -*" >> /etc/portage/package.keywords
emerge -av supertux
Gracias por probarlo


