commit: 93f002807424b0472ee38b0b91d36f5bf0251d81 parent 4eb83776dbcc85d21ba4d5bc7f6f0394a455ac4c Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Date: Wed, 11 Oct 2023 08:32:33 +0200 games-sports/xmoto: new package, add 0.6.2Diffstat:
A | games-sports/xmoto/Manifest | 1 | + |
A | games-sports/xmoto/xmoto-0.6.2.ebuild | 69 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
2 files changed, 70 insertions(+), 0 deletions(-)diff --git a/games-sports/xmoto/Manifest b/games-sports/xmoto/Manifest
@@ -0,0 +1 @@ +DIST xmoto-0.6.2.tar.gz 42115597 BLAKE2B 206f940e7870a6844172a1a077846a20a21d34d5963c83c84103d9cc78356a555279927dae539ba5cf82b40529012f509c2efe917203093aa62050c7fba3cbc5 SHA512 ef992bc818031e29b816b9f42185feff8ac028ba6c470b9f93dbb9a950bd7b1822da4f5240f737602b9306a8bf835bdd478213e8a65b1297e51ff3deb74ae48cdiff --git a/games-sports/xmoto/xmoto-0.6.2.ebuild b/games-sports/xmoto/xmoto-0.6.2.ebuild
@@ -0,0 +1,69 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5-{1..4} ) + +inherit cmake lua-single + +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/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="double-precision +nls" + +REQUIRED_USE="${LUA_REQUIRED_USE}" + +RDEPEND="app-arch/bzip2 + dev-db/sqlite:3 + dev-games/ode[double-precision=] + ${LUA_DEPS} + dev-libs/libxdg-basedir + dev-libs/libxml2 + media-fonts/dejavu + media-libs/libpng:0= + media-libs/libsdl2[joystick,opengl] + media-libs/sdl2-mixer[vorbis] + media-libs/sdl2-net + media-libs/sdl2-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 )" + +src_prepare() { + sed -i -e "/^Icon/s/.xpm//" extra/xmoto.desktop || die + sed -i -e "/add_subdirectory.*\(bzip2\|libccd\|lua\|ode\|xdgbasedir\)/d" \ + -e 's;OpenGL REQUIRED;OpenGL COMPONENTS OpenGL REQUIRED;' \ + 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 + -DLUA_VERSION=$(lua_get_version) + ) + + 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 +}