mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-31 10:58:21 -07:00
games-puzzle/kiki: Remove old
Package-Manager: Portage-2.3.3, Repoman-2.3.1
This commit is contained in:
@@ -1,71 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_DEPEND="2"
|
||||
inherit eutils python toolchain-funcs games
|
||||
|
||||
DESCRIPTION="Fun 3D puzzle game using SDL/OpenGL"
|
||||
HOMEPAGE="http://kiki.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/kiki/${P}-src.tgz"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="ppc x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="media-libs/libsdl[opengl]
|
||||
media-libs/sdl-image
|
||||
media-libs/sdl-mixer
|
||||
virtual/opengl
|
||||
virtual/glu
|
||||
media-libs/freeglut"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/swig"
|
||||
|
||||
S=${WORKDIR}/${PN}
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}"/${P}-gcc41.patch \
|
||||
"${FILESDIR}"/${P}-freeglut.patch \
|
||||
"${FILESDIR}"/${P}-gcc43.patch \
|
||||
"${FILESDIR}"/${P}-build.patch
|
||||
ecvs_clean
|
||||
rm -f py/runkiki
|
||||
|
||||
# Change the hard-coded data dir for sounds, etc...
|
||||
sed -i \
|
||||
-e "s:kiki_home += \"/\";:kiki_home = \"${GAMES_DATADIR}/${PN}/\";:g" \
|
||||
-e "s:KConsole\:\:printf(\"WARNING \:\: environment variable KIKI_HOME not set ...\");::g" \
|
||||
-e "s:KConsole\:\:printf(\" ... assuming resources in current directory\");::g" \
|
||||
src/main/KikiController.cpp || die
|
||||
|
||||
# Bug 139570
|
||||
cd SWIG
|
||||
swig -c++ -python -globals kiki -o KikiPy_wrap.cpp KikiPy.i || die
|
||||
cp -f kiki.py ../py
|
||||
epatch "${FILESDIR}"/${P}-gcc46.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -C kodilib/linux AR="$(tc-getAR)"
|
||||
emake -C linux PYTHON_VERSION="$(python_get_version)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dogamesbin linux/kiki
|
||||
|
||||
insinto "${GAMES_DATADIR}"/${PN}
|
||||
doins -r py sound
|
||||
|
||||
dodoc Readme.txt Thanks.txt
|
||||
prepgamesdirs
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
python_pkg_setup
|
||||
python_set_active_version 2
|
||||
games_pkg_setup
|
||||
}
|
||||
Reference in New Issue
Block a user