diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-04-13 21:18:30 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-04-13 21:18:30 +0000 |
commit | 066a147c88b62fd09409fe43effe179a2735ca0c (patch) | |
tree | 2c1ba2a7c9447be93bb74694d7c93de21495016d /games-emulation/gambatte | |
parent | category move games-engines -> games-emulation (diff) | |
download | historical-066a147c88b62fd09409fe43effe179a2735ca0c.tar.gz historical-066a147c88b62fd09409fe43effe179a2735ca0c.tar.bz2 historical-066a147c88b62fd09409fe43effe179a2735ca0c.zip |
category move games-engines -> games-emulation
Package-Manager: portage-2.2.0_alpha173/cvs/Linux x86_64
Manifest-Sign-Key: 0xE73C35B3
Diffstat (limited to 'games-emulation/gambatte')
-rw-r--r-- | games-emulation/gambatte/Manifest | 18 | ||||
-rw-r--r-- | games-emulation/gambatte/gambatte-0.5.0_p20130310.ebuild | 97 | ||||
-rw-r--r-- | games-emulation/gambatte/metadata.xml | 10 |
3 files changed, 123 insertions, 2 deletions
diff --git a/games-emulation/gambatte/Manifest b/games-emulation/gambatte/Manifest index 1ac6e9d3519b..a84e5f5bcc34 100644 --- a/games-emulation/gambatte/Manifest +++ b/games-emulation/gambatte/Manifest @@ -1,4 +1,18 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + 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 +EBUILD gambatte-0.5.0_p20130310.ebuild 2201 SHA256 aad461646c389a420d115c50dd97ffda6231e4ba6e51c2cae8312a30db691db5 SHA512 4dcbe45eddbd053d719c0a86f0227a0099f05567c69096c1e0f4db615591b0bbe887c3bdb9d8c36f193f232c79a491457f7af0156892ded512507b6606fb241e WHIRLPOOL f4953fce0dd0421a367f1c319fee0585d27c93887627ce74a356cb95cd7d73f065425531aa1c5111da983f464b4c20c8d5aecf703b16af76cbf0a2a9ec048721 +MISC ChangeLog 573 SHA256 773924bffdb0d9896e1233dd3e432d27d77a592b731727b81ab9fab785ec3f30 SHA512 43e90d80e6010c26f661a8fd2462004255f7b122bb5b0102330e51731efc0c92b99bf1f85955c2653d327efe0d89761fd145d56a33f996325c2847c5388555d1 WHIRLPOOL b894e5b801246cdbae950f23f16b818ed96e3c955a3d926777b3b53b5b154a87171d960c520e291cd4ee55f7a053179daccd76a96e3a0ac02eee4c60a84045e2 MISC metadata.xml 255 SHA256 8ce125b1cb2a8da5fe808223ae6ed60fe03598c692e5020f0a8aaee09b5d6ca3 SHA512 29f4a4a15fc968a3151c449354cd2003831f4b66b57d72222c46d4e4f7ff0586ed3f0b76d09fadf0b43fbb3a46951b19207dd6d38b79fe394b61694cd272ad95 WHIRLPOOL 373afc42b6a5f9f473397b1b95b73377110a2d7cf3590bdb8e0ef4b58c9628a06b1af46db726416fbaad0c29b91ee1eb631eccac14a26be994b705a43f097db8 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQEcBAEBCAAGBQJRacukAAoJEFpvPKfnPDWz+3AH/jSC1I6jnWKRSwntAzyHdpDV +zHnyUlwulvvgO/bYUY5PY++XkfFFPqZ4LRVOsKHzzjGtRHf/OP4jwd73U/KyZgPD +Y8mUYNs0otW/7YJvxCGJbu6KKxLEx5sJ5wCEoAJVvLC1pdCK2R0+HIZ4uaEDFKMu +SqBgpkPvLEyXYlAkpM3vhk2jVfsFUvZqNCBJP7fEC82mJnDqiUBJLTWsWVCDP1JR +3WYWs2xXG3mH7+2sh6fXlKravaW0sj1t+/nK1Q0oJkOCvJyaPcYMB1eknWHlZVV3 +PDqr7k26tSF5gm1tbQB2PKNne42KMMx8p8613cIZBfpial6IgxRZCPfarUpqDMg= +=SXfp +-----END PGP SIGNATURE----- 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> + |