Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ebuild] xmoto 0.2.4
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
SnowBear
l33t
l33t


Joined: 03 Sep 2005
Posts: 773
Location: France - Bordeaux

PostPosted: Fri May 19, 2006 9:30 pm    Post subject: [ebuild] xmoto 0.2.4 Reply with quote

[EDIT] la version actuelle est ici : http://mousur.ath.cx/portage/



Bonjour à tous,
je viens de faire mon premier ebuild, j'espère qu'il n'est pas trop buggé ^^.

xmoto-0.1.14.ebuild
Code:
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="X-Moto is a challenging 2D motocross platform game"
HOMEPAGE="http://xmoto.sourceforge.net"
SRC_URI="mirror://sourceforge/xmoto/${P}-src.tar.gz"

LICENSE="GPL"
SLOT="0"
KEYWORDS="x86"
IUSE=""

DEPEND="media-libs/libsdl
        virtual/opengl
        media-libs/jpeg
        media-libs/libpng
        sys-libs/zlib
        dev-lang/lua
        dev-games/ode
        net-misc/curl"
RDEPEND=""

src_compile() {
    econf --with-posix-regex || die "econf failed"
    emake || die "emake failed"
}

src_install() {
    make DESTDIR="${D}" install || die "install failed"

    dodoc FAQ NEWS README
    dohtml EXTENDING.html ctags.html
}   


N'hésitez pas à me laisser vos feeds (erreur à la compilation...)

EDIT : il manque les icones pour le menu de gnome/kde :(


Last edited by SnowBear on Sat Dec 23, 2006 2:01 pm; edited 8 times in total
Back to top
View user's profile Send private message
boozo
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3193

PostPosted: Fri May 19, 2006 10:34 pm    Post subject: Reply with quote

'alute

merci pour le message je t'ajoute desuite :wink:

PS : le lien vers le 0.1.12 de l'overlay de ferdy peut-être lui envoyer le bump si personne n'a rien à redire :)
_________________
" Un psychotique, c'est quelqu'un qui croit dur comme fer que 2 et 2 font 5, et qui en est pleinement satisfait.
Un névrosé, c'est quelqu'un qui sait pertinemment que 2 et 2 font 4, et ça le rend malade ! "
Back to top
View user's profile Send private message
SnowBear
l33t
l33t


Joined: 03 Sep 2005
Posts: 773
Location: France - Bordeaux

PostPosted: Sat May 20, 2006 5:41 am    Post subject: Reply with quote

Ho,
j'avais même pas vu qu'il y avait déjà un overlay :(

EDIT : j'en profite pour mettre une nouvelle version (basé sur l'overlay de ferdy)

Code:
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit games

DESCRIPTION="X-Moto is a challenging 2D motocross platform game"
HOMEPAGE="http://xmoto.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""

DEPEND="${RDEPEND}"
RDEPEND="media-libs/libsdl
        media-libs/sdl-mixer
        media-libs/jpeg
        media-libs/libpng
        sys-libs/zlib
        dev-lang/lua
        dev-games/ode
        net-misc/curl"

src_install() {
    make DESTDIR="${D}" install || die "install failed"
}
Back to top
View user's profile Send private message
SnowBear
l33t
l33t


Joined: 03 Sep 2005
Posts: 773
Location: France - Bordeaux

PostPosted: Sat May 20, 2006 6:23 am    Post subject: Reply with quote

