diff options
author | Azamat H. Hackimov <azamat.hackimov@gmail.com> | 2020-08-07 02:19:28 +0300 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2020-08-17 22:59:05 +0100 |
commit | f2797c5e9235f969e7c3aee900b7669821c69827 (patch) | |
tree | 8d7e0a7d17eee47951ae444d0e1fd008794a3929 /games-sports/xmoto/xmoto-0.6.1-r1.ebuild | |
parent | games-engines/openmw: drop old 0.45.0 (diff) | |
download | gentoo-f2797c5e9235f969e7c3aee900b7669821c69827.tar.gz gentoo-f2797c5e9235f969e7c3aee900b7669821c69827.tar.bz2 gentoo-f2797c5e9235f969e7c3aee900b7669821c69827.zip |
games-sports/xmoto: fix #730346
Applied upstream patch for removing uses of deprecated lua 5.0 code.
Closes: https://bugs.gentoo.org/730346
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/17037
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-sports/xmoto/xmoto-0.6.1-r1.ebuild')
-rw-r--r-- | games-sports/xmoto/xmoto-0.6.1-r1.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/games-sports/xmoto/xmoto-0.6.1-r1.ebuild b/games-sports/xmoto/xmoto-0.6.1-r1.ebuild new file mode 100644 index 000000000000..c8bbb19258ae --- /dev/null +++ b/games-sports/xmoto/xmoto-0.6.1-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="A challenging 2D motocross platform game, where physics play an important role" +HOMEPAGE="https://xmoto.tuxfamily.org" +SRC_URI="https://github.com/xmoto/xmoto/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="double-precision +nls" + +RDEPEND="app-arch/bzip2 + dev-db/sqlite:3 + dev-games/ode[double-precision=] + dev-lang/lua:0 + dev-libs/libxdg-basedir + dev-libs/libxml2 + media-fonts/dejavu + media-libs/libpng:0= + media-libs/libsdl[joystick,opengl] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-net + media-libs/sdl-ttf + net-misc/curl + sys-libs/zlib:= + virtual/jpeg:0 + virtual/glu + virtual/opengl + nls? ( virtual/libintl )" +DEPEND="${RDEPEND}" +BDEPEND="app-arch/xz-utils + nls? ( sys-devel/gettext )" + +PATCHES=( + "${FILESDIR}/${P}_lua_deprecated.patch" +) + +src_prepare() { + sed -e "/^Icon/s/.xpm//" -i extra/xmoto.desktop || die + sed -e "/add_subdirectory.*\(bzip2\|libccd\|lua\|ode\|xdgbasedir\)/d" -i src/CMakeLists.txt || die + rm -rf vendor/{bzip2,lua,ode,xdgbasedir} || die + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DUSE_GETTEXT=$(usex nls) + -DOpenGL_GL_PREFERENCE=GLVND + ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + + rm -f "${ED}/usr/share/xmoto"/Textures/Fonts/DejaVuSans{Mono,}.ttf || die + dosym ../../../fonts/dejavu/DejaVuSans.ttf /usr/share/xmoto/Textures/Fonts/DejaVuSans.ttf + dosym ../../../fonts/dejavu/DejaVuSansMono.ttf /usr/share/xmoto/Textures/Fonts/DejaVuSansMono.ttf +} |