diff options
author | Austin English <wizardedit@gentoo.org> | 2016-10-03 13:55:58 -0500 |
---|---|---|
committer | Austin English <wizardedit@gentoo.org> | 2016-10-03 14:11:17 -0500 |
commit | 322ca4a77a64118ce235bad1cf5b310bb72fc9b7 (patch) | |
tree | 474a502edfca0cd03ed3d8cf6d3baa932a3fac9a /games-sports/torcs/torcs-1.3.6-r1.ebuild | |
parent | 77392c484fe0e8c934d4005bf0e676286549ec1c (diff) | |
download | gentoo-322ca4a77a64118ce235bad1cf5b310bb72fc9b7.tar.gz gentoo-322ca4a77a64118ce235bad1cf5b310bb72fc9b7.tar.xz |
games-sports/torcs: remove deprecated games eclass
Also update to EAPI 6
Gentoo-Bug: https://bugs.gentoo.org/574082
Package-Manager: portage-2.3.0
Diffstat (limited to 'games-sports/torcs/torcs-1.3.6-r1.ebuild')
-rw-r--r-- | games-sports/torcs/torcs-1.3.6-r1.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/games-sports/torcs/torcs-1.3.6-r1.ebuild b/games-sports/torcs/torcs-1.3.6-r1.ebuild new file mode 100644 index 00000000000..16b587c8b8a --- /dev/null +++ b/games-sports/torcs/torcs-1.3.6-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit autotools eutils multilib + +DESCRIPTION="The Open Racing Car Simulator" +HOMEPAGE="http://torcs.sourceforge.net/" +SRC_URI="mirror://sourceforge/torcs/${P}.tar.bz2" + +LICENSE="GPL-2 FreeArt" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="media-libs/freealut + media-libs/freeglut + media-libs/libpng:0 + media-libs/libvorbis:= + media-libs/openal + >=media-libs/plib-1.8.5 + sys-libs/zlib:0= + virtual/opengl + virtual/glu + x11-libs/libX11 + x11-libs/libXrandr" +DEPEND="${RDEPEND} + x11-proto/xf86vidmodeproto" + +PATCHES=( + "${FILESDIR}"/${P}-no-automake.patch + "${FILESDIR}"/${P}-as-needed.patch + "${FILESDIR}"/${P}-flags.patch + "${FILESDIR}"/${P}-format.patch + "${FILESDIR}"/${P}-noXmuXt.patch +) + +src_prepare() { + default + + eautoreconf + ecvs_clean +} + +src_configure() { + addpredict $(echo /dev/snd/controlC? | sed 's/ /:/g') + [[ -e /dev/dsp ]] && addpredict /dev/dsp + econf \ + --datadir=/usr/share \ + --x-libraries=/usr/$(get_libdir) \ + --enable-xrandr +} + +src_compile() { + # So ugly... patches welcome. + emake -j1 +} + +src_install() { + emake -j1 DESTDIR="${D}" install datainstall + newicon Ticon.png ${PN}.png + make_desktop_entry ${PN} TORCS + dodoc README doc/history/history.txt + doman doc/man/*.6 + dodoc -r doc/faq/faq.html doc/tutorials doc/userman +} |