diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2009-01-07 17:59:07 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2009-01-07 17:59:07 +0000 |
commit | cdd0ca462a4f3d8ae04e6a3381244330539f840e (patch) | |
tree | faf67ea74b641642e6a8d320aa1830ed0ee111d7 /games-sports | |
parent | arm/sh stable (diff) | |
download | historical-cdd0ca462a4f3d8ae04e6a3381244330539f840e.tar.gz historical-cdd0ca462a4f3d8ae04e6a3381244330539f840e.tar.bz2 historical-cdd0ca462a4f3d8ae04e6a3381244330539f840e.zip |
Make xmoto work again with editor use flag.
Package-Manager: portage-2.2_rc20/cvs/Linux 2.6.27-gentoo x86_64
Diffstat (limited to 'games-sports')
-rw-r--r-- | games-sports/xmoto/ChangeLog | 10 | ||||
-rw-r--r-- | games-sports/xmoto/Manifest | 4 | ||||
-rw-r--r-- | games-sports/xmoto/xmoto-0.5.0-r1.ebuild | 108 |
3 files changed, 119 insertions, 3 deletions
diff --git a/games-sports/xmoto/ChangeLog b/games-sports/xmoto/ChangeLog index 26102f90e2d5..f81a058a4ed3 100644 --- a/games-sports/xmoto/ChangeLog +++ b/games-sports/xmoto/ChangeLog @@ -1,6 +1,12 @@ # 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.27 2008/12/03 19:16:47 scarabeus Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-sports/xmoto/ChangeLog,v 1.28 2009/01/07 17:59:07 scarabeus Exp $ + +*xmoto-0.5.0-r1 (07 Jan 2009) + + 07 Jan 2009; Tomas Chvatal <scarabeus@gentoo.org> +xmoto-0.5.0-r1.ebuild: + Update level editor with new one. This one works with our inkscape + correctly. *xmoto-0.5.0 (03 Dec 2008) diff --git a/games-sports/xmoto/Manifest b/games-sports/xmoto/Manifest index b9f303020428..27dee98391d3 100644 --- a/games-sports/xmoto/Manifest +++ b/games-sports/xmoto/Manifest @@ -1,7 +1,9 @@ DIST inksmoto-0.4.1.tar.gz 53762 RMD160 c74ff517f994c1b52f72063a7b67da80beffe52f SHA1 620fd708fb01f0273389dcce3b2f21dfe505ffff SHA256 8b609519fe9d3641a41f45181bbdb04eb6a6575767466ea46dfc772322a4625a +DIST inksmoto-0.5.0~rc1.tar.gz 1618318 RMD160 1eabf960d5675c47fa76b852fcc330b924e08e7c SHA1 1f78a0151a34cc5ae5a6eb3d6f1bcc26bf5a203d SHA256 20d816b6c44a32c448bc5cb1ef47842baf39b17683b9df749eb8aaa06e55857b DIST xmoto-0.4.2-src.tar.gz 21518240 RMD160 b87ac63714772b54d8b5fd45a8b7bdacf557f765 SHA1 4d73c7db5b423faf4e88d2d26db3da8da07ab712 SHA256 c8eea0a8c19f466cfd550ae06bccb1ccd1c8e45726edadd10b14ee89a4b64b60 DIST xmoto-0.5.0-src.tar.gz 21913971 RMD160 a9e2b9f077b17e17bb2ffab04542ee0f737c3e0f SHA1 9d89c0c7fa7da23378577c8ed572cc381267dfae SHA256 705a70c3cda8300179e049c5b1fb8d5d241ede0a3bc1961d5e93682babccc93f EBUILD xmoto-0.4.2.ebuild 2913 RMD160 cc977532c504ad002c3514fa87505c141c13a275 SHA1 19cec89c8b589529b25bf7c0a11ff4acbc9ce13e SHA256 f911a4f6c0f6909380ad23a69415ef5bf7276422c3f22177b3dc9a7594212b95 +EBUILD xmoto-0.5.0-r1.ebuild 2716 RMD160 20e66a8a36fb3be58514c8045d63dcba337ef939 SHA1 5fbef72d5d328ed7aede612068b8331381bc75dd SHA256 6f78100acbfc8a6aa9c89aa764982d526dfdaa763e4039c051a4f51a6969283c EBUILD xmoto-0.5.0.ebuild 3015 RMD160 725003e279f03f94f6cdebd6bd870fd569439a9a SHA1 b1a3b66e993b3c323c34a6f24a01defac4997823 SHA256 19b8268fc6e566d95007f554059864371efe9f01bbdab64726354f3de4e48a0a -MISC ChangeLog 4006 RMD160 0d8a92baa577b58a6dfb2741ea9cecd65d072ba6 SHA1 8fa726524f1bef6c704c91cf3de989020f9c493c SHA256 b28952e04817c7bfbf9a0c2d6360e98afc43a398c1522f241b4bda17da73082d +MISC ChangeLog 4196 RMD160 0f245ad7f4021107f2f811fb7511575c1835b1b8 SHA1 9ca58cf55e7da1117432dbc86bf212ffea0a0d56 SHA256 5c9ae4e8c8a623c7b6beba195abd7cbc10f7e534e0ed2b846ceaad49e5032945 MISC metadata.xml 339 RMD160 b003e2b8bb90a2ada8c8ba870aab3e6e73f7de71 SHA1 aa5548496eb75effe84bb3849e0f021cdbeac476 SHA256 019501d6ea5973371f60c6407a8fe9e0cd13daef856182fd2974c5145dd2dfed diff --git a/games-sports/xmoto/xmoto-0.5.0-r1.ebuild b/games-sports/xmoto/xmoto-0.5.0-r1.ebuild new file mode 100644 index 000000000000..cca46d7296ed --- /dev/null +++ b/games-sports/xmoto/xmoto-0.5.0-r1.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-sports/xmoto/xmoto-0.5.0-r1.ebuild,v 1.1 2009/01/07 17:59:07 scarabeus Exp $ + +EAPI="2" + +inherit eutils games + +LVL_PV="0.5.0~rc1" #they unfortunately don't release both at the same time, why ~ as separator :( +LVL="inksmoto-${LVL_PV}" +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/${LVL_PV}/${LVL}.tar.gz )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="X editor nls" # sdl" + +RDEPEND=" + dev-db/sqlite:3 + dev-games/ode + dev-lang/lua[deprecated] + media-libs/jpeg + media-libs/libpng + media-libs/libsdl + media-libs/sdl-mixer + media-libs/sdl-ttf + media-libs/sdl-net + net-misc/curl + virtual/opengl + virtual/glu + nls? ( virtual/libintl ) + editor? ( media-gfx/inkscape ) + " +DEPEND="${RDEPEND} + !=dev-db/sqlite-3.6.2 + nls? ( sys-devel/gettext ) + " + +src_prepare() { + use editor && rm -f "${WORKDIR}"/extensions/{bezmisc,inkex}.py +} + +src_configure() { + #if use sdl ; then + # ewarn "SDL is known to be broken, if you experience any troubles please" + # ewarn "try again without 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 + # using some nice dejavu font, better than nothing + egamesconf \ + --disable-dependency-tracking \ + --with-enable-zoom=1 \ + --enable-threads=posix \ + --with-gnu-ld \ + $(use_with X) \ + --with-localesdir=/usr/share/locale \ + ${RENDERER} \ + ${NLS} +} + +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/ + doins -r "${WORKDIR}"/extensions/ || 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.5.0" + elog "You can share your levels on the Xmoto homepage." + fi +} |