'-_-
encore une mise à jour, cette fois ci il y a l'entrée dans gnome/kde, mais pas encore d'icone :( .
Je ne sais pas comment faire pour avoir l'icone (je sais pas s'il y en a une et si c'est le cas ou elle est...).
(Apparement à l'emerge aucune icone n'est copié...).

Code:
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit games

DESCRIPTION="X-Moto is a challenging 2D motocross platform game"
HOMEPAGE="http://xmoto.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""

DEPEND="${RDEPEND}"
RDEPEND="media-libs/libsdl
        media-libs/sdl-mixer
        media-libs/jpeg
        media-libs/libpng
        sys-libs/zlib
        dev-lang/lua
        dev-games/ode
        net-misc/curl"

src_install() {
        make DESTDIR="${D}" install || die "install failed"
        make_desktop_entry xmoto Xmoto xmoto

}



/me va arréter de flooder maintenant ^^
Back to top
View user's profile Send private message
-KuRGaN-
Veteran
Veteran


Joined: 05 Dec 2004
Posts: 1142
Location: Besançon (25) [FRANCE]

PostPosted: Sat May 20, 2006 7:37 am    Post subject: Reply with quote

Bien joué en tout cas pour Xmoto, j'ai essayé ça sur Ubuntu et c'est génial, j'ai même réussi à faire jouer des gars sous windows.
On peut DL des niveaux supplémentaires ici
_________________
Knight Gent00 Industries RiDeR !!!!
Back to top
View user's profile Send private message
SnowBear
l33t
l33t


Joined: 03 Sep 2005
Posts: 773
Location: France - Bordeaux

PostPosted: Sat May 20, 2006 1:56 pm    Post subject: Reply with quote

Voilà,
l'icone est disponible :

Code:
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit games

DESCRIPTION="X-Moto is a challenging 2D motocross platform game"
HOMEPAGE="http://xmoto.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""

DEPEND="${RDEPEND}"
RDEPEND="media-libs/libsdl
        media-libs/sdl-mixer
        media-libs/jpeg
        media-libs/libpng
        sys-libs/zlib
        dev-lang/lua
        dev-games/ode
        net-misc/curl"

src_install() {
        make DESTDIR="${D}" install || die "install failed"

        cd /tmp
        wget http://www.gd2d.net/portage/games-sport/xmoto/xmoto.xpm

        newicon /tmp/xmoto.xpm xmoto.xpm
        rm /tmp/xmoto.xpm

        make_desktop_entry xmoto Xmoto xmoto.xpm
}


L'ajout de l'icône est un peu pas trés propre mais bon ^^
Back to top
View user's profile Send private message
PabOu
Veteran
Veteran


Joined: 11 Feb 2004
Posts: 1088
Location: Hélécine - Belgium

PostPosted: Sat May 20, 2006 2:11 pm    Post subject: Reply with quote

chouette jeu, j'approuve ;)
Je l'ai découvert à la version 0.1.11 et en sachant que ce n'est qu'une version alpha, je suis très content :)

edit : vu qu'il est en alpha, je passerais l'ebuild en ~x86

edit 2 : à quoi ca sert de mettre le DEPEND="${RDEPEND}" avant le RDEPEND ?
_________________
Mangez du poulet !
Back to top
View user's profile Send private message
SnowBear
l33t
l33t


Joined: 03 Sep 2005
Posts: 773
Location: France - Bordeaux

PostPosted: Sat May 20, 2006 2:44 pm    Post subject: Reply with quote

Ok,
donc petite correction ^^ :
Code:
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit games

DESCRIPTION="X-Moto is a challenging 2D motocross platform game"
HOMEPAGE="http://xmoto.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND="${RDEPEND}"
RDEPEND="media-libs/libsdl
        media-libs/sdl-mixer
        media-libs/jpeg
        media-libs/libpng
        sys-libs/zlib
        dev-lang/lua
        dev-games/ode
        net-misc/curl"

src_install() {
        make DESTDIR="${D}" install || die "install failed"

        cd /tmp
        wget http://www.gd2d.net/portage/games-sport/xmoto/xmoto.xpm

        newicon /tmp/xmoto.xpm xmoto.xpm
        rm /tmp/xmoto.xpm

        make_desktop_entry xmoto Xmoto xmoto.xpm
}


Pour le rdepend, j'ai fait le copié collé de l'overlay de ferdy (je comprends pas encore toutes les subtilités des ebuilds ^^)
Back to top
View user's profile Send private message
sachielle
n00b
n00b


Joined: 20 Dec 2005
Posts: 23
Location: Paris, France

PostPosted: Sat May 20, 2006 3:24 pm    Post subject: Reply with quote

Superbe jeu, en effet.

Sinon, cet ebuild fonctionne très bien également sur amd64, pensez à l'ajouter aux KEYWORDS ;).
Back to top
View user's profile Send private message
SnowBear
l33t
l33t


Joined: 03 Sep 2005
Posts: 773
Location: France - Bordeaux

PostPosted: Sat May 20, 2006 3:39 pm    Post subject: Reply with quote

ok... :D
Code:
DESCRIPTION="X-Moto is a challenging 2D motocross platform game"
HOMEPAGE="http://xmoto.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

DEPEND="${RDEPEND}"
RDEPEND="media-libs/libsdl
        media-libs/sdl-mixer
        media-libs/jpeg
        media-libs/libpng
        sys-libs/zlib
        dev-lang/lua
        dev-games/ode
        net-misc/curl"

src_install() {
        make DESTDIR="${D}" install || die "install failed"

        cd /tmp
        wget http://www.gd2d.net/portage/games-sport/xmoto/xmoto.xpm

        newicon /tmp/xmoto.xpm xmoto.xpm
        rm /tmp/xmoto.xpm

        make_desktop_entry xmoto Xmoto xmoto.xpm
}
Back to top
View user's profile Send private message
geekounet
Bodhisattva
Bodhisattva


Joined: 11 Oct 2004
Posts: 3772
Location: Wellington, Aotearoa

PostPosted: Sat May 20, 2006 3:45 pm    Post subject: Reply with quote

Pour le :
Code:
wget http://www.gd2d.net/portage/games-sport/xmoto/xmoto.xpm

ne serait t'il pas plus simple et plus propre de le mettre plutôt dans le $SRC_URI ?
Je pense aux gens qui n'auraient pas wget (pour une raison ou une autre) et utilisent donc autre chose. Ainsi portage utilisera $FETCHCOMMAND pour le télécharger comme l'utilisateur préfère. Je pense aussi aux pb de proxy et autres ...
Back to top
View user's profile Send private message
SnowBear
l33t
l33t


Joined: 03 Sep 2005
Posts: 773
Location: France - Bordeaux

PostPosted: Sat May 20, 2006 5:24 pm    Post subject: Reply with quote

Merci pour le tuyau,
je vais essayer de voir comment ça fonctionne ;)
Back to top
View user's profile Send private message
SnowBear
l33t
l33t


