diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-fps/rott/rott-1.1.2-r1.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-fps/rott/rott-1.1.2-r1.ebuild')
-rw-r--r-- | games-fps/rott/rott-1.1.2-r1.ebuild | 55 |
1 files changed, 55 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..5eabd67d2f86 --- /dev/null +++ b/games-fps/rott/rott-1.1.2-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 ~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 +} |