diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2010-12-16 08:06:13 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2010-12-16 08:06:13 +0000 |
commit | 95cbf91e0002e9fc05a0afab173d737832ae63e0 (patch) | |
tree | 178bcc56cec10cbb716cba91431e02bef40f63bc /games-emulation/sdlmame | |
parent | x86 stable wrt bug #281409 (diff) | |
download | historical-95cbf91e0002e9fc05a0afab173d737832ae63e0.tar.gz historical-95cbf91e0002e9fc05a0afab173d737832ae63e0.tar.bz2 historical-95cbf91e0002e9fc05a0afab173d737832ae63e0.zip |
version bump
Package-Manager: portage-2.1.9.24/cvs/Linux i686
Diffstat (limited to 'games-emulation/sdlmame')
-rw-r--r-- | games-emulation/sdlmame/ChangeLog | 8 | ||||
-rw-r--r-- | games-emulation/sdlmame/Manifest | 4 | ||||
-rw-r--r-- | games-emulation/sdlmame/sdlmame-0.140_p2.ebuild | 154 |
3 files changed, 164 insertions, 2 deletions
diff --git a/games-emulation/sdlmame/ChangeLog b/games-emulation/sdlmame/ChangeLog index f77a53ee4fa3..386d03594ee3 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.39 2010/11/11 06:37:53 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-emulation/sdlmame/ChangeLog,v 1.40 2010/12/16 08:06:13 mr_bones_ Exp $ + +*sdlmame-0.140_p2 (16 Dec 2010) + + 16 Dec 2010; Michael Sterrett <mr_bones_@gentoo.org> + +sdlmame-0.140_p2.ebuild: + version bump *sdlmame-0.140_p1 (11 Nov 2010) diff --git a/games-emulation/sdlmame/Manifest b/games-emulation/sdlmame/Manifest index d4d2c9b7f2a6..6b35e64a98c9 100644 --- a/games-emulation/sdlmame/Manifest +++ b/games-emulation/sdlmame/Manifest @@ -13,8 +13,10 @@ DIST sdlmame0139u2_diff.zip 679257 RMD160 0e3bce1cfc0001ca49505845507e374548eb92 DIST sdlmame0139u3_diff.zip 761786 RMD160 8ea3d96586374e5ff8ac2ce728d0dafd53296b62 SHA1 5760330640172bfbcc245e8371ca45b5ed1b4202 SHA256 68b7b9e3f589f09b7676ee812e4490137677fcc37e88c2dc96fa54ef874ee414 DIST sdlmame0139u4_diff.zip 465332 RMD160 9819f10d082eda7b79d637e651e615f184e53d0e SHA1 7edf060184b9e3f6ef36e307198510f43d632630 SHA256 489d45fb4b1101f67afa83a424a25de8b904416dd23d8b004931fa289a9fdff2 DIST sdlmame0140u1_diff.zip 200321 RMD160 c628c4a077114cc3ba86f113b4cdc7cc380d3308 SHA1 cbc457249cb157f70c14242bc49ab0aa52f9b853 SHA256 f0a6515b0b7213ff99fdf3af40a02cf810c0bc2e88f24254f7ddb9afa517960d +DIST sdlmame0140u2_diff.zip 229246 RMD160 3c39a7305bc543bdfed2e4fcd4c2f7fd1e728dd5 SHA1 329c02c89639b4f28f685d729114731b8a09715c SHA256 11ed7525b00e08a41482f8e994ff7a450ad4e00c9d4c5a43e58e2a830458cf22 EBUILD sdlmame-0.136.ebuild 3384 RMD160 1d79b94c2af8e8a4dbbf76bb3ad80b796828f85c SHA1 c32128b66147ee8c6cfe01f28f49989711b6a6e9 SHA256 31c6ce4b49f273a2c6fb3d85f8efe1ac91a9bbd85868aa877ff56b16bff54506 EBUILD sdlmame-0.139_p4.ebuild 3985 RMD160 145b06a7594da91210e2d5b7896d44973bb44b91 SHA1 32365c2f2eaca39b382bab937e38c2bbb16a1af9 SHA256 8c28b2795100623014f32de217eb91735da4f4642713109713416a887fb318f1 EBUILD sdlmame-0.140_p1.ebuild 3985 RMD160 1aaa890146e3c05c17e27152799994265b71a882 SHA1 9ff8383cc24ac35f5e7fcecd6596aca7fb506dd1 SHA256 63aa57543212af1e6d0db69395a161207105c7b4d5d1123b81e3698d693c2824 -MISC ChangeLog 5060 RMD160 d2bef3c133fe8986b6ebe78bf638cb29a7c92cc7 SHA1 769a4d986e403a70d81829dee9acc456a03c3b6a SHA256 6a17d0db26df19c05f8a862288eef67715fb0020df15eee1671fc6319b903147 +EBUILD sdlmame-0.140_p2.ebuild 4005 RMD160 5eca8f6c3ef39fdee92bbb06300291f5e79a31c4 SHA1 5091d98a37df6f3f10fbafd7090e1ca0329dac02 SHA256 18d3a8b77fc30c180801ec66ae85163d058ee1f6685a766426f0ae74bf4fa5d2 +MISC ChangeLog 5192 RMD160 125dfebac2cd57e4e4b278c2460cf1c3139c789d SHA1 ed8657c5cbf7f8be3a335d545db17ae7dd92e699 SHA256 dfe985824efe303d97d8b33a36f2c1b2fb24c58a97a26364a1c1b9a8713ea475 MISC metadata.xml 1089 RMD160 9c8a425da7e10ddc2cdf1bfbbf60b23257eca1e7 SHA1 9ba3821b6dc312016d9cecc295555411e8bc044c SHA256 67982ede09eba43a5e84327f2f529031242424222e0d5170f31c8f2e647e937f diff --git a/games-emulation/sdlmame/sdlmame-0.140_p2.ebuild b/games-emulation/sdlmame/sdlmame-0.140_p2.ebuild new file mode 100644 index 000000000000..b2cdd4cc041d --- /dev/null +++ b/games-emulation/sdlmame/sdlmame-0.140_p2.ebuild @@ -0,0 +1,154 @@ +# 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.140_p2.ebuild,v 1.1 2010/12/16 08:06:13 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] + media-libs/sdl-ttf + dev-libs/expat + debug? ( + x11-libs/gtk+:2 + gnome-base/gconf + x11-libs/libXinerama + )" +DEPEND="${RDEPEND} + app-arch/unzip + debug? ( 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}"/${2:-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 + else + einfo "Disabling debug support" + enable_feature NO_X11 src/osd/sdl/sdl.mak + fi + + if ! use opengl ; then + einfo "Disabling opengl support" + enable_feature NO_OPENGL src/osd/sdl/sdl.mak + fi +} + +src_compile() { + emake \ + NAME="${PN}" \ + OPT_FLAGS='-DINI_PATH=\"\$$HOME/.'${PN}'\;'"${GAMES_SYSCONFDIR}/${PN}"'\"'" ${CXXFLAGS}" \ + CC="${CXX}" \ + all || die +} + +src_install() { + newgamesbin ${PN}$(use amd64 && echo 64)$(use debug && echo d) ${PN} || 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 +} |