diff options
author | Austin English <wizardedit@gentoo.org> | 2017-02-09 17:09:31 -0600 |
---|---|---|
committer | Austin English <wizardedit@gentoo.org> | 2017-02-14 17:41:18 -0600 |
commit | 452c7c70d4969cd3e80e4aa609047a3ef8147ddc (patch) | |
tree | fcc8fc52ae4a44ccb747f14a1d86093dfbd2aedb /games-fps | |
parent | sci-biology/psipred: Remove old (diff) | |
download | gentoo-452c7c70d4969cd3e80e4aa609047a3ef8147ddc.tar.gz gentoo-452c7c70d4969cd3e80e4aa609047a3ef8147ddc.tar.bz2 gentoo-452c7c70d4969cd3e80e4aa609047a3ef8147ddc.zip |
games-fps/rott: remove deprecated games eclass
Also update to EAPI 6
Gentoo-Bug: https://bugs.gentoo.org/574082
Package-Manager: Portage-2.3.2, Repoman-2.3.1
Diffstat (limited to 'games-fps')
-rw-r--r-- | games-fps/rott/rott-1.1.2-r1.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/games-fps/rott/rott-1.1.2-r1.ebuild b/games-fps/rott/rott-1.1.2-r1.ebuild new file mode 100644 index 000000000000..d14d5f9918fe --- /dev/null +++ b/games-fps/rott/rott-1.1.2-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit eutils + +DESCRIPTION="Rise of the Triad for Linux!" +HOMEPAGE="http://www.icculus.org/rott/" +SRC_URI="http://www.icculus.org/rott/releases/${P}.tar.gz + demo? ( http://filesingularity.timedoctor.org/swdata.zip )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="demo" + +RDEPEND="media-libs/libsdl[sound,joystick,video] + media-libs/sdl-mixer" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR}/${P}/rott + +src_prepare() { + default + + sed -i \ + -e '/^CC =/d' \ + Makefile || die "sed failed" + emake clean +} + +src_compile() { + emake -j1 \ + EXTRACFLAGS="${CFLAGS} -DDATADIR=\\\"/usr/share/${PN}/\\\"" \ + SHAREWARE=$(usex demo "1" "0") +} + +src_install() { + dobin rott + dodoc ../doc/*.txt ../README + doman ../doc/rott.6 + if use demo ; then + cd "${WORKDIR}" || die + insinto /usr/share/${PN} + doins *.dmo huntbgin.* remote1.rts + fi +} + +pkg_postinst() { + if ! use demo ; then + elog "To play the full version, just copy the" + elog "data files to /usr/share/${PN}/" + fi +} |