From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- games-emulation/gambatte/Manifest | 5 ++ .../gambatte/gambatte-0.5.0_p20131102.ebuild | 97 ++++++++++++++++++++++ games-emulation/gambatte/metadata.xml | 11 +++ 3 files changed, 113 insertions(+) create mode 100644 games-emulation/gambatte/Manifest create mode 100644 games-emulation/gambatte/gambatte-0.5.0_p20131102.ebuild create mode 100644 games-emulation/gambatte/metadata.xml (limited to 'games-emulation/gambatte') diff --git a/games-emulation/gambatte/Manifest b/games-emulation/gambatte/Manifest new file mode 100644 index 000000000000..e82f24a2a42e --- /dev/null +++ b/games-emulation/gambatte/Manifest @@ -0,0 +1,5 @@ +DIST gambatte-0.5.0_p20131102.tar.xz 353212 SHA256 894040f47f3f5cc6e320d7ee9ac5370fb4301261ceee535c5e4ae5550f0e9ff0 SHA512 9f27af85d2fceb128231eb3e5bf2806a1773c575990296f37eb3c0a14bca5c72f7f161cdf77f710f4ff85b2b3266db9ba098e5ef6772bc5bf7b2c97b8281999b WHIRLPOOL 4ec8bc24bc3d5a443b2b938d8ed6d7164770d7788abc5251639b40f12417989185fa8cfa36abadb0c19fae34937411ad63f4fffa17f4ccecd39f37ace4e03c33 +EBUILD gambatte-0.5.0_p20131102.ebuild 2078 SHA256 1bac32cbc6ea8366c76b6f17abc63f269484586ed384d1f87bb8256a1f356cd5 SHA512 cce8a047ae8d7efde460c5986baf4fe3fc50e98cd63df1896b87cccb69bb94bd72d5fc1b7d11cc15a7f925f7fed5c20e9902f58fb0cf641ae708884120813ef7 WHIRLPOOL 9ecf02e44e5a459c3c88140c995106d76356f7f144f3c29951d453dab29b3b872e061ef76a14b7fb990a01c21bed22e671d0b737a47fffcb2009545fad52e6b0 +MISC ChangeLog 3163 SHA256 0dfe4ff512d03181f9e6a1913f2e9dfc0fe96ae6f181c45beebe7f836bbcebff SHA512 52361f748c879ca3b0f92b3704e3cd2f02dd4aa0d149983e417796d2d215debe5e9a0efb65f80d10421bf25fef50d57a24b9343ebd04145127da5eae3b4471cd WHIRLPOOL c5c95cc86f717f46fd346d7f54bfe67404971e8f15f2452793cdff85641bd45d52c5fc20153510ddb0df9107fb54444a7db2d117821832aef89c85d8ee79e5a6 +MISC ChangeLog-2015 1924 SHA256 81f96022e7fe87ddcc944f9400106f858d71cbd2cf2434e02aaae8da63723617 SHA512 e3b11a859facae0df1bcaeb5f676bcb00def95a8c2bfeae77891c1efeb004ebd88300b6f6030ac2ac5928385bc7590eb8dfb2035fa8f52a5d8119dd301fef9ed WHIRLPOOL d5a2dbc143da5f18a71f6a096b6f0ba0e410a087f259df484e89fa3ecb9d85233ad23d52395c62742832ecf6eeca8aab90c929689e5c691ffd959e8dc33de8cd +MISC metadata.xml 331 SHA256 286c43b7df2c17448b28d57c7df9b031d285feffa3634e0f08665bdf7423cb90 SHA512 c46ee0b944bbf88420eb47c11f60d00a6516fe2bb28b5078e8f11857636f16381969cac9edb98d554d07d0894c224817e12560410092ca532da036e697433b1a WHIRLPOOL b0fb76ea8f28d40f3a199b8546871ee9cfdf2c566fbf6312ea57ac761b503e1ea67bbef4537cbd24b784b7bd72373fc8cf3abfdb1cdedec419710ee837bc3dd2 diff --git a/games-emulation/gambatte/gambatte-0.5.0_p20131102.ebuild b/games-emulation/gambatte/gambatte-0.5.0_p20131102.ebuild new file mode 100644 index 000000000000..5881cbd1ec78 --- /dev/null +++ b/games-emulation/gambatte/gambatte-0.5.0_p20131102.ebuild @@ -0,0 +1,97 @@ +# 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 +} diff --git a/games-emulation/gambatte/metadata.xml b/games-emulation/gambatte/metadata.xml new file mode 100644 index 000000000000..a2f679865cad --- /dev/null +++ b/games-emulation/gambatte/metadata.xml @@ -0,0 +1,11 @@ + + + + + games@gentoo.org + Gentoo Games Project + + + gambatte + + -- cgit v1.2.3