diff options
author | Austin English <wizardedit@gentoo.org> | 2016-09-29 13:38:52 -0500 |
---|---|---|
committer | Austin English <wizardedit@gentoo.org> | 2016-09-29 16:50:30 -0500 |
commit | b6f264d5d2a8f5abed68810df2ba021ba4549c43 (patch) | |
tree | a731bbd857f9cbcb6752db841fe97863a2e9b5b2 /games-sports/speed-dreams/speed-dreams-1.4.0-r1.ebuild | |
parent | dev-perl/XML-DOM: Remove old (diff) | |
download | gentoo-b6f264d5d2a8f5abed68810df2ba021ba4549c43.tar.gz gentoo-b6f264d5d2a8f5abed68810df2ba021ba4549c43.tar.bz2 gentoo-b6f264d5d2a8f5abed68810df2ba021ba4549c43.zip |
games-sports/speed-dreams: 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/speed-dreams/speed-dreams-1.4.0-r1.ebuild')
-rw-r--r-- | games-sports/speed-dreams/speed-dreams-1.4.0-r1.ebuild | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/games-sports/speed-dreams/speed-dreams-1.4.0-r1.ebuild b/games-sports/speed-dreams/speed-dreams-1.4.0-r1.ebuild new file mode 100644 index 000000000000..b45edf3ef671 --- /dev/null +++ b/games-sports/speed-dreams/speed-dreams-1.4.0-r1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit autotools eutils versionator + +DESCRIPTION="A fork of the famous open racing car simulator TORCS" +HOMEPAGE="http://speed-dreams.sourceforge.net/" +SRC_URI="mirror://sourceforge/speed-dreams/${P}-r2307-src.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="xrandr" + +RDEPEND="virtual/opengl + virtual/glu + media-libs/freealut + media-libs/freeglut + >=media-libs/libpng-1.2.40:0 + media-libs/openal + sys-libs/zlib + x11-libs/libX11 + x11-libs/libXxf86vm + xrandr? ( x11-libs/libXrandr )" +DEPEND="${RDEPEND} + >=media-libs/plib-1.8.3 + x11-libs/libICE + x11-libs/libSM + x11-libs/libXext + x11-libs/libXi + x11-libs/libXt + x11-libs/libXmu + x11-libs/libXrender + x11-proto/xproto + xrandr? ( x11-proto/randrproto )" + +S=${WORKDIR}/${PN}-$(get_version_component_range 1-3)-src + +PATCHES=( + "${FILESDIR}"/${P}-asneeded.patch + "${FILESDIR}"/${P}-automake.patch + "${FILESDIR}"/${P}-libpng15.patch + "${FILESDIR}"/${P}-math-hack.patch +) + +src_prepare() { + default + + # https://sourceforge.net/apps/trac/speed-dreams/ticket/111 + MAKEOPTS="${MAKEOPTS} -j1" + + sed -i \ + -e '/ADDCFLAGS/s: -O2::' \ + configure.in || die + sed -i \ + -e '/COPYING/s:=.*:= \\:' \ + Makefile || die + sed -i \ + -e '/LDFLAGS/s:-L/usr/lib::' \ + -e "/^datadir/s:=.*:= /usr/share/games/${PN}:" \ + Make-config.in || die + + eautoreconf +} + +src_configure() { + addpredict $(echo /dev/snd/controlC? | sed 's/ /:/g') + [[ -e /dev/dsp ]] && addpredict /dev/dsp + econf \ + --prefix=/usr \ + --bindir=/usr/bin \ + $(use_enable xrandr) +} + +src_install() { + emake DESTDIR="${D}" install datainstall + + find "${D}" -name Makefile -exec rm -f {} + + + dodoc CHANGES README TODO + + newicon icon.svg ${PN}.svg + make_desktop_entry ${PN} "Speed Dreams" +} |