vdrift-2014.10.20.ebuild (1040B)
- # Copyright 1999-2015 Gentoo Foundation
- # Copyright 2019-2021 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
- # Distributed under the terms of the GNU General Public License v2
- EAPI=7
- PYTHON_COMPAT=( python3_{7,8,9} )
- inherit python-any-r1 scons-utils
- MY_P="${PN}-$(ver_rs 1-2 -)"
- DESCRIPTION="A driving simulation made with drift racing in mind"
- HOMEPAGE="https://vdrift.net/"
- SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
- LICENSE="GPL-3 ZLIB LGPL-2.1+"
- SLOT="0"
- KEYWORDS="~amd64 ~x86"
- IUSE=""
- S="${WORKDIR}/${PN}"
- RDEPEND="
- media-libs/libsdl2[opengl,video]
- media-libs/sdl2-image[png]
- media-libs/libvorbis
- net-misc/curl
- sci-physics/bullet[-double-precision]
- "
- DEPEND="${RDEPEND}"
- PATCHES=(
- "${FILESDIR}/${P}-gcc6.patch"
- "${FILESDIR}/${P}-scons-python3.patch"
- )
- src_configure() {
- MYSCONS=(
- destdir="${D}"
- prefix=/usr
- release=1
- os_cc=1
- os_cxx=1
- os_cxxflags=1
- force_feedback=1
- )
- }
- src_compile() {
- escons "${MYSCONS[@]}"
- }
- src_install() {
- escons "${MYSCONS[@]}" DESTDIR="${D}" install
- default
- }