diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2008-03-11 19:32:29 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2008-03-11 19:32:29 +0000 |
commit | e7ef7401e3f1d156224f8c9d15c746c6d0f84a83 (patch) | |
tree | 0a63cdfa7b82cb52232e7fc7b440afbc943d0495 /games-sports/xmoto | |
parent | Version bump (diff) | |
download | gentoo-2-e7ef7401e3f1d156224f8c9d15c746c6d0f84a83.tar.gz gentoo-2-e7ef7401e3f1d156224f8c9d15c746c6d0f84a83.tar.bz2 gentoo-2-e7ef7401e3f1d156224f8c9d15c746c6d0f84a83.zip |
version bump thanks to Tomáš Chvátal <tomas.chvatal@gmail.com> in bug 208008
(Portage version: 2.1.4.4)
Diffstat (limited to 'games-sports/xmoto')
-rw-r--r-- | games-sports/xmoto/ChangeLog | 7 | ||||
-rw-r--r-- | games-sports/xmoto/xmoto-0.4.1.ebuild | 108 |
2 files changed, 114 insertions, 1 deletions
diff --git a/games-sports/xmoto/ChangeLog b/games-sports/xmoto/ChangeLog index 4293066bebe9..f1be4f1a108c 100644 --- a/games-sports/xmoto/ChangeLog +++ b/games-sports/xmoto/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-sports/xmoto # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-sports/xmoto/ChangeLog,v 1.21 2008/02/29 19:39:28 carlo Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-sports/xmoto/ChangeLog,v 1.22 2008/03/11 19:32:29 genstef Exp $ + +*xmoto-0.4.1 (11 Mar 2008) + + 11 Mar 2008; Stefan Schweizer <genstef@gentoo.org> +xmoto-0.4.1.ebuild: + version bump thanks to Tomáš Chvátal <tomas.chvatal@gmail.com> in bug 208008 29 Feb 2008; Carsten Lohrke <carlo@gentoo.org> xmoto-0.2.0.ebuild: Remove icon extension from desktop entry to match Icon Theme Specification. diff --git a/games-sports/xmoto/xmoto-0.4.1.ebuild b/games-sports/xmoto/xmoto-0.4.1.ebuild new file mode 100644 index 000000000000..8c6571dac1b8 --- /dev/null +++ b/games-sports/xmoto/xmoto-0.4.1.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-sports/xmoto/xmoto-0.4.1.ebuild,v 1.1 2008/03/11 19:32:29 genstef Exp $ + +inherit eutils games + +DESCRIPTION="A challenging 2D motocross platform game" +HOMEPAGE="http://xmoto.tuxfamily.org" +SRC_URI="http://download.tuxfamily.org/${PN}/${PN}/${PV}/${P}-src.tar.gz + editor? ( http://download.tuxfamily.org/xmoto/svg2lvl/${PV}/inksmoto-${PV}.tar.gz )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="X editor nls" #sdl" + +RDEPEND="media-libs/jpeg + media-libs/libpng + media-libs/libsdl + media-libs/sdl-mixer + media-libs/sdl-ttf + net-misc/curl + dev-lang/lua + dev-games/ode + virtual/opengl + virtual/glu + nls? ( virtual/libintl ) + editor? ( >=media-gfx/inkscape-0.45 )" +DEPEND="${RDEPEND} + >=dev-db/sqlite-3 + nls? ( sys-devel/gettext )" +pkg_setup() { + if has_version ">=dev-lang/lua-5.1.3-r1" && ! built_with_use dev-lang/lua deprecated ; then + eerror "Re-emerge dev-lang/lua with 'deprecated' USE flag" + eerror "Check your USE flags, re-emerge the dependencies and then" + eerror "emerge this package." + die + fi +} +src_unpack() { + unpack ${A} + cd "${S}" + use editor && rm -f "${WORKDIR}"/${LVL}/{bezmisc,inkex}.py +} + +src_compile() { + #if use sdl ; then + # ewarn "sdl is known to be broken, if you experience troubles please turn of this useflag" + # RENDERER="--with-renderer-sdlGfx=1 --with-renderer-openGl=0" + #else + RENDERER="--with-renderer-sdlGfx=0 --with-renderer-openGl=1" + #fi + if ! use nls ; then + NLS="--disable-nls" + else + NLS="--with-gettext" + fi + egamesconf \ + --disable-dependency-tracking \ + --with-enable-zoom=1 \ + --enable-threads=posix \ + --with-gnu-ld \ + $(use_with X) \ + --with-localesdir=/usr/share/locale \ + ${RENDERER} \ + ${NLS} \ + || die + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + ## if it is not working nice way, we'll do it ugly way + if use nls ; then + dodir /usr/share/locale + + cd ${S}/po + for i in `ls -c1 |grep "\.gmo$"` ; do + BASE=$(echo ${i} |sed 's/\.gmo$//g') + msgfmt -v -o ${BASE}.mo ${BASE}.po + + insinto /usr/share/locale/${BASE}/LC_MESSAGES + newins ${BASE}.gmo xmoto.mo + done; + fi + cd ${S} + dodoc README TODO NEWS ChangeLog + + doicon extra/xmoto.xpm + domenu extra/xmoto.desktop + + prepgamesdirs + + if use editor; then + insinto /usr/share/inkscape/extensions + doins "${WORKDIR}"/inksmoto-${PV}/*.{inx,py,xml} || die "doins failed" + fi +} + +pkg_postinst() { + games_pkg_postinst + if use editor; then + elog "If you want to know how to create Xmoto levels" + elog "have a look at this Tutorial:" + elog "http://wiki.xmoto.tuxfamily.org/index.php?title=Inkscape-0.4.0" + elog "You can share your levels on the Xmoto homepage." + fi +} |