View previous topic :: View next topic |
Author |
Message |
SnowBear l33t
Joined: 03 Sep 2005 Posts: 773 Location: France - Bordeaux
|
Posted: Fri May 19, 2006 9:30 pm Post subject: [ebuild] xmoto 0.2.4 |
|
|
[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 |
|
|
boozo Advocate
Joined: 01 Jul 2004 Posts: 3193
|
|
Back to top |
|
|
SnowBear l33t
Joined: 03 Sep 2005 Posts: 773 Location: France - Bordeaux
|
Posted: Sat May 20, 2006 5:41 am Post subject: |
|
|
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 |
|
|
SnowBear l33t
Joined: 03 Sep 2005 Posts: 773 Location: France - Bordeaux
|
Posted: Sat May 20, 2006 6:23 am Post subject: |
|
|
'-_-
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 |
|
|
-KuRGaN- Veteran
Joined: 05 Dec 2004 Posts: 1142 Location: Besançon (25) [FRANCE]
|
Posted: Sat May 20, 2006 7:37 am Post subject: |
|
|
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 |
|
|
SnowBear l33t
Joined: 03 Sep 2005 Posts: 773 Location: France - Bordeaux
|
Posted: Sat May 20, 2006 1:56 pm Post subject: |
|
|
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 |
|
|
PabOu Veteran
Joined: 11 Feb 2004 Posts: 1088 Location: Hélécine - Belgium
|
Posted: Sat May 20, 2006 2:11 pm Post subject: |
|
|
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 |
|
|
SnowBear l33t
Joined: 03 Sep 2005 Posts: 773 Location: France - Bordeaux
|
Posted: Sat May 20, 2006 2:44 pm Post subject: |
|
|
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 |
|
|
sachielle n00b
Joined: 20 Dec 2005 Posts: 23 Location: Paris, France
|
Posted: Sat May 20, 2006 3:24 pm Post subject: |
|
|
Superbe jeu, en effet.
Sinon, cet ebuild fonctionne très bien également sur amd64, pensez à l'ajouter aux KEYWORDS . |
|
Back to top |
|
|
SnowBear l33t
Joined: 03 Sep 2005 Posts: 773 Location: France - Bordeaux
|
Posted: Sat May 20, 2006 3:39 pm Post subject: |
|
|
ok...
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 |
|
|
geekounet Bodhisattva
Joined: 11 Oct 2004 Posts: 3772 Location: Wellington, Aotearoa
|
Posted: Sat May 20, 2006 3:45 pm Post subject: |
|
|
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 |
|
|
SnowBear l33t
Joined: 03 Sep 2005 Posts: 773 Location: France - Bordeaux
|
Posted: Sat May 20, 2006 5:24 pm Post subject: |
|
|
Merci pour le tuyau,
je vais essayer de voir comment ça fonctionne |
|
Back to top |
|
|
SnowBear l33t
Joined: 03 Sep 2005 Posts: 773 Location: France - Bordeaux
|
Posted: Mon Jun 26, 2006 11:47 am Post subject: |
|
|
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 |
|
|
geekounet Bodhisattva
Joined: 11 Oct 2004 Posts: 3772 Location: Wellington, Aotearoa
|
Posted: Mon Jun 26, 2006 12:31 pm Post subject: |
|
|
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 :
|
|
Back to top |
|
|
SnowBear l33t
Joined: 03 Sep 2005 Posts: 773 Location: France - Bordeaux
|
Posted: Mon Jun 26, 2006 1:24 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Mon Jun 26, 2006 4:59 pm Post subject: |
|
|
trop, bien merci;), j'connaissais mais je n'y avais jamais jouer, c'est trop prenant, je lutte pour arreter! |
|
Back to top |
|
|
SnowBear l33t
Joined: 03 Sep 2005 Posts: 773 Location: France - Bordeaux
|
Posted: Mon Jun 26, 2006 5:11 pm Post subject: |
|
|
truc wrote: | trop, bien merci;), j'connaissais mais je n'y avais jamais jouer, c'est trop prenant, je lutte pour arreter! |
pareil |
|
Back to top |
|
|
Trapamoosch Apprentice
Joined: 08 May 2004 Posts: 203
|
Posted: Mon Jun 26, 2006 6:01 pm Post subject: |
|
|
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 |
|
|
geekounet Bodhisattva
Joined: 11 Oct 2004 Posts: 3772 Location: Wellington, Aotearoa
|
Posted: Mon Jun 26, 2006 6:34 pm Post subject: |
|
|
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 |
|
|
SnowBear l33t
Joined: 03 Sep 2005 Posts: 773 Location: France - Bordeaux
|
Posted: Mon Jun 26, 2006 7:09 pm Post subject: |
|
|
Merci à toi
Les majs sont ici : http://www.gd2d.net/portage/
C'est pas comme ça que ton projet va avancer |
|
Back to top |
|
|
geekounet Bodhisattva
Joined: 11 Oct 2004 Posts: 3772 Location: Wellington, Aotearoa
|
Posted: Mon Jun 26, 2006 8:28 pm Post subject: |
|
|
SnowBear wrote: | C'est pas comme ça que ton projet va avancer |
Ouais, ça fait des heures que je suis dessus et j'ai presque rien écris Aller faut que je me motive, je dois finir ça et après c'est vraiment les vacs ! |
|
Back to top |
|
|
ratur n00b
Joined: 23 Jul 2004 Posts: 54 Location: Belgium
|
Posted: Mon Jun 26, 2006 8:42 pm Post subject: |
|
|
Merci pour l'ebuild, ça a aussi fonctionné impec chez moi |
|
Back to top |
|
|
man in the hill Veteran
Joined: 15 Dec 2005 Posts: 1552 Location: Madinina
|
Posted: Mon Jun 26, 2006 9:01 pm Post subject: |
|
|
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 |
|
|
SnowBear l33t
Joined: 03 Sep 2005 Posts: 773 Location: France - Bordeaux
|
Posted: Mon Jun 26, 2006 9:03 pm Post subject: |
|
|
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à
Par contre je peux te conseiller ce lien (ma source d'info) : http://dev.gentoo.org/~plasmaroo/devmanual/
Merci à tous pour vos remarques . |
|
Back to top |
|
|
geekounet Bodhisattva
Joined: 11 Oct 2004 Posts: 3772 Location: Wellington, Aotearoa
|
Posted: Mon Jun 26, 2006 9:22 pm Post subject: |
|
|
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 |
|
|
|