mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
games-fps/blackshades: 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
This commit is contained in:
61
games-fps/blackshades/blackshades-20070723-r1.ebuild
Normal file
61
games-fps/blackshades/blackshades-20070723-r1.ebuild
Normal file
@@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="You control a psychic bodyguard, and try to protect the VIP"
|
||||
HOMEPAGE="http://www.wolfire.com/blackshades.html
|
||||
http://www.icculus.org/blackshades/"
|
||||
SRC_URI="http://filesingularity.timedoctor.org/Textures.tar.bz2
|
||||
mirror://gentoo/${P}.tar.bz2"
|
||||
|
||||
LICENSE="blackshades"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
media-libs/freealut
|
||||
media-libs/libsdl
|
||||
media-libs/libvorbis
|
||||
media-libs/openal
|
||||
virtual/glu
|
||||
virtual/opengl"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S=${WORKDIR}/${PN}
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-datadir.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
rm -rf Data/Textures || die
|
||||
rm -f ../Textures/{,Blood/}._* || die
|
||||
mv -f ../Textures Data || die "mv failed"
|
||||
sed -i \
|
||||
-e "s/-O2 \(-Wall\) -g/${CXXFLAGS} \1/" \
|
||||
-e "/^LINKER/s:$: ${LDFLAGS}:" \
|
||||
Makefile \
|
||||
|| die "sed Makefile failed"
|
||||
sed -i "s:@DATADIR@:/usr/share/${PN}:" \
|
||||
Source/Main.cpp \
|
||||
|| die "sed Main.cpp failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake bindir
|
||||
emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin objs/blackshades ${PN}
|
||||
insinto /usr/share/${PN}
|
||||
doins -r Data
|
||||
dodoc IF_THIS_IS_A_README_YOU_HAVE_WON Readme TODO uDevGame_Readme
|
||||
make_desktop_entry ${PN} "Black Shades"
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
--- Source/Main.cpp
|
||||
+++ Source/Main.cpp
|
||||
--- a/Source/Main.cpp
|
||||
+++ b/Source/Main.cpp
|
||||
@@ -1,6 +1,7 @@
|
||||
/********************> Headers <*****/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user