BuBuaBu l33t
Joined: 09 Jul 2005 Posts: 914 Location: France
|
Posted: Fri Apr 28, 2006 11:05 am Post subject: [Ebuild] SuperTux-svn |
|
|
Il y a peu de temps j'avais commencer un ebuild pour supertux en svn.
Donc voila le résultat.
Code: | # Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit subversion eutils games
ESVN_REPO_URI="svn://svn.berlios.de/supertux/trunk"
ESVN_PROJECT="supertux"
ESVN_BOOTSTRAP="cd ./supertux; ./autogen.sh"
DESCRIPTION="A game similar to Super Mario Bros."
HOMEPAGE="http://supertux.berlios.de/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="opengl"
RDEPEND=">=media-libs/libsdl-1.2.4
>=media-libs/sdl-image-1.2.2
>=media-libs/sdl-mixer-1.2.5
sys-libs/zlib
dev-games/physfs"
DEPEND="${RDEPEND}
|| ( x11-libs/libXt virtual/x11 )"
pkg_setup() {
if ! built_with_use media-libs/sdl-mixer mikmod ; then
die "Please emerge sdl-mixer with USE=mikmod"
fi
games_pkg_setup
}
src_unpack() {
subversion_src_unpack
# We need to create the ChangeLog here
TZ=UTC svn log -v "${ESVN_REPO_URI}" >ChangeLog
if use !opengl
then
epatch ${S}/supertux/contrib/supertux-nogl.diff
fi
}
src_compile() {
cd ${S}/supertux
egamesconf \
--disable-dependency-tracking \
--disable-debug \
|| die
jam || die "emake failed"
}
src_install() {
jam DESTDIR="${D}" \
desktopdir=/usr/share/applications \
icondir=/usr/share/pixmaps \
install || die "make install failed"
dodoc AUTHORS ChangeLog LEVELDESIGN README TODO
prepgamesdirs
} |
la fonction src_install() est a refaire : le script fourni est cassé et ne sera pas refait avant la release. |
|