summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-04-13 21:18:26 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-04-13 21:18:26 +0000
commit8c067621d1c01938b0766ac2c9c20e376fffc1a6 (patch)
treee8e5982e1758b90e8a008ff9c20ba17e98f95c5f /games-emulation
parentNon-maintainer commit: EAPI bump. Timeout of bug 460500 (diff)
downloadgentoo-2-8c067621d1c01938b0766ac2c9c20e376fffc1a6.tar.gz
gentoo-2-8c067621d1c01938b0766ac2c9c20e376fffc1a6.tar.bz2
gentoo-2-8c067621d1c01938b0766ac2c9c20e376fffc1a6.zip
category move games-engines -> games-emulation
(Portage version: 2.2.0_alpha173/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'games-emulation')
-rw-r--r--games-emulation/gambatte/ChangeLog14
-rw-r--r--games-emulation/gambatte/Manifest4
-rw-r--r--games-emulation/gambatte/gambatte-0.5.0_p20130310.ebuild97
-rw-r--r--games-emulation/gambatte/metadata.xml10
4 files changed, 125 insertions, 0 deletions
diff --git a/games-emulation/gambatte/ChangeLog b/games-emulation/gambatte/ChangeLog
new file mode 100644
index 000000000000..d0a03464cb65
--- /dev/null
+++ b/games-emulation/gambatte/ChangeLog
@@ -0,0 +1,14 @@
+# ChangeLog for games-emulation/gambatte
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/gambatte/ChangeLog,v 1.1 2013/04/13 21:18:26 hasufell Exp $
+
+ 13 Apr 2013; Julian Ospald <hasufell@gentoo.org>
+ +gambatte-0.5.0_p20130310.ebuild, +metadata.xml:
+ category move games-engines -> games-emulation
+
+*gambatte-0.5.0_p20130310 (10 Mar 2013)
+
+ 10 Mar 2013; Julian Ospald <hasufell@gentoo.org>
+ +gambatte-0.5.0_p20130310.ebuild, +metadata.xml:
+ initial import wrt #214479 based on Jared Bs ebuild
+
diff --git a/games-emulation/gambatte/Manifest b/games-emulation/gambatte/Manifest
new file mode 100644
index 000000000000..1ac6e9d3519b
--- /dev/null
+++ b/games-emulation/gambatte/Manifest
@@ -0,0 +1,4 @@
+DIST gambatte-0.5.0_p20130310.tar.xz 352624 SHA256 7826eccf91d1203a1db56df13ca5becbcf434e5fc9f59c12ade3bffff58fab4c SHA512 cd8a7a0bdb554fddb829e90f83541bf4e2c061e3cd92f6b9ad7ab73fdb1bdbd276d1697c3b51e66eb3f518fd5c11db6e5ca01f1acb3ecbee48e41cff039839bc WHIRLPOOL 0335185155a8d4280de930f5ca0fa8e57b97ba00984ff524e0b187300f2239625896e1ebf5bf87edd2eb023665f8c66ca1e05a2e6aed01473c184bae83a7a396
+EBUILD gambatte-0.5.0_p20130310.ebuild 2199 SHA256 fa5ca573a2e26873751f79d84de56c2f01eb2bb1f242571d8882ce7e0cea8690 SHA512 a4118b0a98d0240058da1773052755e896ae5678987b7975b9dca68b5af5a3a6fbd41346e2ac7da3c93b0e1b85319da87e93f17d409bd63820fcf4ad903bac94 WHIRLPOOL 6b387be7f480f43bc6281e397c527d083ad8033e2ad399f837f52e2dbe193b81574f7623692cf9c6c199c65388a25860882411f144c9100ece89471a1fbb646d
+MISC ChangeLog 571 SHA256 54325685f2ad5d5dc59df7e32b4d0675f86c2ff3360aff1401b9818bf80673e0 SHA512 044e52d245d761963dd9a948fbb40c69a90d64cda710038090ff8f6adab107a6df8f67ee76b5cc2ec9975f63e76bd8b4167fc696c3116682b7bd52d5f4511ea0 WHIRLPOOL abad36a827122e1c239574c18ff286582e3d231dfa337bd63ffff33d67bcb47b484f9c53af3baa165014cc7530c9b124f6828172c15e7f4ab4cf2bd4637c8660
+MISC metadata.xml 255 SHA256 8ce125b1cb2a8da5fe808223ae6ed60fe03598c692e5020f0a8aaee09b5d6ca3 SHA512 29f4a4a15fc968a3151c449354cd2003831f4b66b57d72222c46d4e4f7ff0586ed3f0b76d09fadf0b43fbb3a46951b19207dd6d38b79fe394b61694cd272ad95 WHIRLPOOL 373afc42b6a5f9f473397b1b95b73377110a2d7cf3590bdb8e0ef4b58c9628a06b1af46db726416fbaad0c29b91ee1eb631eccac14a26be994b705a43f097db8
diff --git a/games-emulation/gambatte/gambatte-0.5.0_p20130310.ebuild b/games-emulation/gambatte/gambatte-0.5.0_p20130310.ebuild
new file mode 100644
index 000000000000..5a8b75a68925
--- /dev/null
+++ b/games-emulation/gambatte/gambatte-0.5.0_p20130310.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/gambatte/gambatte-0.5.0_p20130310.ebuild,v 1.1 2013/04/13 21:18:26 hasufell Exp $
+
+EAPI=5
+
+inherit scons-utils qt4-r2 games
+
+DESCRIPTION="An accuracy-focused Gameboy / Gameboy Color emulator"
+HOMEPAGE="http://sourceforge.net/projects/gambatte"
+SRC_URI="http://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,audio,joystick,video] )"
+DEPEND="${RDEPEND}"
+
+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
+
+ nonfatal dodoc README changelog
+
+ prepgamesdirs
+}
diff --git a/games-emulation/gambatte/metadata.xml b/games-emulation/gambatte/metadata.xml
new file mode 100644
index 000000000000..e52db06ebd8c
--- /dev/null
+++ b/games-emulation/gambatte/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <maintainer>
+ <email>hasufell@gentoo.org</email>
+ <name>Julian Ospald</name>
+ </maintainer>
+</pkgmetadata>
+