summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-01-22 23:25:30 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2018-01-22 23:26:10 +0100
commitb70be8ed20bdfb6bb7a69137d0574f905c21e1b9 (patch)
tree89bd39dede76255e7b12ae56b35e8bd76200fe5d /games-emulation/gambatte
parentgames-emulation/gambatte: Drop Qt4, build w/ sdl unconditionally (diff)
downloadgentoo-b70be8ed20bdfb6bb7a69137d0574f905c21e1b9.tar.gz
gentoo-b70be8ed20bdfb6bb7a69137d0574f905c21e1b9.tar.bz2
gentoo-b70be8ed20bdfb6bb7a69137d0574f905c21e1b9.zip
games-emulation/gambatte: Drop old
Package-Manager: Portage-2.3.20, Repoman-2.3.6
Diffstat (limited to 'games-emulation/gambatte')
-rw-r--r--games-emulation/gambatte/gambatte-0.5.0_p20131102.ebuild97
1 files changed, 0 insertions, 97 deletions
diff --git a/games-emulation/gambatte/gambatte-0.5.0_p20131102.ebuild b/games-emulation/gambatte/gambatte-0.5.0_p20131102.ebuild
deleted file mode 100644
index 48dec7caf06..00000000000
--- a/games-emulation/gambatte/gambatte-0.5.0_p20131102.ebuild
+++ /dev/null
@@ -1,97 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit scons-utils qt4-r2 games
-
-DESCRIPTION="An accuracy-focused Gameboy / Gameboy Color emulator"
-HOMEPAGE="https://sourceforge.net/projects/gambatte"
-SRC_URI="https://dev.gentoo.org/~hasufell/distfiles/${P}.tar.xz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="qt4 +sdl"
-REQUIRED_USE="|| ( qt4 sdl )"
-
-RDEPEND="
- sys-libs/zlib
- qt4? (
- dev-qt/qtcore:4
- dev-qt/qtgui:4
- dev-qt/qtopengl:4
- media-libs/alsa-lib
- x11-libs/libX11
- x11-libs/libXext
- x11-libs/libXrandr
- x11-libs/libXv
- )
- sdl? ( media-libs/libsdl[X,sound,joystick,video] )"
-DEPEND="${RDEPEND}
- app-arch/xz-utils"
-
-fix_scons() {
- local i
- for i; do
- cat >> $i << END
-import os
-import SCons.Util
-
-if os.environ.has_key('AR'):
- env['AR'] = os.environ['AR']
-if os.environ.has_key('RANLIB'):
- env['RANLIB'] = os.environ['RANLIB']
-if os.environ.has_key('CC'):
- env['CC'] = os.environ['CC']
-if os.environ.has_key('CFLAGS'):
- env['CCFLAGS'] += SCons.Util.CLVar(os.environ['CFLAGS'])
-if os.environ.has_key('CXX'):
- env['CXX'] = os.environ['CXX']
-if os.environ.has_key('CXXFLAGS'):
- env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CXXFLAGS'])
-if os.environ.has_key('CPPFLAGS'):
- env['CCFLAGS'] += SCons.Util.CLVar(os.environ['CPPFLAGS'])
-if os.environ.has_key('LDFLAGS'):
- env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS'])
-END
- done
-}
-
-src_prepare() {
- # Fix zlib/minizip build error
- sed -i \
- -e '1i#define OF(x) x' \
- libgambatte/src/file/unzip/{unzip,ioapi}.h \
- || die "sed iompi.h failed"
-
- fix_scons {gambatte_sdl,libgambatte}/SConstruct
-}
-
-src_compile() {
- # build core library
- cd "${S}"/libgambatte || die
- escons
-
- # build sdl frontend
- if use sdl; then
- cd "${S}"/gambatte_sdl || die
- escons
- fi
-
- # build qt frontend
- if use qt4; then
- cd "${S}"/gambatte_qt || die
- eqmake4 ${PN}_qt.pro
- emake
- fi
-}
-
-src_install() {
- use sdl && dogamesbin gambatte_sdl/gambatte_sdl
- use qt4 && dogamesbin gambatte_qt/bin/gambatte_qt
-
- dodoc README changelog
-
- prepgamesdirs
-}