Joined: 03 Sep 2005
Posts: 773
Location: France - Bordeaux

PostPosted: Mon Jun 26, 2006 11:47 am    Post subject: Reply with quote

Petit up car je viens de faire un nouvel ebuild (car nouvelle version).

Je me suis basé sur l'ebuild de ferdy.
J'ai un problème pour l'ajout de l'icone et l'ajout dans le menu jeu de gnome/kde...

mon code
Code:
DESCRIPTION="X-Moto is a challenging 2D motocross platform game"
HOMEPAGE="http://xmoto.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz
        http://www.gd2d.net/portage/games-arcade/xmoto/xmoto-icon.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

DEPEND="${RDEPEND}"
RDEPEND="media-libs/libsdl
        media-libs/sdl-mixer
        media-libs/jpeg
        media-libs/libpng
        sys-libs/zlib
        dev-lang/lua
        dev-games/ode
        net-misc/curl"

src_install() {
        mv ${PORTAGE_TMPDIR}/portage/${P}/work/xmoto.xpm ${PORTAGE_TMPDIR}/portage/${P}/work/${P}/

        doicon xmoto.xpm

        make_desktop_entry xmoto "Xmoto" xmoto.xpm

        make DESTDIR="${D}" install || die "install failed"
}


Toute l'installation se passe à merveille sauf 2 erreurs :
Code:
/usr/local/portage/games-arcade/xmoto/xmoto-0.1.16.ebuild: line 24: doicon: command not found
/usr/local/portage/games-arcade/xmoto/xmoto-0.1.16.ebuild: line 26: make_desktop_entry: command not found


j'ai testé avec un autre ebuild qui utilisait ces 2 fonctions et il n'y a pas de problèmes.
Je suppose que celà vient du fait qu'il ne trouve pas l'icone ?
Cordialement.
Back to top
View user's profile Send private message
geekounet
Bodhisattva
Bodhisattva


Joined: 11 Oct 2004
Posts: 3772
Location: Wellington, Aotearoa

PostPosted: Mon Jun 26, 2006 12:31 pm    Post subject: Reply with quote

SnowBear wrote:
Toute l'installation se passe à merveille sauf 2 erreurs :
Code:
/usr/local/portage/games-arcade/xmoto/xmoto-0.1.16.ebuild: line 24: doicon: command not found
/usr/local/portage/games-arcade/xmoto/xmoto-0.1.16.ebuild: line 26: make_desktop_entry: command not found


