diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-03-10 20:12:12 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-03-10 20:12:12 +0000 |
commit | 57500dbde4c69d13a8b02422a9b382a8e04bb34c (patch) | |
tree | 27edb94aabb9fef40e3cbf0bb870c701972fbb1f /games-engines | |
parent | initial import wrt #214479 based on Jared Bs ebuild (diff) | |
download | historical-57500dbde4c69d13a8b02422a9b382a8e04bb34c.tar.gz historical-57500dbde4c69d13a8b02422a9b382a8e04bb34c.tar.bz2 historical-57500dbde4c69d13a8b02422a9b382a8e04bb34c.zip |
initial import wrt #214479 based on Jared Bs ebuild
Package-Manager: portage-2.2.0_alpha166/cvs/Linux x86_64
Manifest-Sign-Key: 0xE73C35B3
Diffstat (limited to 'games-engines')
-rw-r--r-- | games-engines/gambatte/Manifest | 18 | ||||
-rw-r--r-- | games-engines/gambatte/gambatte-0.5.0_p20130310.ebuild | 97 | ||||
-rw-r--r-- | games-engines/gambatte/metadata.xml | 10 |
3 files changed, 123 insertions, 2 deletions
diff --git a/games-engines/gambatte/Manifest b/games-engines/gambatte/Manifest index b17b6aeef20c..8ce352cd8e45 100644 --- a/games-engines/gambatte/Manifest +++ b/games-engines/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 2081 SHA256 a71c6dcf08230161d5df6c36ade4818ca7a88fcd95997d9b037fdd6b61dba0e8 SHA512 a0f3ce2329e600a73a9c801b9a0a9956ab73233b5536994c9f19d88e30e82f1c29d988467b3f70de25b2ef77f700a519cefc2831a5e3ab63a3b346d67818f9c6 WHIRLPOOL 8711e226c5325200016a8f4a929fc3d1aa184be1b35a65203c86f2fcd37611185684d76e00f2ff5ad1f83e929cd97ca3f0624e5e687e1b5ad9252d74a889d616 -MISC ChangeLog 321 SHA256 e28fba8ecf67ee2dc96e518d88c4bfbc2f0a82f642f707f491c9d96466568464 SHA512 02ae64fdf223f61849467613f4daa77ad3a763b29e269d9a71f357e01fe3aebe8d96175e1372c468d96e44145dfb5aabaacadde94767c96921ea199ad3fbf3d3 WHIRLPOOL 3075482a0e730147030644af75f1ba5ffde7d4818db988a18d71a7eaa5c958bb241e86b6d610f19fba4957fca6fe371cdeeb3a5c13756df36e0756506c131101 +EBUILD gambatte-0.5.0_p20130310.ebuild 2199 SHA256 fa5ca573a2e26873751f79d84de56c2f01eb2bb1f242571d8882ce7e0cea8690 SHA512 a4118b0a98d0240058da1773052755e896ae5678987b7975b9dca68b5af5a3a6fbd41346e2ac7da3c93b0e1b85319da87e93f17d409bd63820fcf4ad903bac94 WHIRLPOOL 6b387be7f480f43bc6281e397c527d083ad8033e2ad399f837f52e2dbe193b81574f7623692cf9c6c199c65388a25860882411f144c9100ece89471a1fbb646d +MISC ChangeLog 417 SHA256 836cd9731fb95404436834ff1f4fd704b1aaabf63a179e5ea5056672fd304cec SHA512 16547c0c59488d5c0423558c08d096182827a6029cdfc0f6900064a5a2450414afbb19ec9c0ed2854ccd309f6818cc7201c879b42161e19b11513c894806c391 WHIRLPOOL 7685295cea930fed8f1e406abb8f5087abcdbad2c07f5fd0f97f0541f09d380ddaa982800c299c11a7f959154f0e5a3fee3e98a14290103ce595b8d8f2ebc60b MISC metadata.xml 255 SHA256 8ce125b1cb2a8da5fe808223ae6ed60fe03598c692e5020f0a8aaee09b5d6ca3 SHA512 29f4a4a15fc968a3151c449354cd2003831f4b66b57d72222c46d4e4f7ff0586ed3f0b76d09fadf0b43fbb3a46951b19207dd6d38b79fe394b61694cd272ad95 WHIRLPOOL 373afc42b6a5f9f473397b1b95b73377110a2d7cf3590bdb8e0ef4b58c9628a06b1af46db726416fbaad0c29b91ee1eb631eccac14a26be994b705a43f097db8 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQEcBAEBCAAGBQJRPOkcAAoJEFpvPKfnPDWzg+MH/0N1tZ1a5uHS8w5ueAVkx4Cw +lCKj3OjugjkOjUpNZbxR2RaZCcw66pK3TYT+B3qgvyw3HUZT1sohOoesAgHtBfjs +UgWvkiYbTpDQ3Flhi2UEi1SclSb8xmbXczVV6kPcMNwogUF17JF4p54GYTinK1lk +ViT90Y7/i6CiWnawTsgJ6d6+ddv6vBsz2BQlPMSPeSM42qlxV5gkJB/SGrDIGIGb +4T6xSy+ebLXp7eqxmGcqGjzeO5BY6wQ7FPHpfsZqFAttdu7h97vpRLaXrMUaCzia +LGQYkHeshMUCfvfDLNeOrXu6mEQGF1o/1YKiPF2jgcv5P/icCFup561F86cUkUg= +=S+QR +-----END PGP SIGNATURE----- diff --git a/games-engines/gambatte/gambatte-0.5.0_p20130310.ebuild b/games-engines/gambatte/gambatte-0.5.0_p20130310.ebuild new file mode 100644 index 000000000000..0dbe3ee13789 --- /dev/null +++ b/games-engines/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-engines/gambatte/gambatte-0.5.0_p20130310.ebuild,v 1.1 2013/03/10 20:12:09 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-engines/gambatte/metadata.xml b/games-engines/gambatte/metadata.xml new file mode 100644 index 000000000000..e52db06ebd8c --- /dev/null +++ b/games-engines/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> + |