public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/gambatte/
Date: Mon, 22 Jan 2018 22:26:24 +0000 (UTC)	[thread overview]
Message-ID: <1516659970.0f26789cd8d6585d0c01ae0965e472caf8cdef2e.asturm@gentoo> (raw)

commit:     0f26789cd8d6585d0c01ae0965e472caf8cdef2e
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 22 22:25:16 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Jan 22 22:26:10 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f26789c

games-emulation/gambatte: Drop Qt4, build w/ sdl unconditionally

Package-Manager: Portage-2.3.20, Repoman-2.3.6

 .../gambatte/gambatte-0.5.0_p20131102-r1.ebuild    | 76 ++++++++++++++++++++++
 1 file changed, 76 insertions(+)

diff --git a/games-emulation/gambatte/gambatte-0.5.0_p20131102-r1.ebuild b/games-emulation/gambatte/gambatte-0.5.0_p20131102-r1.ebuild
new file mode 100644
index 00000000000..5f6d72d5af7
--- /dev/null
+++ b/games-emulation/gambatte/gambatte-0.5.0_p20131102-r1.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit scons-utils 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=""
+
+RDEPEND="
+	media-libs/libsdl[X,sound,joystick,video]
+	sys-libs/zlib"
+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
+	cd "${S}"/gambatte_sdl || die
+	escons
+}
+
+src_install() {
+	dogamesbin gambatte_sdl/gambatte_sdl
+
+	dodoc README changelog
+
+	prepgamesdirs
+}


             reply	other threads:[~2018-01-22 22:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-22 22:26 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-04-29 11:26 [gentoo-commits] repo/gentoo:master commit in: games-emulation/gambatte/ Pacho Ramos
2018-04-29 11:26 Pacho Ramos
2018-01-22 22:26 Andreas Sturmlechner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1516659970.0f26789cd8d6585d0c01ae0965e472caf8cdef2e.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox