public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-emulation/sdlmame/
@ 2015-11-20  6:36 Michael Sterrett
  0 siblings, 0 replies; 12+ messages in thread
From: Michael Sterrett @ 2015-11-20  6:36 UTC (permalink / raw
  To: gentoo-commits

commit:     b1aa3f014dbf7af97ac8ad3d00526958a13c04a5
Author:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 20 06:36:26 2015 +0000
Commit:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
CommitDate: Fri Nov 20 06:36:26 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1aa3f01

version bump with lots of work from rickfharris <AT> yahoo.com.au on bug #556642

Package-Manager: portage-2.2.20.1

 games-emulation/sdlmame/Manifest             |   1 +
 games-emulation/sdlmame/metadata.xml         |   5 +
 games-emulation/sdlmame/sdlmame-0.167.ebuild | 233 +++++++++++++++++++++++++++
 3 files changed, 239 insertions(+)

diff --git a/games-emulation/sdlmame/Manifest b/games-emulation/sdlmame/Manifest
index 0bb3d4b..643a4db 100644
--- a/games-emulation/sdlmame/Manifest
+++ b/games-emulation/sdlmame/Manifest
@@ -1,3 +1,4 @@
+DIST mame-0.167.zip 82926991 SHA256 9457dd6e56b508ace7d3ce3d4fa3407639b953bf2a2893bd47efa30ad8432a99 SHA512 0929ecfb8f63b15d35001a5a2aba4f9c845dab50f7d0de36af3243c2c4b2c541c923166e1b222e1958c092538d88511e70ae2c4c75632556d2b8864e859cee0b WHIRLPOOL eaa77124a8a7f6bb41f1265d8b1d8df54f077d0702621c7b125ddcc1702c4fe71d556a3079ee09e433cfa06cb5c663b8ddcc3f33e0b1279db3878cebfb737da0
 DIST mame0148s.zip 33822494 SHA256 78d8a68ba53934fdfc895f450c08682dada81f7ec3e74a98fb042539506d9321 SHA512 a520115e2e82b2da3200ffa1fa56f668f95c3e26a927bcdb30a34e73053e55d26a6a6c1ec95eae1237bce1d2d0cd276b84466705fd5f53ac77827d06ea04bc03 WHIRLPOOL c6de71c198396977475110ab5840b7eaa6e5074519adffc286dd539ab916ea951fa1c307218b0d144cdc8aeeb096216106a3c21a6d53b42c04dc75e8103be04a
 DIST mame0149s.zip 35160585 SHA256 0e41b5773bea217d3ca04002903ac5ef569e6f5b67c05c72496d2cd7993b0a6b SHA512 4b8bd72e93f71fdb52c643776ecefb87fe605effe3f8c1724156cf7fafb8107330d92914eb14208a170cd5a0ee2775e7ea8d8edd0b525a35bbb0d5514172c1c3 WHIRLPOOL c5821ffc0f640e93986cd88f9e530be36e5ba0405a5dbc69a5021c828248dc74541340d5d9d49ece19635b5239bbaeeeb93bad2800fc46e9f441d8ffd3751ca5
 DIST sdlmame-ui.bdf.gz 114727 SHA256 f2ec11dd926bbeae8647e68607107516a30790239464939f3e99a0f62fc7f17e SHA512 67ba1bc632c1ac51b97acf8c1061477edd3519fea3d1233951723741c926ff72e259c274babb036abf4db92f217db507c58a6fc6e438db4b14c5fe5789b2ed64 WHIRLPOOL 2150053b38d8318804bf40cdcd9cdefdd2976c4cfab563c90021f0d9be0a0a57174166ece8b51658d9f2192e07343f198358299667a1db32f146c9fb9c528956

diff --git a/games-emulation/sdlmame/metadata.xml b/games-emulation/sdlmame/metadata.xml
index f8f417e..337843a 100644
--- a/games-emulation/sdlmame/metadata.xml
+++ b/games-emulation/sdlmame/metadata.xml
@@ -16,4 +16,9 @@ encounter it on.
 non-Windows platforms to make and submit changes to the core MAME code, and we offer native
 implementations of MAME's multi-window GUI debugger on both Linux/Unix and Mac OS X.
 </longdescription>
+  <use>
+    <flag name="arcade">Enable the Multiple Arcade Machine Emulator for arcade games support</flag>
+    <flag name="tools">Build development tools shared between sdlmame and sdlmess</flag>
+    <flag name="mess">Enable the Multi Emulator Super System for game system support</flag>
+  </use>
 </pkgmetadata>

diff --git a/games-emulation/sdlmame/sdlmame-0.167.ebuild b/games-emulation/sdlmame/sdlmame-0.167.ebuild
new file mode 100644
index 0000000..83c4ce6
--- /dev/null
+++ b/games-emulation/sdlmame/sdlmame-0.167.ebuild
@@ -0,0 +1,233 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4} )
+inherit eutils python-any-r1 toolchain-funcs games
+
+MY_PV="${PV/.}"
+
+DESCRIPTION="Multiple Arcade Machine Emulator + Multi Emulator Super System (MESS)"
+HOMEPAGE="http://mamedev.org/"
+SRC_URI="https://github.com/mamedev/mame/releases/download/mame${MY_PV}/mame${MY_PV}s.zip -> mame-${PV}.zip"
+
+LICENSE="XMAME"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="X alsa +arcade debug +mess opengl tools"
+REQUIRED_USE="|| ( arcade mess )
+		debug? ( X )"
+
+# MESS (games-emulation/sdlmess) has been merged into MAME upstream since mame-0.162 (see below)
+#  MAME/MESS build combined (default)	+arcade +mess	(mame)
+#  MAME build only			+arcade -mess	(mamearcade)
+#  MESS build only			-arcade +mess	(mess)
+# games-emulation/sdlmametools is dropped and enabled instead by the 'tools' useflag
+RDEPEND="!games-emulation/sdlmametools
+	!games-emulation/sdlmess
+	dev-db/sqlite:3
+	dev-libs/expat
+	media-libs/fontconfig
+	media-libs/flac
+	media-libs/libsdl2[joystick,opengl?,sound,video]
+	media-libs/portaudio
+	media-libs/sdl2-ttf
+	sys-libs/zlib
+	virtual/jpeg:0
+	alsa? ( media-libs/alsa-lib
+		media-libs/portmidi )
+	debug? ( dev-qt/qtcore:4
+		dev-qt/qtgui:4 )
+	X? ( x11-libs/libX11
+		x11-libs/libXinerama )
+	${PYTHON_DEPS}"
+DEPEND="${RDEPEND}
+	${PYTHON_DEPS}
+	app-arch/unzip
+	virtual/pkgconfig
+	X? ( x11-proto/xineramaproto )"
+
+S=${WORKDIR}
+
+# Function to disable a makefile option
+disable_feature() {
+	sed -i -e "/$1.*=/s:^:# :" makefile || die
+}
+
+# Function to enable a makefile option
+enable_feature() {
+	sed -i -e "/^#.*$1.*=/s:^#::"  makefile || die
+}
+
+pkg_setup() {
+	games_pkg_setup
+	python-any-r1_pkg_setup
+}
+
+src_unpack() {
+	default
+	unpack ./mame.zip
+	rm -f mame.zip || die
+}
+
+src_prepare() {
+	# Disable using bundled libraries
+	enable_feature USE_SYSTEM_LIB_EXPAT
+	enable_feature USE_SYSTEM_LIB_FLAC
+	enable_feature USE_SYSTEM_LIB_JPEG
+# Use bundled lua for now to ensure correct compilation (ref. b.g.o #407091)
+#	enable_feature USE_SYSTEM_LIB_LUA
+	enable_feature USE_SYSTEM_LIB_PORTAUDIO
+	enable_feature USE_SYSTEM_LIB_SQLITE3
+	enable_feature USE_SYSTEM_LIB_ZLIB
+
+	# Disable warnings being treated as errors and enable verbose build output
+	enable_feature NOWERROR
+	enable_feature VERBOSE
+
+	use amd64 && enable_feature PTR64
+	use ppc && enable_feature BIGENDIAN
+	use debug && enable_feature DEBUG
+	use opengl || enable_feature NO_OPENGL
+	use tools && enable_feature TOOLS
+	use X || enable_feature NO_X11
+
+	if use alsa ; then
+		enable_feature USE_SYSTEM_LIB_PORTMIDI
+	else
+		enable_feature NO_USE_MIDI
+	fi
+
+	sed -i \
+		-e 's/-Os//' \
+		-e '/^\(CC\|CXX\|AR\) /s/=/?=/' \
+		3rdparty/genie/build/gmake.linux/genie.make || die
+}
+
+src_compile() {
+	local targetargs
+	local qtdebug=$(usex debug 1 0)
+
+	use arcade && ! use mess && targetargs="SUBTARGET=arcade"
+	! use arcade && use mess && targetargs="SUBTARGET=mess"
+
+	function my_emake() {
+		# Workaround conflicting $ARCH variable used by both Gentoo's
+		# portage and by Mame's build scripts
+		# turn off bgfx for now since it's an embedded library (bug #556642)
+		PYTHON_EXECUTABLE=${PYTHON} \
+		OVERRIDE_CC=$(tc-getCC) \
+		OVERRIDE_CXX=$(tc-getCXX) \
+		OVERRIDE_LD=$(tc-getCXX) \
+		USE_BGFX= \
+		ARCH= \
+			emake "$@" \
+				AR=$(tc-getAR)
+	}
+	my_emake -j1 generate
+
+	my_emake ${targetargs} \
+		SDL_INI_PATH="\$\$\$\$HOME/.sdlmame;${GAMES_SYSCONFDIR}/${PN}" \
+		USE_QTDEBUG=${qtdebug}
+
+	if use tools ; then
+		my_emake -j1 TARGET=ldplayer USE_QTDEBUG=${qtdebug}
+	fi
+}
+
+src_install() {
+	local MAMEBIN
+	local suffix="$(use amd64 && echo 64)$(use debug && echo d)"
+	local f
+
+	function mess_install() {
+		dosym ${MAMEBIN} "${GAMES_BINDIR}"/mess${suffix}
+		dosym ${MAMEBIN} "${GAMES_BINDIR}"/sdlmess
+		newman src/osd/sdl/man/mess.6 sdlmess.6
+		doman src/osd/sdl/man/mess.6
+	}
+	if use arcade ; then
+		if use mess ; then
+			MAMEBIN="mame${suffix}"
+			mess_install
+		else
+			MAMEBIN="mamearcade${suffix}"
+		fi
+		doman src/osd/sdl/man/mame.6
+		newman src/osd/sdl/man/mame.6 ${PN}.6
+	elif use mess ; then
+		MAMEBIN="mess${suffix}"
+		mess_install
+	fi
+	dogamesbin ${MAMEBIN}
+	dosym ${MAMEBIN} "${GAMES_BINDIR}/${PN}"
+
+	insinto "${GAMES_DATADIR}/${PN}"
+	doins -r src/osd/sdl/keymaps $(use mess && echo hash)
+
+	# Create default mame.ini and inject Gentoo settings into it
+	#  Note that '~' does not work and '$HOME' must be used
+	./${MAMEBIN} -noreadconfig -showconfig > "${T}/mame.ini" || die
+	# -- Paths --
+	for f in {rom,hash,sample,art,font,crosshair} ; do
+		sed -i \
+			-e "s:\(${f}path\)[ \t]*\(.*\):\1 \t\t\$HOME/.${PN}/\2;${GAMES_DATADIR}/${PN}/\2:" \
+			"${T}/mame.ini" || die
+	done
+	for f in {ctrlr,cheat} ; do
+		sed -i \
+			-e "s:\(${f}path\)[ \t]*\(.*\):\1 \t\t\$HOME/.${PN}/\2;${GAMES_SYSCONFDIR}/${PN}/\2;${GAMES_DATADIR}/${PN}/\2:" \
+			"${T}/mame.ini" || die
+	done
+	# -- Directories
+	for f in {cfg,nvram,memcard,input,state,snapshot,diff,commit} ; do
+		sed -i \
+			-e "s:\(${f}_directory\)[ \t]*\(.*\):\1 \t\t\$HOME/.${PN}/\2:" \
+			"${T}/mame.ini" || die
+	done
+	# -- Keymaps --
+	sed -i \
+		-e "s:\(keymap_file\)[ \t]*\(.*\):\1 \t\t\$HOME/.${PN}/\2:" \
+		"${T}/mame.ini" || die
+	for f in src/osd/sdl/keymaps/km*.txt ; do
+		sed -i \
+			-e "/^keymap_file/a \#keymap_file \t\t${GAMES_DATADIR}/${PN}/keymaps/${f##*/}" \
+			"${T}/mame.ini" || die
+	done
+	insinto "${GAMES_SYSCONFDIR}/${PN}"
+	doins "${T}/mame.ini"
+
+	insinto "${GAMES_SYSCONFDIR}/${PN}"
+	doins "${FILESDIR}/vector.ini"
+
+	dodoc docs/{config,mame,newvideo}.txt
+	keepdir \
+		"${GAMES_DATADIR}/${PN}"/{ctrlr,cheats,roms,samples,artwork,crosshair} \
+		"${GAMES_SYSCONFDIR}/${PN}"/{ctrlr,cheats}
+
+	if use tools ; then
+		for f in castool chdman floptool imgtool jedutil ldresample ldverify romcmp testkeys ; do
+			newgamesbin ${f} ${PN}-${f}
+			newman src/osd/sdl/man/${f}.1 ${PN}-${f}.1
+		done
+		newgamesbin ldplayer${suffix} ${PN}-ldplayer
+		newman src/osd/sdl/man/ldplayer.1 ${PN}-ldplayer.1
+	fi
+
+	prepgamesdirs
+}
+
+pkg_postinst() {
+	games_pkg_postinst
+
+	elog "It is strongly recommended to change either the system-wide"
+	elog "  ${GAMES_SYSCONFDIR}/${PN}/mame.ini or use a per-user setup at ~/.${PN}/mame.ini"
+	elog
+	if use opengl ; then
+		elog "You built ${PN} with opengl support and should set"
+		elog "\"video\" to \"opengl\" in mame.ini to take advantage of that"
+		elog
+		elog "For more info see http://wiki.mamedev.org"
+	fi
+}


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-emulation/sdlmame/
@ 2015-11-25 20:15 Michael Sterrett
  0 siblings, 0 replies; 12+ messages in thread
