summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2010-09-03 08:29:44 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2010-09-03 08:29:44 +0000
commitdf4d06948fac5bc29c2ac0f3a30208cdda26fd2f (patch)
tree543e00852e93a8b68658eedca1c545ee1e17ec49 /games-emulation/sdlmame
parentHonour Gentoo LDFLAGS. Closes bug #335692. (diff)
downloadhistorical-df4d06948fac5bc29c2ac0f3a30208cdda26fd2f.tar.gz
historical-df4d06948fac5bc29c2ac0f3a30208cdda26fd2f.tar.bz2
historical-df4d06948fac5bc29c2ac0f3a30208cdda26fd2f.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/Manifest6
-rw-r--r--games-emulation/sdlmame/sdlmame-0.139_p2.ebuild148
3 files changed, 160 insertions, 2 deletions
diff --git a/games-emulation/sdlmame/ChangeLog b/games-emulation/sdlmame/ChangeLog
index 89322fb1a4b9..629671e4577b 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.30 2010/08/17 19:58:21 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/sdlmame/ChangeLog,v 1.31 2010/09/03 08:29:44 mr_bones_ Exp $
+
+*sdlmame-0.139_p2 (03 Sep 2010)
+
+ 03 Sep 2010; Michael Sterrett <mr_bones_@gentoo.org>
+ +sdlmame-0.139_p2.ebuild:
+ version bump
17 Aug 2010; Michael Sterrett <mr_bones_@gentoo.org> sdlmame-0.136.ebuild,
+files/sdlmame-0.136-nodebug.patch:
diff --git a/games-emulation/sdlmame/Manifest b/games-emulation/sdlmame/Manifest
index 79f25118cd65..25bea5c3748e 100644
--- a/games-emulation/sdlmame/Manifest
+++ b/games-emulation/sdlmame/Manifest
@@ -2,8 +2,12 @@ AUX joymap.dat 223 RMD160 d86c536a5d33bec9ecd6efbee2f7389835495328 SHA1 011d631b
AUX mame.ini.in 5962 RMD160 6eb4c315b29d5e6da24a40ad94a646bb56b27998 SHA1 fadb0546bdac23e7162833fad60533c0a4fcf772 SHA256 6205c738b7e57ead9c05885bdaeb3ebfb143bec9dc1de7a97016b791bea532d8
AUX sdlmame-0.136-nodebug.patch 952 RMD160 4098730d8cdf205b8dfc4f4a4dbcccf36ddff787 SHA1 19365ec2431f808311e49732413b88844b1d0ccc SHA256 92486bf8ff6ba153ef4759205d1250c8294c1f7cd2187e194ab10d0cc7cada17
AUX vector.ini 116 RMD160 e63ed40b21a2426b28571d514933efab6ccce7e8 SHA1 c6615ce44d08b89a65435dfe7e0af9ac6d8459df SHA256 408aeaaffcb2ecccd20db457f22d2d5efa930c0f62a92987b0fbefaf6c038c23
+DIST mame0139s.zip 16706970 RMD160 f673a9ffe9dfe5b1527adde3f8a5981cbf75ba51 SHA1 76319aabf63df42852bbae3254cb90eacf544516 SHA256 e9dc268530b9a2b6fe17330af96dc5680dadba1b5e444bf7ef8fa1f15de7f3d6
DIST sdlmame-manpages.tar.gz 14400 RMD160 14660470488458a8897a8a924c12f7ab961d6729 SHA1 279fbf37668282c0e4e86d62a29f5ec53fa0ab1a SHA256 507240258dfb816fbfddc674c5995a126c7a975158c2aad1ada8cb064c5e3d08
DIST sdlmame0136.zip 18936113 RMD160 1cb9b24ae6f97c0f223f13ed97a074de14e2892e SHA1 19c11abc3b3ab2633df62f3867921b3541bb582e SHA256 863c34af4850b7687de358601e5b13fbb4ed1c121e11654179e87fb39e7ede2d
+DIST sdlmame0139u1_diff.zip 651444 RMD160 515716ff6bcca8bf6a0386cc3fa03f18987689f9 SHA1 65d31d7ac33261b80dce87f7868f7f0829ff03a6 SHA256 0c05912c3f16fc4d79024c6e702f9b03dcb7a91fd8be98910856d3bcb65788b5
+DIST sdlmame0139u2_diff.zip 679257 RMD160 0e3bce1cfc0001ca49505845507e374548eb9294 SHA1 e4469d6e416d39f221b595b9a7c9c9f3a23f00ab SHA256 b7619ae96847aef45653e81a4b63c15af7e7e5bcc574fa1ee89dc80c413dd873
EBUILD sdlmame-0.136.ebuild 3384 RMD160 1d79b94c2af8e8a4dbbf76bb3ad80b796828f85c SHA1 c32128b66147ee8c6cfe01f28f49989711b6a6e9 SHA256 31c6ce4b49f273a2c6fb3d85f8efe1ac91a9bbd85868aa877ff56b16bff54506
-MISC ChangeLog 3921 RMD160 bf63db308f366ff9d6fad7c8edecb6b972f88fff SHA1 57edf4fedc391f9f3b7227e118aa10ff674bcc8e SHA256 0dd84ce7e0ecfd2f477adcbfc61f80a45ee1f522ded4bb570779f53f16d5eddf
+EBUILD sdlmame-0.139_p2.ebuild 3615 RMD160 0cffd34e7622369079c5033d1c729aac41c288de SHA1 6e38a871573cc453f38b918c91a193beb8a04353 SHA256 294e4e44eefc25f379b9e1a71615324ebbc46feb9fe00725fac8911f335ae626
+MISC ChangeLog 4053 RMD160 4ed1820f845af683915ef8e8d860b7ba9ce16010 SHA1 2ad6799a99445582cfd27a8f4530b5ef72edebf0 SHA256 a59afb5ae1b91d830d9ac8cfe3f5c38ea89b365265a6c3d6e3e60bacbee8ca13
MISC metadata.xml 1089 RMD160 9c8a425da7e10ddc2cdf1bfbbf60b23257eca1e7 SHA1 9ba3821b6dc312016d9cecc295555411e8bc044c SHA256 67982ede09eba43a5e84327f2f529031242424222e0d5170f31c8f2e647e937f
diff --git a/games-emulation/sdlmame/sdlmame-0.139_p2.ebuild b/games-emulation/sdlmame/sdlmame-0.139_p2.ebuild
new file mode 100644
index 000000000000..a04cecef0967
--- /dev/null
+++ b/games-emulation/sdlmame/sdlmame-0.139_p2.ebuild
@@ -0,0 +1,148 @@
+# 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_p2.ebuild,v 1.1 2010/09/03 08:29:44 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*}
+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"
+
+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
+ 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"
+
+ insinto "${GAMES_SYSCONFDIR}/${PN}"
+ doins "${FILESDIR}"/{joymap.dat,vector.ini} || die "doins joymap.dat vector.ini failed"
+
+ sed \
+ -e "s:@GAMES_SYSCONFDIR@:${GAMES_SYSCONFDIR}:" \
+ -e "s:@GAMES_DATADIR@:${GAMES_DATADIR}:" \
+ "${FILESDIR}"/mame.ini.in > "${D}/${GAMES_SYSCONFDIR}/${PN}/"mame.ini \
+ || die "sed failed"
+
+ dodoc docs/{config,mame,newvideo}.txt whatsnew*.txt
+
+ keepdir \
+ "${GAMES_DATADIR}/${PN}"/{roms,samples,artwork} \
+ "${GAMES_SYSCONFDIR}/${PN}"/ctrlr
+
+ 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
+}