summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2010-10-20 08:10:33 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2010-10-20 08:10:33 +0000
commitd68ab892ddc330813cd8b83dce0b997e8ad4fcf8 (patch)
tree9d8dc7a68c5324cc379faa3a6a99021e17b89802 /games-emulation/sdlmame
parentdigest fix (diff)
downloadhistorical-d68ab892ddc330813cd8b83dce0b997e8ad4fcf8.tar.gz
historical-d68ab892ddc330813cd8b83dce0b997e8ad4fcf8.tar.bz2
historical-d68ab892ddc330813cd8b83dce0b997e8ad4fcf8.zip
version bump
Package-Manager: portage-2.1.8.3/cvs/Linux i686
Diffstat (limited to 'games-emulation/sdlmame')
-rw-r--r--games-emulation/sdlmame/ChangeLog8
-rw-r--r--games-emulation/sdlmame/Manifest4
-rw-r--r--games-emulation/sdlmame/sdlmame-0.139_p4.ebuild152
3 files changed, 162 insertions, 2 deletions
diff --git a/games-emulation/sdlmame/ChangeLog b/games-emulation/sdlmame/ChangeLog
index 71a02c256eab..1b8917eda2c3 100644
--- a/games-emulation/sdlmame/ChangeLog
+++ b/games-emulation/sdlmame/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-emulation/sdlmame
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-emulation/sdlmame/ChangeLog,v 1.36 2010/10/13 15:06:31 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/sdlmame/ChangeLog,v 1.37 2010/10/20 08:10:33 mr_bones_ Exp $
+
+*sdlmame-0.139_p4 (20 Oct 2010)
+
+ 20 Oct 2010; Michael Sterrett <mr_bones_@gentoo.org>
+ +sdlmame-0.139_p4.ebuild:
+ version bump
13 Oct 2010; Michael Sterrett <mr_bones_@gentoo.org>
sdlmame-0.139_p3.ebuild:
diff --git a/games-emulation/sdlmame/Manifest b/games-emulation/sdlmame/Manifest
index 7b4929b6f831..e30eb8de2569 100644
--- a/games-emulation/sdlmame/Manifest
+++ b/games-emulation/sdlmame/Manifest
@@ -10,7 +10,9 @@ DIST sdlmame0136.zip 18936113 RMD160 1cb9b24ae6f97c0f223f13ed97a074de14e2892e SH
DIST sdlmame0139u1_diff.zip 651444 RMD160 515716ff6bcca8bf6a0386cc3fa03f18987689f9 SHA1 65d31d7ac33261b80dce87f7868f7f0829ff03a6 SHA256 0c05912c3f16fc4d79024c6e702f9b03dcb7a91fd8be98910856d3bcb65788b5
DIST sdlmame0139u2_diff.zip 679257 RMD160 0e3bce1cfc0001ca49505845507e374548eb9294 SHA1 e4469d6e416d39f221b595b9a7c9c9f3a23f00ab SHA256 b7619ae96847aef45653e81a4b63c15af7e7e5bcc574fa1ee89dc80c413dd873
DIST sdlmame0139u3_diff.zip 761786 RMD160 8ea3d96586374e5ff8ac2ce728d0dafd53296b62 SHA1 5760330640172bfbcc245e8371ca45b5ed1b4202 SHA256 68b7b9e3f589f09b7676ee812e4490137677fcc37e88c2dc96fa54ef874ee414
+DIST sdlmame0139u4_diff.zip 465332 RMD160 9819f10d082eda7b79d637e651e615f184e53d0e SHA1 7edf060184b9e3f6ef36e307198510f43d632630 SHA256 489d45fb4b1101f67afa83a424a25de8b904416dd23d8b004931fa289a9fdff2
EBUILD sdlmame-0.136.ebuild 3384 RMD160 1d79b94c2af8e8a4dbbf76bb3ad80b796828f85c SHA1 c32128b66147ee8c6cfe01f28f49989711b6a6e9 SHA256 31c6ce4b49f273a2c6fb3d85f8efe1ac91a9bbd85868aa877ff56b16bff54506
EBUILD sdlmame-0.139_p3.ebuild 3864 RMD160 4244f9cc9085d9c8b15cdd52ecde9dda69b38714 SHA1 10e905de3bce3dc766201e4e45488251f712e97d SHA256 59e857bb72c6ccada8ef9ba8840844f3d26bf9fdb22b0ff727cd45ee5a6c94d7
-MISC ChangeLog 4606 RMD160 8a7793a64239ed61785ca6116300b9aa186db780 SHA1 d15eb14fcefe3ce497d9f47aa16afffe2ca92e5b SHA256 a5d806bf27877f9345f456ccd8054d4bf9fc113a5791e65b681c9c367cf295c6
+EBUILD sdlmame-0.139_p4.ebuild 3864 RMD160 f956ae527c32197c3c5549b0ec99ec196086276c SHA1 069e3adff5a2b716487dbc893550de01db8be1bb SHA256 9bed0b55863cf4a5e53ea14c95cfeecaac78471f474ed7147838c2d57074084b
+MISC ChangeLog 4738 RMD160 eba0e3a513dd124180198464086c75432ee81b92 SHA1 f41cbd9d52fee62f933131c8cbc8a7c9fbc5ae9f SHA256 a2b95443c26e287fb24000d790d942e4eec7be1f2b5d42f7af3512c31affd3a8
MISC metadata.xml 1089 RMD160 9c8a425da7e10ddc2cdf1bfbbf60b23257eca1e7 SHA1 9ba3821b6dc312016d9cecc295555411e8bc044c SHA256 67982ede09eba43a5e84327f2f529031242424222e0d5170f31c8f2e647e937f
diff --git a/games-emulation/sdlmame/sdlmame-0.139_p4.ebuild b/games-emulation/sdlmame/sdlmame-0.139_p4.ebuild
new file mode 100644
index 000000000000..d0953651f69e
--- /dev/null
+++ b/games-emulation/sdlmame/sdlmame-0.139_p4.ebuild
@@ -0,0 +1,152 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/sdlmame/sdlmame-0.139_p4.ebuild,v 1.1 2010/10/20 08:10:33 mr_bones_ Exp $
+
+EAPI=2
+inherit eutils flag-o-matic games
+
+MY_PV=${PV/.}
+MY_CONF_PN=${PN/sdl}
+MY_P=${PN}${MY_PV}
+MY_P=${MY_P%%_p*}
+MY_CONF_VER="0.139"
+DESCRIPTION="Multiple Arcade Machine Emulator (SDL)"
+HOMEPAGE="http://mamedev.org/"
+UPDATES="$(for PATCH_VER in $(seq 1 ${PV##*_p}) ; do echo "mirror://gentoo/${MY_P}u${PATCH_VER}_diff.zip"; done)"
+# Upstream doesn't allow fetching with unknown User-Agent such as wget
+SRC_URI="mirror://gentoo/${MY_P/sdl}s.zip $UPDATES
+ http://www.netswarm.net/misc/sdlmame-ui.bdf.gz"
+
+LICENSE="XMAME"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug opengl"
+
+RDEPEND=">=media-libs/libsdl-1.2.10[audio,joystick,opengl?,video]
+ dev-libs/expat
+ x11-libs/libXinerama
+ debug? (
+ x11-libs/gtk+:2
+ gnome-base/gconf
+ )"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ x11-proto/xineramaproto"
+
+S=${WORKDIR}
+
+# Function to disable a makefile option
+disable_feature() {
+ sed -i \
+ -e "/$1.*=/s:^:# :" \
+ "${S}"/makefile \
+ || die "sed failed"
+}
+
+# Function to enable a makefile option
+enable_feature() {
+ sed -i \
+ -e "/^#.*$1.*=/s:^# ::" \
+ "${S}"/makefile \
+ || die "sed failed"
+}
+
+src_unpack() {
+ base_src_unpack
+ unpack ./mame.zip
+ rm -f mame.zip
+}
+
+src_prepare() {
+ if [[ $PV == *_p* ]] ; then
+ edos2unix $(grep +++ *diff | awk '{ print $2 }' | sort -u) *diff 2> /dev/null
+ einfo "Patching release with source updates"
+ epatch ${MY_PV%%_p*}*.diff
+ fi
+ sed -i \
+ -e '/CFLAGS += -O$(OPTIMIZE)/s:^:# :' \
+ -e '/CFLAGS += -pipe/s:^:# :' \
+ -e '/LDFLAGS += -s/s:^:# :' \
+ -e '/LDFLAGS =/d' \
+ -e 's:-Werror::' \
+ makefile \
+ || die "sed failed"
+ # Don't compile zlib and expat
+ einfo "Disabling embedded libraries: zlib and expat"
+ disable_feature BUILD_ZLIB
+ disable_feature BUILD_EXPAT
+
+ if use amd64; then
+ einfo "Enabling 64-bit support"
+ enable_feature PTR64
+ fi
+
+ if use ppc; then
+ einfo "Enabling PPC support"
+ enable_feature BIGENDIAN
+ fi
+
+ if use debug; then
+ einfo "Enabling DEBUG support"
+ enable_feature DEBUG
+ fi
+}
+
+src_compile() {
+ local make_opts
+
+ use opengl || make_opts="${make_opts} NO_OPENGL=1"
+
+ emake \
+ NAME="${PN}" \
+ OPT_FLAGS='-DINI_PATH=\"\$$HOME/.'${PN}'\;'"${GAMES_SYSCONFDIR}/${PN}"'\"'" ${CXXFLAGS}" \
+ CC="${CXX}" \
+ SUFFIX="" \
+ ${make_opts} \
+ all \
+ || die "emake failed"
+}
+
+src_install() {
+ dogamesbin ${PN}$(use amd64 && echo 64) || die
+
+ # Avoid collision on /usr/games/bin/jedutil
+ exeinto "$(games_get_libdir)/${PN}"
+ doexe chdman jedutil ldverify romcmp testkeys || die
+ doman src/osd/sdl/man/{chdman,jedutil,ldverify,romcmp,testkeys}.1
+ newman src/osd/sdl/man/mame.1 ${PN}.1
+
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r src/osd/sdl/keymaps || die "doins -r keymaps failed"
+ newins sdlmame-ui.bdf ui.bdf || die "newins ui.bdf failed"
+
+ insinto "${GAMES_SYSCONFDIR}/${PN}"
+ doins "${FILESDIR}"/vector.ini || die "doins vector.ini failed"
+
+ sed \
+ -e "s:@GAMES_SYSCONFDIR@:${GAMES_SYSCONFDIR}:" \
+ -e "s:@GAMES_DATADIR@:${GAMES_DATADIR}:" \
+ "${FILESDIR}/${MY_CONF_PN}-${MY_CONF_VER}".ini.in > "${D}/${GAMES_SYSCONFDIR}/${PN}/${MY_CONF_PN}".ini \
+ || die "sed failed"
+
+ dodoc docs/{config,mame,newvideo}.txt whatsnew*.txt
+
+ keepdir \
+ "${GAMES_DATADIR}/${PN}"/{ctrlr,cheats,roms,samples,artwork,crosshair} \
+ "${GAMES_SYSCONFDIR}/${PN}"/{ctrlr,cheats}
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "It's strongly recommended that you change either the system-wide"
+ elog "${MY_CONF_PN}.ini at \"${GAMES_SYSCONFDIR}/${PN}\" or use a per-user setup at \$HOME/.${PN}"
+
+ if use opengl; then
+ echo
+ elog "You built ${PN} with opengl support and should set"
+ elog "\"video\" to \"opengl\" in ${MY_CONF_PN}.ini to take advantage of that"
+ fi
+}