j'ai testé avec un autre ebuild qui utilisait ces 2 fonctions et il n'y a pas de problèmes.
Je suppose que celà vient du fait qu'il ne trouve pas l'icone ?
Cordialement.


Non, c'est parce que tu a oublié ceci au début de ton ebuild :
Code:
inherit eutils
Back to top
View user's profile Send private message
SnowBear
l33t
l33t


Joined: 03 Sep 2005
Posts: 773
Location: France - Bordeaux

PostPosted: Mon Jun 26, 2006 1:24 pm    Post subject: Reply with quote

Merci,
ça marche :)

Code:
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils games

DESCRIPTION="X-Moto is a challenging 2D motocross platform game"
HOMEPAGE="http://xmoto.sourceforge.net"
SRC_URI="http://www.gd2d.net/portage/games-arcade/xmoto/xmoto-0.1.16.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

DEPEND="${RDEPEND}"
RDEPEND="media-libs/libsdl
        media-libs/sdl-mixer
        media-libs/jpeg
        media-libs/libpng
        sys-libs/zlib
        dev-lang/lua
        dev-games/ode
        net-misc/curl"

src_install() {
#       mv ${PORTAGE_TMPDIR}/portage/${P}/work/xmoto.xpm ${PORTAGE_TMPDIR}/portage/${P}/work/${P}/

        make DESTDIR="${D}" install || die "install failed"

        doicon xmoto.xpm

        make_desktop_entry xmoto "Xmoto" xmoto.xpm
}


Maintenant on peut passer au prochain ebuild :D
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Mon Jun 26, 2006 4:59 pm    Post subject: Reply with quote

trop, bien merci;), j'connaissais mais je n'y avais jamais jouer, c'est trop prenant, je lutte pour arreter!
Back to top
View user's profile Send private message
SnowBear
l33t
l33t


Joined: 03 Sep 2005
Posts: 773
Location: France - Bordeaux

PostPosted: Mon Jun 26, 2006 5:11 pm    Post subject: Reply with quote

truc wrote:
trop, bien merci;), j'connaissais mais je n'y avais jamais jouer, c'est trop prenant, je lutte pour arreter!


pareil :D
Back to top
View user's profile Send private message
Trapamoosch
Apprentice
Apprentice


Joined: 08 May 2004
Posts: 203

PostPosted: Mon Jun 26, 2006 6:01 pm    Post subject: Reply with quote

Ah mais excellent, je jouais à un jeu avec exactement le même principe il y a 8 ans sous DOS. J'ai toujours voulu y rejouer, mais je l'avais jamais retrouvé (ça devait s'appeler "Motocross" ou un truc du genre).
Pouvoir y rejouer en mieux sous Linux, c'est énorme, merci !
Back to top
View user's profile Send private message
geekounet
Bodhisattva
Bodhisattva


Joined: 11 Oct 2004
Posts: 3772
Location: Wellington, Aotearoa

PostPosted: Mon Jun 26, 2006 6:34 pm    Post subject: Reply with quote

Pour faciliter les upgrade d'ebuild, il vaudrait mieux mettre :
Code:
SRC_URI="http://www.gd2d.net/portage/games-arcade/xmoto/${P}.tgz"

:)

EDIT : et puis pour suivre les recommandations des développeurs : pour bénéficier de la parallélisation pendant l'install, il faut mettre emake au lieu de make
Code:
emake DESTDIR="${D}" install || die "install failed"
Back to top
View user's profile Send private message
SnowBear
l33t
l33t


Joined: 03 Sep 2005
Posts: 773
Location: France - Bordeaux

PostPosted: Mon Jun 26, 2006 7:09 pm    Post subject: Reply with quote

Merci à toi ;)

Les majs sont ici : http://www.gd2d.net/portage/


C'est pas comme ça que ton projet va avancer :D
Back to top
View user's profile Send private message
geekounet
Bodhisattva
Bodhisattva


Joined: 11 Oct 2004
Posts: 3772
Location: Wellington, Aotearoa

PostPosted: Mon Jun 26, 2006 8:28 pm    Post subject: Reply with quote

SnowBear wrote:
C'est pas comme ça que ton projet va avancer :D


Ouais, ça fait des heures que je suis dessus et j'ai presque rien écris :P Aller faut que je me motive, je dois finir ça et après c'est vraiment les vacs ! :D
Back to top
View user's profile Send private message
ratur
n00b
n00b


