Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Ebuild] SuperTux-svn
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
BuBuaBu
l33t
l33t


Joined: 09 Jul 2005
Posts: 914
Location: France

PostPosted: Fri Apr 28, 2006 11:05 am    Post subject: [Ebuild] SuperTux-svn Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum