mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
games-sports/trigger: update EAPI 6 -> 8, fix joystick dependency
Closes: https://bugs.gentoo.org/832817 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
EAPI=8
|
||||
|
||||
inherit desktop toolchain-funcs
|
||||
|
||||
@@ -10,49 +10,48 @@ MY_P=${MY_PN}-${PV}
|
||||
DESCRIPTION="Free OpenGL rally car racing game"
|
||||
HOMEPAGE="http://trigger-rally.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.bz2"
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
dev-games/physfs
|
||||
media-libs/freealut
|
||||
media-libs/libsdl
|
||||
media-libs/libsdl[joystick]
|
||||
media-libs/openal
|
||||
media-libs/sdl-image[jpeg,png]
|
||||
media-libs/sdl-mixer
|
||||
virtual/glu
|
||||
virtual/opengl"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/ftjam"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="dev-util/ftjam"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-gcc6.patch )
|
||||
|
||||
pkg_setup() {
|
||||
src_configure() {
|
||||
# Otherwise build fails with:
|
||||
# ...skipped trigger for lack of libpengine.a...
|
||||
tc-export AR
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --datadir=/usr/share/games/${PN}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
AR="${AR} cru" jam -dx -qa || die
|
||||
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ${PN}
|
||||
|
||||
insinto /usr/share/games/${PN}
|
||||
doins -r data/*
|
||||
|
||||
newicon data/textures/life_helmet.png ${PN}.png
|
||||
|
||||
make_desktop_entry ${PN} Trigger
|
||||
|
||||
dodoc doc/*.txt
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user