Joined: 23 Jul 2004
Posts: 54
Location: Belgium

PostPosted: Mon Jun 26, 2006 8:42 pm    Post subject: Reply with quote

Merci pour l'ebuild, ça a aussi fonctionné impec chez moi :)
Back to top
View user's profile Send private message
man in the hill
Veteran
Veteran


Joined: 15 Dec 2005
Posts: 1552
Location: Madinina

PostPosted: Mon Jun 26, 2006 9:01 pm    Post subject: Reply with quote

pierreg wrote:
EDIT : et puis pour suivre les recommandations des développeurs : pour bénéficier de la parallélisation pendant l'install, il faut mettre emake au lieu de make
Code:
emake DESTDIR="${D}" install || die "install failed"


Ou as-tu lu cela ?


Merci ,

Bravo, SnowBear , je connaît pas ce jeu mais je vais tester ton ebuild sur portable HP amd64 Sempron 3200+.

Tu saurais pas des fois comment on installe un paquet CVS via un ebuild .


@+
_________________
Get Up and Go !
Back to top
View user's profile Send private message
SnowBear
l33t
l33t


Joined: 03 Sep 2005
Posts: 773
Location: France - Bordeaux

PostPosted: Mon Jun 26, 2006 9:03 pm    Post subject: Reply with quote

man in the hill wrote:
pierreg wrote:
EDIT : et puis pour suivre les recommandations des développeurs : pour bénéficier de la parallélisation pendant l'install, il faut mettre emake au lieu de make
Code:
emake DESTDIR="${D}" install || die "install failed"


Ou as-tu lu cela ?


Merci ,

Bravo, SnowBear , je connaît pas ce jeu mais je vais tester ton ebuild sur portable HP amd64 Sempron 3200+.

Tu saurais pas des fois comment on installe un paquet CVS via un ebuild .


@+


Houlla malheureu, je n'en suis pas encore là :D
Par contre je peux te conseiller ce lien (ma source d'info) : http://dev.gentoo.org/~plasmaroo/devmanual/


Merci à tous pour vos remarques :oops: .
Back to top
View user's profile Send private message
geekounet
Bodhisattva
Bodhisattva


Joined: 11 Oct 2004
Posts: 3772
Location: Wellington, Aotearoa

PostPosted: Mon Jun 26, 2006 9:22 pm    Post subject: Reply with quote

man in the hill wrote:
pierreg wrote:
EDIT : et puis pour suivre les recommandations des développeurs : pour bénéficier de la parallélisation pendant l'install, il faut mettre emake au lieu de make
Code:
emake DESTDIR="${D}" install || die "install failed"


Ou as-tu lu cela ?


Sur la mailing-list gentoo-dev ya pas longtemps (ici)

et aussi :

/usr/portage/skel.ebuild:
src_install() {
    # You must *personally verify* that this trick doesn't install
    # anything outside of DESTDIR; do this by reading and
    # understanding the install part of the Makefiles.
    # This is the preferred way to install.
    emake DESTDIR="${D}" install || die "emake install failed"

    # When you hit a failure with emake, do not just use make. It is
    # better to fix the Makefiles to allow proper parallelization.
    # If you fail with that, use "emake -j1", it's still better than make.

    # For Makefiles that don't make proper use of DESTDIR, setting
    # prefix is often an alternative.  However if you do this, then
    # you also need to specify mandir and infodir, since they were
    # passed to ./configure as absolute paths (overriding the prefix
    # setting).
    #emake \
    #   prefix="${D}"/usr \
    #   mandir="${D}"/usr/share/man \
    #   infodir="${D}"/usr/share/info \
    #   libdir="${D}"/usr/$(get_libdir) \
    #   install || die "emake install failed"
    # Again, verify the Makefiles!  We don't want anything falling
    # outside of ${D}.

    # The portage shortcut to the above command is simply:
    #
    #einstall || die "einstall failed"
}


EDIT: pour l'ebuild CVS, j'en ai fait un ici :)
EDIT2: que je viens de corriger au passage pour mettre en règles quelques trucs. Je teste et je met en ligne :)


Et meeerrrdeee mon projet ...
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
Goto page 1, 2, 3  Next
Page 1 of 3

 
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