From: Michael Sterrett @ 2015-11-25 20:15 UTC (permalink / raw
  To: gentoo-commits

commit:     ebd355e60ceb65817937a2c0c73f536efd694a11
Author:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 25 20:15:07 2015 +0000
Commit:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
CommitDate: Wed Nov 25 20:15:37 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebd355e6

drop ppc support since they don't have libsdl2

Package-Manager: portage-2.2.20.1

 games-emulation/sdlmame/sdlmame-0.167.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/games-emulation/sdlmame/sdlmame-0.167.ebuild b/games-emulation/sdlmame/sdlmame-0.167.ebuild
index 83c4ce6..d2371fe 100644
--- a/games-emulation/sdlmame/sdlmame-0.167.ebuild
+++ b/games-emulation/sdlmame/sdlmame-0.167.ebuild
@@ -14,7 +14,7 @@ SRC_URI="https://github.com/mamedev/mame/releases/download/mame${MY_PV}/mame${MY
 
 LICENSE="XMAME"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
+KEYWORDS="~amd64 ~x86"
 IUSE="X alsa +arcade debug +mess opengl tools"
 REQUIRED_USE="|| ( arcade mess )
 		debug? ( X )"


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-emulation/sdlmame/
@ 2015-11-26 18:45 Michael Sterrett
  0 siblings, 0 replies; 12+ messages in thread
From: Michael Sterrett @ 2015-11-26 18:45 UTC (permalink / raw
  To: gentoo-commits

commit:     fef30663bb7e8f8a199374de3ae0b43700bc16b1
Author:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 26 18:44:29 2015 +0000
Commit:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
CommitDate: Thu Nov 26 18:44:50 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fef30663

Guess it doesn't work with python3 after all (bug #566932)

Package-Manager: portage-2.2.20.1

 games-emulation/sdlmame/sdlmame-0.167.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/games-emulation/sdlmame/sdlmame-0.167.ebuild b/games-emulation/sdlmame/sdlmame-0.167.ebuild
index d2371fe..79326b6 100644
--- a/games-emulation/sdlmame/sdlmame-0.167.ebuild
+++ b/games-emulation/sdlmame/sdlmame-0.167.ebuild
@@ -3,7 +3,7 @@
 # $Id$
 
 EAPI=5
-PYTHON_COMPAT=( python{2_7,3_4} )
+PYTHON_COMPAT=( python2_7 )
 inherit eutils python-any-r1 toolchain-funcs games
 
 MY_PV="${PV/.}"


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-emulation/sdlmame/
@ 2015-11-30 19:27 Michael Sterrett
  0 siblings, 0 replies; 12+ messages in thread
From: Michael Sterrett @ 2015-11-30 19:27 UTC (permalink / raw
  To: gentoo-commits

commit:     cc14dcae68ff0216fa42a8196be665f3c66424fb
Author:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 30 19:26:44 2015 +0000
Commit:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
CommitDate: Mon Nov 30 19:26:59 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc14dcae

typo fixes from Casper Ti. Vector via bug #566996

Package-Manager: portage-2.2.20.1

 games-emulation/sdlmame/sdlmame-0.167.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/games-emulation/sdlmame/sdlmame-0.167.ebuild b/games-emulation/sdlmame/sdlmame-0.167.ebuild
index 79326b6..346fdc4 100644
--- a/games-emulation/sdlmame/sdlmame-0.167.ebuild
+++ b/games-emulation/sdlmame/sdlmame-0.167.ebuild
@@ -181,7 +181,7 @@ src_install() {
 			"${T}/mame.ini" || die
 	done
 	# -- Directories
-	for f in {cfg,nvram,memcard,input,state,snapshot,diff,commit} ; do
+	for f in {cfg,nvram,memcard,input,state,snapshot,diff,comment} ; do
 		sed -i \
 			-e "s:\(${f}_directory\)[ \t]*\(.*\):\1 \t\t\$HOME/.${PN}/\2:" \
 			"${T}/mame.ini" || die
@@ -203,8 +203,8 @@ src_install() {
 
 	dodoc docs/{config,mame,newvideo}.txt
 	keepdir \
-		"${GAMES_DATADIR}/${PN}"/{ctrlr,cheats,roms,samples,artwork,crosshair} \
-		"${GAMES_SYSCONFDIR}/${PN}"/{ctrlr,cheats}
+		"${GAMES_DATADIR}/${PN}"/{ctrlr,cheat,roms,samples,artwork,crosshair} \
+		"${GAMES_SYSCONFDIR}/${PN}"/{ctrlr,cheat}
 
 	if use tools ; then
 		for f in castool chdman floptool imgtool jedutil ldresample ldverify romcmp testkeys ; do


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-emulation/sdlmame/
@ 2015-12-12  2:46 Michael Sterrett
  0 siblings, 0 replies; 12+ messages in thread
From: Michael Sterrett @ 2015-12-12  2:46 UTC (permalink / raw
  To: gentoo-commits

commit:     338cdf4d35e1e7a6965949e63a3f92b6300936a1
Author:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 12 02:45:46 2015 +0000
Commit:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
CommitDate: Sat Dec 12 02:46:10 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=338cdf4d

version bump

Package-Manager: portage-2.2.24

 games-emulation/sdlmame/Manifest             |   1 +
 games-emulation/sdlmame/sdlmame-0.168.ebuild | 233 +++++++++++++++++++++++++++
 2 files changed, 234 insertions(+)

diff --git a/games-emulation/sdlmame/Manifest b/games-emulation/sdlmame/Manifest
index 643a4db..86cf58d 100644
--- a/games-emulation/sdlmame/Manifest
+++ b/games-emulation/sdlmame/Manifest
@@ -1,4 +1,5 @@
 DIST mame-0.167.zip 82926991 SHA256 9457dd6e56b508ace7d3ce3d4fa3407639b953bf2a2893bd47efa30ad8432a99 SHA512 0929ecfb8f63b15d35001a5a2aba4f9c845dab50f7d0de36af3243c2c4b2c541c923166e1b222e1958c092538d88511e70ae2c4c75632556d2b8864e859cee0b WHIRLPOOL eaa77124a8a7f6bb41f1265d8b1d8df54f077d0702621c7b125ddcc1702c4fe71d556a3079ee09e433cfa06cb5c663b8ddcc3f33e0b1279db3878cebfb737da0
+DIST mame-0.168.zip 82770536 SHA256 f91e014c3d3bf3da790284a25437f231a84228a6adbf42db35ca34a57f8a3092 SHA512 14b0519682f8aeb2379cd29b9e0ad8f3c54866296ac158876435425b79c3bf19a2dc520df7a44fe301a8e8cbbc335185602f4998edf6e95324f527c50c72411e WHIRLPOOL 41ddbe191423e3653a52f7734cc85088f1c663fd9aefdbd00ceefbe86f27bde190d14505be7fa69f76c7a39c6bbb5ab196685c2e001c8517cb90f4f7f27e8a51
 DIST mame0148s.zip 33822494 SHA256 78d8a68ba53934fdfc895f450c08682dada81f7ec3e74a98fb042539506d9321 SHA512 a520115e2e82b2da3200ffa1fa56f668f95c3e26a927bcdb30a34e73053e55d26a6a6c1ec95eae1237bce1d2d0cd276b84466705fd5f53ac77827d06ea04bc03 WHIRLPOOL c6de71c198396977475110ab5840b7eaa6e5074519adffc286dd539ab916ea951fa1c307218b0d144cdc8aeeb096216106a3c21a6d53b42c04dc75e8103be04a
 DIST mame0149s.zip 35160585 SHA256 0e41b5773bea217d3ca04002903ac5ef569e6f5b67c05c72496d2cd7993b0a6b SHA512 4b8bd72e93f71fdb52c643776ecefb87fe605effe3f8c1724156cf7fafb8107330d92914eb14208a170cd5a0ee2775e7ea8d8edd0b525a35bbb0d5514172c1c3 WHIRLPOOL c5821ffc0f640e93986cd88f9e530be36e5ba0405a5dbc69a5021c828248dc74541340d5d9d49ece19635b5239bbaeeeb93bad2800fc46e9f441d8ffd3751ca5
 DIST sdlmame-ui.bdf.gz 114727 SHA256 f2ec11dd926bbeae8647e68607107516a30790239464939f3e99a0f62fc7f17e SHA512 67ba1bc632c1ac51b97acf8c1061477edd3519fea3d1233951723741c926ff72e259c274babb036abf4db92f217db507c58a6fc6e438db4b14c5fe5789b2ed64 WHIRLPOOL 2150053b38d8318804bf40cdcd9cdefdd2976c4cfab563c90021f0d9be0a0a57174166ece8b51658d9f2192e07343f198358299667a1db32f146c9fb9c528956

diff --git a/games-emulation/sdlmame/sdlmame-0.168.ebuild b/games-emulation/sdlmame/sdlmame-0.168.ebuild
new file mode 100644
index 0000000..346fdc4
--- /dev/null
+++ b/games-emulation/sdlmame/sdlmame-0.168.ebuild
@@ -0,0 +1,233 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-any-r1 toolchain-funcs games
+
+MY_PV="${PV/.}"
+
+DESCRIPTION="Multiple Arcade Machine Emulator + Multi Emulator Super System (MESS)"
+HOMEPAGE="http://mamedev.org/"
+SRC_URI="https://github.com/mamedev/mame/releases/download/mame${MY_PV}/mame${MY_PV}s.zip -> mame-${PV}.zip"
+
+LICENSE="XMAME"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="X alsa +arcade debug +mess opengl tools"
+REQUIRED_USE="|| ( arcade mess )
+		debug? ( X )"
+
+# MESS (games-emulation/sdlmess) has been merged into MAME upstream since mame-0.162 (see below)
+#  MAME/MESS build combined (default)	+arcade +mess	(mame)
+#  MAME build only			+arcade -mess	(mamearcade)
+#  MESS build only			-arcade +mess	(mess)
+# games-emulation/sdlmametools is dropped and enabled instead by the 'tools' useflag
+RDEPEND="!games-emulation/sdlmametools
+	!games-emulation/sdlmess
+	dev-db/sqlite:3
+	dev-libs/expat
+	media-libs/fontconfig
+	media-libs/flac
+	media-libs/libsdl2[joystick,opengl?,sound,video]
+	media-libs/portaudio
+	media-libs/sdl2-ttf
+	sys-libs/zlib
+	virtual/jpeg:0
+	alsa? ( media-libs/alsa-lib
+		media-libs/portmidi )
+	debug? ( dev-qt/qtcore:4
+		dev-qt/qtgui:4 )
+	X? ( x11-libs/libX11
+		x11-libs/libXinerama )
+	${PYTHON_DEPS}"
+DEPEND="${RDEPEND}
+	${PYTHON_DEPS}
+	app-arch/unzip
+	virtual/pkgconfig
+	X? ( x11-proto/xineramaproto )"
+
+S=${WORKDIR}
+
+# Function to disable a makefile option
+disable_feature() {
+	sed -i -e "/$1.*=/s:^:# :" makefile || die
+}
+
+# Function to enable a makefile option
+enable_feature() {
+	sed -i -e "/^#.*$1.*=/s:^#::"  makefile || die
+}
+
+pkg_setup() {
+	games_pkg_setup
+	python-any-r1_pkg_setup
+}
+
+src_unpack() {
+	default
+	unpack ./mame.zip
+	rm -f mame.zip || die
+}
+
+src_prepare() {
+	# Disable using bundled libraries
+	enable_feature USE_SYSTEM_LIB_EXPAT
+	enable_feature USE_SYSTEM_LIB_FLAC
+	enable_feature USE_SYSTEM_LIB_JPEG
+# Use bundled lua for now to ensure correct compilation (ref. b.g.o #407091)
+#	enable_feature USE_SYSTEM_LIB_LUA
+	enable_feature USE_SYSTEM_LIB_PORTAUDIO
+	enable_feature USE_SYSTEM_LIB_SQLITE3
+	enable_feature USE_SYSTEM_LIB_ZLIB
+
+	# Disable warnings being treated as errors and enable verbose build output
+	enable_feature NOWERROR
+	enable_feature VERBOSE
+
+	use amd64 && enable_feature PTR64
+	use ppc && enable_feature BIGENDIAN
+	use debug && enable_feature DEBUG
+	use opengl || enable_feature NO_OPENGL
+	use tools && enable_feature TOOLS
+	use X || enable_feature NO_X11
+
+	if use alsa ; then
+		enable_feature USE_SYSTEM_LIB_PORTMIDI
+	else
+		enable_feature NO_USE_MIDI
+	fi
+
+	sed -i \
+		-e 's/-Os//' \
+		-e '/^\(CC\|CXX\|AR\) /s/=/?=/' \
+		3rdparty/genie/build/gmake.linux/genie.make || die
+}
+
+src_compile() {
+	local targetargs
+	local qtdebug=$(usex debug 1 0)
+
+	use arcade && ! use mess && targetargs="SUBTARGET=arcade"
+	! use arcade && use mess && targetargs="SUBTARGET=mess"
+
+	function my_emake() {
+		# Workaround conflicting $ARCH variable used by both Gentoo's
+		# portage and by Mame's build scripts
+		# turn off bgfx for now since it's an embedded library (bug #556642)
+		PYTHON_EXECUTABLE=${PYTHON} \
+		OVERRIDE_CC=$(tc-getCC) \
+		OVERRIDE_CXX=$(tc-getCXX) \
+		OVERRIDE_LD=$(tc-getCXX) \
+		USE_BGFX= \
+		ARCH= \
+			emake "$@" \
+				AR=$(tc-getAR)
+	}
+	my_emake -j1 generate
+
+	my_emake ${targetargs} \
+		SDL_INI_PATH="\$\$\$\$HOME/.sdlmame;${GAMES_SYSCONFDIR}/${PN}" \
+		USE_QTDEBUG=${qtdebug}
+
+	if use tools ; then
+		my_emake -j1 TARGET=ldplayer USE_QTDEBUG=${qtdebug}
+	fi
+}
+
+src_install() {
+	local MAMEBIN
+	local suffix="$(use amd64 && echo 64)$(use debug && echo d)"
+	local f
+
+	function mess_install() {
+		dosym ${MAMEBIN} "${GAMES_BINDIR}"/mess${suffix}
+		dosym ${MAMEBIN} "${GAMES_BINDIR}"/sdlmess
+		newman src/osd/sdl/man/mess.6 sdlmess.6
+		doman src/osd/sdl/man/mess.6
+	}
+	if use arcade ; then
+		if use mess ; then
+			MAMEBIN="mame${suffix}"
+			mess_install
+		else
+			MAMEBIN="mamearcade${suffix}"
+		fi
+		doman src/osd/sdl/man/mame.6
+		newman src/osd/sdl/man/mame.6 ${PN}.6
+	elif use mess ; then
+		MAMEBIN="mess${suffix}"
+		mess_install
+	fi
+	dogamesbin ${MAMEBIN}
+	dosym ${MAMEBIN} "${GAMES_BINDIR}/${PN}"
+
+	insinto "${GAMES_DATADIR}/${PN}"
+	doins -r src/osd/sdl/keymaps $(use mess && echo hash)
+
+	# Create default mame.ini and inject Gentoo settings into it
+	#  Note that '~' does not work and '$HOME' must be used
+	./${MAMEBIN} -noreadconfig -showconfig > "${T}/mame.ini" || die
+	# -- Paths --
+	for f in {rom,hash,sample,art,font,crosshair} ; do
+		sed -i \
+			-e "s:\(${f}path\)[ \t]*\(.*\):\1 \t\t\$HOME/.${PN}/\2;${GAMES_DATADIR}/${PN}/\2:" \
+			"${T}/mame.ini" || die
+	done
+	for f in {ctrlr,cheat} ; do
+		sed -i \
+			-e "s:\(${f}path\)[ \t]*\(.*\):\1 \t\t\$HOME/.${PN}/\2;${GAMES_SYSCONFDIR}/${PN}/\2;${GAMES_DATADIR}/${PN}/\2:" \
+			"${T}/mame.ini" || die
+	done
+	# -- Directories
+	for f in {cfg,nvram,memcard,input,state,snapshot,diff,comment} ; do
+		sed -i \
+			-e "s:\(${f}_directory\)[ \t]*\(.*\):\1 \t\t\$HOME/.${PN}/\2:" \
+			"${T}/mame.ini" || die
+	done
+	# -- Keymaps --
+	sed -i \
+		-e "s:\(keymap_file\)[ \t]*\(.*\):\1 \t\t\$HOME/.${PN}/\2:" \
+		"${T}/mame.ini" || die
+	for f in src/osd/sdl/keymaps/km*.txt ; do
+		sed -i \
+			-e "/^keymap_file/a \#keymap_file \t\t${GAMES_DATADIR}/${PN}/keymaps/${f##*/}" \
+			"${T}/mame.ini" || die
+	done
+	insinto "${GAMES_SYSCONFDIR}/${PN}"
+	doins "${T}/mame.ini"
+
+	insinto "${GAMES_SYSCONFDIR}/${PN}"
+	doins "${FILESDIR}/vector.ini"
+
+	dodoc docs/{config,mame,newvideo}.txt
+	keepdir \
+		"${GAMES_DATADIR}/${PN}"/{ctrlr,cheat,roms,samples,artwork,crosshair} \
+		"${GAMES_SYSCONFDIR}/${PN}"/{ctrlr,cheat}
+
+	if use tools ; then
+		for f in castool chdman floptool imgtool jedutil ldresample ldverify romcmp testkeys ; do
+			newgamesbin ${f} ${PN}-${f}
+			newman src/osd/sdl/man/${f}.1 ${PN}-${f}.1
+		done
+		newgamesbin ldplayer${suffix} ${PN}-ldplayer
+		newman src/osd/sdl/man/ldplayer.1 ${PN}-ldplayer.1
+	fi
+
+	prepgamesdirs
+}
+
+pkg_postinst() {
+	games_pkg_postinst
+
+	elog "It is strongly recommended to change either the system-wide"
+	elog "  ${GAMES_SYSCONFDIR}/${PN}/mame.ini or use a per-user setup at ~/.${PN}/mame.ini"
+	elog
+	if use opengl ; then
+		elog "You built ${PN} with opengl support and should set"
+		elog "\"video\" to \"opengl\" in mame.ini to take advantage of that"
+		elog
+		elog "For more info see http://wiki.mamedev.org"
+	fi
+}


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-emulation/sdlmame/
@ 2016-01-09  7:05 Michael Sterrett
  0 siblings, 0 replies; 12+ messages in thread
From: Michael Sterrett @ 2016-01-09  7:05 UTC (permalink / raw
  To: gentoo-commits

commit:     7c2b79d167110ad1a9294aeceb0834b08156af1b
Author:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
AuthorDate: Sat Jan  9 06:09:25 2016 +0000
Commit:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
CommitDate: Sat Jan  9 07:04:53 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c2b79d1

games-emulation/sdlmame: really disable BGFX (exposed in bug #570702)

Package-Manager: portage-2.2.26

 games-emulation/sdlmame/sdlmame-0.168.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/games-emulation/sdlmame/sdlmame-0.168.ebuild b/games-emulation/sdlmame/sdlmame-0.168.ebuild
index 346fdc4..299d20b 100644
--- a/games-emulation/sdlmame/sdlmame-0.168.ebuild
+++ b/games-emulation/sdlmame/sdlmame-0.168.ebuild
@@ -120,7 +120,7 @@ src_compile() {
 		OVERRIDE_CC=$(tc-getCC) \
 		OVERRIDE_CXX=$(tc-getCXX) \
 		OVERRIDE_LD=$(tc-getCXX) \
-		USE_BGFX= \
+		USE_BGFX=0 \
 		ARCH= \
 			emake "$@" \
 				AR=$(tc-getAR)


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-emulation/sdlmame/
@ 2016-01-15  9:03 Agostino Sarubbo
  0 siblings, 0 replies; 12+ messages in thread
From: Agostino Sarubbo @ 2016-01-15  9:03 UTC (permalink / raw
  To: gentoo-commits

commit:     06f75b94c3166afb6c1083114be7bddc544c99fa
Author:     Agostino Sarubbo <ago <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 15 09:01:45 2016 +0000
Commit:     Agostino Sarubbo <ago <AT> gentoo <DOT> org>
CommitDate: Fri Jan 15 09:01:45 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06f75b94

games-emulation/sdlmame: amd64 stable wrt bug #571336

Package-Manager: portage-2.2.26
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo <ago <AT> gentoo.org>

 games-emulation/sdlmame/sdlmame-0.168.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/games-emulation/sdlmame/sdlmame-0.168.ebuild b/games-emulation/sdlmame/sdlmame-0.168.ebuild
index 299d20b..1bec2da 100644
--- a/games-emulation/sdlmame/sdlmame-0.168.ebuild
+++ b/games-emulation/sdlmame/sdlmame-0.168.ebuild
@@ -14,7 +14,7 @@ SRC_URI="https://github.com/mamedev/mame/releases/download/mame${MY_PV}/mame${MY
 
 LICENSE="XMAME"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="amd64 ~x86"
 IUSE="X alsa +arcade debug +mess opengl tools"
 REQUIRED_USE="|| ( arcade mess )
 		debug? ( X )"


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-emulation/sdlmame/
@ 2016-02-14 10:11 Agostino Sarubbo
  0 siblings, 0 replies; 12+ messages in thread
From: Agostino Sarubbo @ 2016-02-14 10:11 UTC (permalink / raw
  To: gentoo-commits

commit:     c63f460b9f8f2b259e4e6dbf0392ea9b3a542e05
Author:     Agostino Sarubbo <ago <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 14 10:09:26 2016 +0000
Commit:     Agostino Sarubbo <ago <AT> gentoo <DOT> org>
CommitDate: Sun Feb 14 10:10:58 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c63f460b

games-emulation/sdlmame: x86 stable wrt bug #571336

Package-Manager: portage-2.2.26
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo <ago <AT> gentoo.org>

 games-emulation/sdlmame/sdlmame-0.168.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/games-emulation/sdlmame/sdlmame-0.168.ebuild b/games-emulation/sdlmame/sdlmame-0.168.ebuild
index 1bec2da..71cb5b6 100644
--- a/games-emulation/sdlmame/sdlmame-0.168.ebuild
+++ b/games-emulation/sdlmame/sdlmame-0.168.ebuild
@@ -14,7 +14,7 @@ SRC_URI="https://github.com/mamedev/mame/releases/download/mame${MY_PV}/mame${MY
 
 LICENSE="XMAME"
 SLOT="0"
-KEYWORDS="amd64 ~x86"
+KEYWORDS="amd64 x86"
 IUSE="X alsa +arcade debug +mess opengl tools"
 REQUIRED_USE="|| ( arcade mess )
 		debug? ( X )"


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-emulation/sdlmame/
@ 2016-05-03  6:10 Michael Sterrett
  0 siblings, 0 replies; 12+ messages in thread
From: Michael Sterrett @ 2016-05-03  6:10 UTC (permalink / raw
  To: gentoo-commits

commit:     5c55743001f31c2d5de5da918bacbf2e9f20a55d
Author:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
AuthorDate: Tue May  3 06:09:46 2016 +0000
Commit:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
CommitDate: Tue May  3 06:10:05 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c557430

games-emulation/sdlmame: version bump (bug #573154)

Package-Manager: portage-2.2.26

 games-emulation/sdlmame/Manifest             |   1 +
 games-emulation/sdlmame/sdlmame-0.173.ebuild | 232 +++++++++++++++++++++++++++
 2 files changed, 233 insertions(+)

diff --git a/games-emulation/sdlmame/Manifest b/games-emulation/sdlmame/Manifest
index 27c42ad..95551bb 100644
--- a/games-emulation/sdlmame/Manifest
+++ b/games-emulation/sdlmame/Manifest
@@ -1 +1,2 @@
 DIST mame-0.168.zip 82770536 SHA256 f91e014c3d3bf3da790284a25437f231a84228a6adbf42db35ca34a57f8a3092 SHA512 14b0519682f8aeb2379cd29b9e0ad8f3c54866296ac158876435425b79c3bf19a2dc520df7a44fe301a8e8cbbc335185602f4998edf6e95324f527c50c72411e WHIRLPOOL 41ddbe191423e3653a52f7734cc85088f1c663fd9aefdbd00ceefbe86f27bde190d14505be7fa69f76c7a39c6bbb5ab196685c2e001c8517cb90f4f7f27e8a51
+DIST mame-0.173.zip 92387665 SHA256 45a31815838abfab10d4b0c13be013c24385f1ff07aaeafa8e86014b996376a5 SHA512 e4ca67cf313b23c49a30914299878270caddd24b5f26aefb6a5dc3ae0720847aff63e999237997edb01492afd60e3afd4be54ff885595e2f043ac4c0b647488b WHIRLPOOL d7065575ea842e63efd0494b1ba477524b4185b7ebd651bb7a60240b38b692245c53bf3a6044c251805bb80b7cd053f0f903259da36e9d109039579372255956

diff --git a/games-emulation/sdlmame/sdlmame-0.173.ebuild b/games-emulation/sdlmame/sdlmame-0.173.ebuild
new file mode 100644
index 0000000..adc1cb7
--- /dev/null
+++ b/games-emulation/sdlmame/sdlmame-0.173.ebuild
@@ -0,0 +1,232 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-any-r1 toolchain-funcs qmake-utils games
+
+MY_PV="${PV/.}"
+
+DESCRIPTION="Multiple Arcade Machine Emulator + Multi Emulator Super System (MESS)"
+HOMEPAGE="http://mamedev.org/"
+SRC_URI="https://github.com/mamedev/mame/releases/download/mame${MY_PV}/mame${MY_PV}s.zip -> mame-${PV}.zip"
+
+LICENSE="GPL-2+ BSD-2 MIT CC0-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="alsa +arcade debug +mess opengl openmp tools"
+REQUIRED_USE="|| ( arcade mess )"
+
+# MESS (games-emulation/sdlmess) has been merged into MAME upstream since mame-0.162 (see below)
+#  MAME/MESS build combined (default)	+arcade +mess	(mame)
+#  MAME build only			+arcade -mess	(mamearcade)
+#  MESS build only			-arcade +mess	(mess)
+# games-emulation/sdlmametools is dropped and enabled instead by the 'tools' useflag
+RDEPEND="!games-emulation/sdlmametools
+	!games-emulation/sdlmess
+	dev-db/sqlite:3
+	dev-libs/expat
+	media-libs/fontconfig
+	media-libs/flac
+	media-libs/libsdl2[joystick,opengl?,sound,video]
+	media-libs/portaudio
+	media-libs/sdl2-ttf
+	sys-libs/zlib
+	virtual/jpeg:0
+	virtual/opengl
+	alsa? ( media-libs/alsa-lib
+		media-libs/portmidi )
+	debug? ( dev-qt/qtcore:5
+		dev-qt/qtgui:5
+		dev-qt/qtwidgets:5 )
+	x11-libs/libX11
+	x11-libs/libXinerama
+	${PYTHON_DEPS}"
+DEPEND="${RDEPEND}
+	${PYTHON_DEPS}
+	app-arch/unzip
+	virtual/pkgconfig
+	x11-proto/xineramaproto"
+
+S=${WORKDIR}
+
+# Function to disable a makefile option
+disable_feature() {
+	sed -i -e "/$1.*=/s:^:# :" makefile || die
+}
+
+# Function to enable a makefile option
+enable_feature() {
+	sed -i -e "/^#.*$1.*=/s:^#::"  makefile || die
+}
+
+pkg_setup() {
+	games_pkg_setup
+	python-any-r1_pkg_setup
+}
+
+src_unpack() {
+	default
+	unpack ./mame.zip
+	rm -f mame.zip || die
+}
+
+src_prepare() {
+	# Disable using bundled libraries
+	enable_feature USE_SYSTEM_LIB_EXPAT
+	enable_feature USE_SYSTEM_LIB_FLAC
+	enable_feature USE_SYSTEM_LIB_JPEG
+# Use bundled lua for now to ensure correct compilation (ref. b.g.o #407091)
+#	enable_feature USE_SYSTEM_LIB_LUA
+	enable_feature USE_SYSTEM_LIB_PORTAUDIO
+	enable_feature USE_SYSTEM_LIB_SQLITE3
+	enable_feature USE_SYSTEM_LIB_ZLIB
+
+	# Disable warnings being treated as errors and enable verbose build output
+	enable_feature NOWERROR
+	enable_feature VERBOSE
+
+	use amd64 && enable_feature PTR64
+	use debug && enable_feature DEBUG
+	use tools && enable_feature TOOLS
+	disable_feature NO_X11 # bgfx needs X
+	use openmp && enable_feature OPENMP
+
+	if use alsa ; then
+		enable_feature USE_SYSTEM_LIB_PORTMIDI
+	else
+		enable_feature NO_USE_MIDI
+	fi
+
+	sed -i \
+		-e 's/-Os//' \
+		-e '/^\(CC\|CXX\|AR\) /s/=/?=/' \
+		3rdparty/genie/build/gmake.linux/genie.make || die
+}
+
+src_compile() {
+	local targetargs
+	local qtdebug=$(usex debug 1 0)
+
+	use arcade && ! use mess && targetargs="SUBTARGET=arcade"
+	! use arcade && use mess && targetargs="SUBTARGET=mess"
+
+	function my_emake() {
+		# Workaround conflicting $ARCH variable used by both Gentoo's
+		# portage and by Mame's build scripts
+		PYTHON_EXECUTABLE=${PYTHON} \
+		OVERRIDE_CC=$(tc-getCC) \
+		OVERRIDE_CXX=$(tc-getCXX) \
+		OVERRIDE_LD=$(tc-getCXX) \
+		QT_HOME="$(qt5_get_libdir)/qt5" \
+		ARCH= \
+			emake "$@" \
+				AR=$(tc-getAR)
+	}
+	my_emake -j1 generate
+
+	my_emake ${targetargs} \
+		SDL_INI_PATH="\$\$\$\$HOME/.sdlmame;${GAMES_SYSCONFDIR}/${PN}" \
+		USE_QTDEBUG=${qtdebug}
+
+	if use tools ; then
+		my_emake -j1 TARGET=ldplayer USE_QTDEBUG=${qtdebug}
+	fi
+}
+
+src_install() {
+	local MAMEBIN
+	local suffix="$(use amd64 && echo 64)$(use debug && echo d)"
+	local f
+
+	function mess_install() {
+		dosym ${MAMEBIN} "${GAMES_BINDIR}"/mess${suffix}
+		dosym ${MAMEBIN} "${GAMES_BINDIR}"/sdlmess
+		newman docs/man/mess.6 sdlmess.6
+		doman docs/man/mess.6
+	}
+	if use arcade ; then
+		if use mess ; then
+			MAMEBIN="mame${suffix}"
+			mess_install
+		else
+			MAMEBIN="mamearcade${suffix}"
+		fi
+		doman docs/man/mame.6
+		newman docs/man/mame.6 ${PN}.6
+	elif use mess ; then
+		MAMEBIN="mess${suffix}"
+		mess_install
+	fi
+	dogamesbin ${MAMEBIN}
+	dosym ${MAMEBIN} "${GAMES_BINDIR}/${PN}"
+
+	insinto "${GAMES_DATADIR}/${PN}"
+	doins -r keymaps $(use mess && echo hash)
+
+	# Create default mame.ini and inject Gentoo settings into it
+	#  Note that '~' does not work and '$HOME' must be used
+	./${MAMEBIN} -noreadconfig -showconfig > "${T}/mame.ini" || die
+	# -- Paths --
+	for f in {rom,hash,sample,art,font,crosshair} ; do
+		sed -i \
+			-e "s:\(${f}path\)[ \t]*\(.*\):\1 \t\t\$HOME/.${PN}/\2;${GAMES_DATADIR}/${PN}/\2:" \
+			"${T}/mame.ini" || die
+	done
+	for f in {ctrlr,cheat} ; do
+		sed -i \
+			-e "s:\(${f}path\)[ \t]*\(.*\):\1 \t\t\$HOME/.${PN}/\2;${GAMES_SYSCONFDIR}/${PN}/\2;${GAMES_DATADIR}/${PN}/\2:" \
+			"${T}/mame.ini" || die
+	done
+	# -- Directories
+	for f in {cfg,nvram,memcard,input,state,snapshot,diff,comment} ; do
+		sed -i \
+			-e "s:\(${f}_directory\)[ \t]*\(.*\):\1 \t\t\$HOME/.${PN}/\2:" \
+			"${T}/mame.ini" || die
+	done
+	# -- Keymaps --
+	sed -i \
+		-e "s:\(keymap_file\)[ \t]*\(.*\):\1 \t\t\$HOME/.${PN}/\2:" \
+		"${T}/mame.ini" || die
+	for f in keymaps/km*.map ; do
+		sed -i \
+			-e "/^keymap_file/a \#keymap_file \t\t${GAMES_DATADIR}/${PN}/keymaps/${f##*/}" \
+			"${T}/mame.ini" || die
+	done
+	insinto "${GAMES_SYSCONFDIR}/${PN}"
+	doins "${T}/mame.ini"
+
+	insinto "${GAMES_SYSCONFDIR}/${PN}"
+	doins "${FILESDIR}/vector.ini"
+
+	dodoc docs/{config,mame,newvideo}.txt
+	keepdir \
+		"${GAMES_DATADIR}/${PN}"/{ctrlr,cheat,roms,samples,artwork,crosshair} \
+		"${GAMES_SYSCONFDIR}/${PN}"/{ctrlr,cheat}
+
+	if use tools ; then
+		for f in castool chdman floptool imgtool jedutil ldresample ldverify romcmp testkeys ; do
+			newgamesbin ${f} ${PN}-${f}
+			newman docs/man/${f}.1 ${PN}-${f}.1
+		done
+		newgamesbin ldplayer${suffix} ${PN}-ldplayer
+		newman docs/man/ldplayer.1 ${PN}-ldplayer.1
+	fi
+
+	prepgamesdirs
+}
+
+pkg_postinst() {
+	games_pkg_postinst
+
+	elog "It is strongly recommended to change either the system-wide"
+	elog "  ${GAMES_SYSCONFDIR}/${PN}/mame.ini or use a per-user setup at ~/.${PN}/mame.ini"
+	elog
+	if use opengl ; then
+		elog "You built ${PN} with opengl support and should set"
+		elog "\"video\" to \"opengl\" in mame.ini to take advantage of that"
+		elog
+		elog "For more info see http://wiki.mamedev.org"
+	fi
+}


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-emulation/sdlmame/
@ 2016-05-10  0:28 Michael Sterrett
  0 siblings, 0 replies; 12+ messages in thread
From: Michael Sterrett @ 2016-05-10  0:28 UTC (permalink / raw
  To: gentoo-commits

commit:     eaeae75f6df51349d861b63bd91f73b2502e54fc
Author:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
AuthorDate: Tue May 10 00:28:13 2016 +0000
Commit:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
CommitDate: Tue May 10 00:28:36 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eaeae75f

games-emulation/sdlmame: testkeys was removed (bug #582578)

Package-Manager: portage-2.2.26

 games-emulation/sdlmame/sdlmame-0.173.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/games-emulation/sdlmame/sdlmame-0.173.ebuild b/games-emulation/sdlmame/sdlmame-0.173.ebuild
index 7fa0a7c..e5d5a0e 100644
--- a/games-emulation/sdlmame/sdlmame-0.173.ebuild
+++ b/games-emulation/sdlmame/sdlmame-0.173.ebuild
@@ -207,7 +207,7 @@ src_install() {
 		"${GAMES_SYSCONFDIR}/${PN}"/{ctrlr,cheat}
 
 	if use tools ; then
-		for f in castool chdman floptool imgtool jedutil ldresample ldverify romcmp testkeys ; do
+		for f in castool chdman floptool imgtool jedutil ldresample ldverify romcmp ; do
 			newgamesbin ${f} ${PN}-${f}
 			newman docs/man/${f}.1 ${PN}-${f}.1
 		done


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-emulation/sdlmame/
@ 2016-05-15  4:27 Michael Sterrett
  0 siblings, 0 replies; 12+ messages in thread
From: Michael Sterrett @ 2016-05-15  4:27 UTC (permalink / raw
  To: gentoo-commits

commit:     93efc502fb1a3f0db53a9464135bde247225f48d
Author:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
AuthorDate: Sun May 15 04:26:13 2016 +0000
Commit:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
CommitDate: Sun May 15 04:26:49 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93efc502

games-emulation/sdlmame: improve makefile munging (bug #583044)

Package-Manager: portage-2.2.28

 games-emulation/sdlmame/sdlmame-0.173.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/games-emulation/sdlmame/sdlmame-0.173.ebuild b/games-emulation/sdlmame/sdlmame-0.173.ebuild
index edac5fe..0c3368e 100644
--- a/games-emulation/sdlmame/sdlmame-0.173.ebuild
+++ b/games-emulation/sdlmame/sdlmame-0.173.ebuild
@@ -53,12 +53,12 @@ S=${WORKDIR}
 
 # Function to disable a makefile option
 disable_feature() {
-	sed -i -e "/$1.*=/s:^:# :" makefile || die
+	sed -i -e "/^[ 	]*$1.*=/s:^:# :" makefile || die
 }
 
 # Function to enable a makefile option
 enable_feature() {
-	sed -i -e "/^#.*$1.*=/s:^#::"  makefile || die
+	sed -i -e "/^#.*$1.*=/s:^#[ 	]*::"  makefile || die
 }
 
 pkg_setup() {


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-emulation/sdlmame/
@ 2018-04-03 19:42 Jeroen Roovers
  0 siblings, 0 replies; 12+ messages in thread
From: Jeroen Roovers @ 2018-04-03 19:42 UTC (permalink / raw
  To: gentoo-commits

commit:     4965b375bbb118296cb1f8d563f4c450d5425c99
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Tue Apr  3 19:42:17 2018 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Tue Apr  3 19:42:30 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4965b375

games-emulation/sdlmame: Fix two typos.

Package-Manager: Portage-2.3.28, Repoman-2.3.9

 games-emulation/sdlmame/metadata.xml | 24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

diff --git a/games-emulation/sdlmame/metadata.xml b/games-emulation/sdlmame/metadata.xml
index 86abf7105c0..d94f41033e1 100644
--- a/games-emulation/sdlmame/metadata.xml
+++ b/games-emulation/sdlmame/metadata.xml
@@ -6,18 +6,22 @@
     <name>Gentoo Games Project</name>
   </maintainer>
   <longdescription>
-SDLMAME is a port of the popular MAME[tm]. There are a few principles that guide it's development:
+SDLMAME is a port of the popular MAME[tm].
 
-1) run on Linux/Unix, Mac OS X, and other SDL supported operating systems with as few changes as
-possible to the base Win32 code. This means we can track changes faster than larger more conventional
-ports such as MacMAME, and we also maintain what I call "Firefox compatibilty" where learning a major
-app only needs to be done once per application, and it then applies across many operating systems. If
-you can use the command-line Win32 MAME, you already know how to use SDLMAME on any platform you may
-encounter it on.
+There are a few principles that guide its development:
 
-2) MAME developers are important. By keeping quickly up to date, we make it easy for people on
-non-Windows platforms to make and submit changes to the core MAME code, and we offer native
-implementations of MAME's multi-window GUI debugger on both Linux/Unix and Mac OS X.
+1) run on Linux/Unix, Mac OS X, and other SDL supported operating systems with
+as few changes as possible to the base Win32 code. This means we can track
+changes faster than larger more conventional ports such as MacMAME, and we also
+maintain what I call "Firefox compatibility" where learning a major app only
+needs to be done once per application, and it then applies across many
+operating systems. If you can use the command-line Win32 MAME, you already know
+how to use SDLMAME on any platform you may encounter it on.
+
+2) MAME developers are important. By keeping quickly up to date, we make it
+easy for people on non-Windows platforms to make and submit changes to the core
+MAME code, and we offer native implementations of MAME's multi-window GUI
+debugger on both Linux/Unix and Mac OS X.
   </longdescription>
   <use>
     <flag name="arcade">Enable the Multiple Arcade Machine Emulator for arcade games support</flag>


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-04-03 19:42 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-26 18:45 [gentoo-commits] repo/gentoo:master commit in: games-emulation/sdlmame/ Michael Sterrett
  -- strict thread matches above, loose matches on Subject: below --
2018-04-03 19:42 Jeroen Roovers
2016-05-15  4:27 Michael Sterrett
2016-05-10  0:28 Michael Sterrett
2016-05-03  6:10 Michael Sterrett
2016-02-14 10:11 Agostino Sarubbo
2016-01-15  9:03 Agostino Sarubbo
2016-01-09  7:05 Michael Sterrett
2015-12-12  2:46 Michael Sterrett
2015-11-30 19:27 Michael Sterrett
2015-11-25 20:15 Michael Sterrett
2015-11-20  6:36 Michael Sterrett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox