Gentoo Archives: gentoo-commits

From: "Michael Sterrett (mr_bones_)" <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-emulation/sdlmame: ChangeLog sdlmame-0.144.ebuild sdlmame-0.141_p3.ebuild sdlmame-0.142.ebuild sdlmame-0.143_p5.ebuild sdlmame-0.136.ebuild sdlmame-0.143_p4.ebuild
Date: Thu, 17 Nov 2011 06:48:00
Message-Id: 20111117064750.768F62004C@flycatcher.gentoo.org
1 mr_bones_ 11/11/17 06:47:50
2
3 Modified: ChangeLog
4 Added: sdlmame-0.144.ebuild
5 Removed: sdlmame-0.141_p3.ebuild sdlmame-0.142.ebuild
6 sdlmame-0.143_p5.ebuild sdlmame-0.136.ebuild
7 sdlmame-0.143_p4.ebuild
8 Log:
9 version bump; drop ppc to ~
10
11 (Portage version: 2.1.10.11/cvs/Linux i686)
12
13 Revision Changes Path
14 1.55 games-emulation/sdlmame/ChangeLog
15
16 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/sdlmame/ChangeLog?rev=1.55&view=markup
17 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/sdlmame/ChangeLog?rev=1.55&content-type=text/plain
18 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/sdlmame/ChangeLog?r1=1.54&r2=1.55
19
20 Index: ChangeLog
21 ===================================================================
22 RCS file: /var/cvsroot/gentoo-x86/games-emulation/sdlmame/ChangeLog,v
23 retrieving revision 1.54
24 retrieving revision 1.55
25 diff -u -r1.54 -r1.55
26 --- ChangeLog 30 Sep 2011 16:50:10 -0000 1.54
27 +++ ChangeLog 17 Nov 2011 06:47:50 -0000 1.55
28 @@ -1,6 +1,20 @@
29 # ChangeLog for games-emulation/sdlmame
30 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
31 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/sdlmame/ChangeLog,v 1.54 2011/09/30 16:50:10 vapier Exp $
32 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/sdlmame/ChangeLog,v 1.55 2011/11/17 06:47:50 mr_bones_ Exp $
33 +
34 +*sdlmame-0.144 (17 Nov 2011)
35 +
36 + 17 Nov 2011; Michael Sterrett <mr_bones_@g.o> -sdlmame-0.136.ebuild,
37 + -files/sdlmame-0.136-nodebug.patch, -sdlmame-0.141_p3.ebuild,
38 + -sdlmame-0.142.ebuild, -files/sdlmame-0.142-makefile.patch,
39 + -sdlmame-0.143_p4.ebuild, -sdlmame-0.143_p5.ebuild,
40 + -files/sdlmame-0.143_p4-makefile.patch,
41 + -files/sdlmame-0.143_p4-no-opengl.patch,
42 + -files/sdlmame-0.143_p5-makefile.patch,
43 + -files/sdlmame-0.143_p5-no-opengl.patch, +sdlmame-0.144.ebuild,
44 + +files/sdlmame-0.144-makefile.patch, +files/sdlmame-0.144-no-opengl.patch,
45 + -files/joymap.dat, -files/mame.ini.in:
46 + version bump; drop ppc to ~
47
48 30 Sep 2011; Mike Frysinger <vapier@g.o> sdlmame-0.141_p3.ebuild,
49 sdlmame-0.142.ebuild, sdlmame-0.142_p5.ebuild, sdlmame-0.143_p4.ebuild,
50
51
52
53 1.1 games-emulation/sdlmame/sdlmame-0.144.ebuild
54
55 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/sdlmame/sdlmame-0.144.ebuild?rev=1.1&view=markup
56 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/sdlmame/sdlmame-0.144.ebuild?rev=1.1&content-type=text/plain
57
58 Index: sdlmame-0.144.ebuild
59 ===================================================================
60 # Copyright 1999-2011 Gentoo Foundation
61 # Distributed under the terms of the GNU General Public License v2
62 # $Header: /var/cvsroot/gentoo-x86/games-emulation/sdlmame/sdlmame-0.144.ebuild,v 1.1 2011/11/17 06:47:50 mr_bones_ Exp $
63
64 EAPI=2
65 inherit eutils flag-o-matic games
66
67 MY_PV=${PV/.}
68 MY_CONF_PN=${PN/sdl}
69 MY_P=${PN}${MY_PV}
70 MY_P=${MY_P%%_p*}
71 MY_CONF_VER="0.139"
72 DESCRIPTION="Multiple Arcade Machine Emulator (SDL)"
73 HOMEPAGE="http://mamedev.org/"
74 UPDATES="$(for PATCH_VER in $(seq 1 ${PV##*_p}) ; do echo "mirror://gentoo/${MY_P}u${PATCH_VER}_diff.zip"; done)"
75 # Upstream doesn't allow fetching with unknown User-Agent such as wget
76 SRC_URI="mirror://gentoo/${MY_P/sdl}s.zip $UPDATES
77 http://www.netswarm.net/misc/sdlmame-ui.bdf.gz"
78
79 LICENSE="XMAME"
80 SLOT="0"
81 KEYWORDS="~amd64 ~ppc ~x86"
82 IUSE="debug opengl"
83
84 RDEPEND=">=media-libs/libsdl-1.2.10[audio,joystick,opengl?,video]
85 media-libs/sdl-ttf
86 dev-libs/expat
87 debug? (
88 x11-libs/gtk+:2
89 gnome-base/gconf
90 x11-libs/libXinerama
91 )"
92 DEPEND="${RDEPEND}
93 app-arch/unzip
94 debug? ( x11-proto/xineramaproto )"
95
96 S=${WORKDIR}
97
98 # Function to disable a makefile option
99 disable_feature() {
100 sed -i \
101 -e "/$1.*=/s:^:# :" \
102 "${S}"/makefile \
103 || die "sed failed"
104 }
105
106 # Function to enable a makefile option
107 enable_feature() {
108 sed -i \
109 -e "/^#.*$1.*=/s:^# ::" \
110 "${S}"/${2:-makefile} \
111 || die "sed failed"
112 }
113
114 src_unpack() {
115 base_src_unpack
116 unpack ./mame.zip
117 rm -f mame.zip
118 }
119
120 src_prepare() {
121 if [[ $PV == *_p* ]] ; then
122 edos2unix $(find $(grep +++ *diff | awk '{ print $2 }' | sort -u) 2>/dev/null) *diff
123 einfo "Patching release with source updates"
124 epatch ${MY_PV%%_p*}*.diff
125 fi
126 edos2unix src/osd/sdl/osdsdl.h
127 epatch \
128 "${FILESDIR}"/${P}-makefile.patch \
129 "${FILESDIR}"/${P}-no-opengl.patch
130
131 # Don't compile zlib and expat
132 einfo "Disabling embedded libraries: zlib and expat"
133 disable_feature BUILD_ZLIB
134 disable_feature BUILD_EXPAT
135
136 if use amd64; then
137 einfo "Enabling 64-bit support"
138 enable_feature PTR64
139 fi
140
141 if use ppc; then
142 einfo "Enabling PPC support"
143 enable_feature BIGENDIAN
144 fi
145
146 if use debug; then
147 einfo "Enabling debug support"
148 enable_feature DEBUG
149 else
150 einfo "Disabling debug support"
151 enable_feature NO_X11 src/osd/sdl/sdl.mak
152 fi
153
154 if ! use opengl ; then
155 einfo "Disabling opengl support"
156 enable_feature NO_OPENGL src/osd/sdl/sdl.mak
157 fi
158 }
159
160 src_compile() {
161 emake \
162 NAME="${PN}" \
163 OPT_FLAGS='-DINI_PATH=\"\$$HOME/.'${PN}'\;'"${GAMES_SYSCONFDIR}/${PN}"'\"'" ${CXXFLAGS}" \
164 CC="${CXX}" \
165 all || die
166 }
167
168 src_install() {
169 newgamesbin ${PN}$(use amd64 && echo 64)$(use debug && echo d) ${PN} || die
170
171 # Avoid collision on /usr/games/bin/jedutil
172 exeinto "$(games_get_libdir)/${PN}"
173 doexe chdman jedutil ldverify romcmp testkeys || die
174 doman src/osd/sdl/man/{chdman,jedutil,ldverify,romcmp,testkeys}.1
175 newman src/osd/sdl/man/mame.1 ${PN}.1
176
177 insinto "${GAMES_DATADIR}/${PN}"
178 doins -r src/osd/sdl/keymaps || die "doins -r keymaps failed"
179 newins sdlmame-ui.bdf ui.bdf || die "newins ui.bdf failed"
180
181 insinto "${GAMES_SYSCONFDIR}/${PN}"
182 doins "${FILESDIR}"/vector.ini || die "doins vector.ini failed"
183
184 sed \
185 -e "s:@GAMES_SYSCONFDIR@:${GAMES_SYSCONFDIR}:" \
186 -e "s:@GAMES_DATADIR@:${GAMES_DATADIR}:" \
187 "${FILESDIR}/${MY_CONF_PN}-${MY_CONF_VER}".ini.in > "${D}/${GAMES_SYSCONFDIR}/${PN}/${MY_CONF_PN}".ini \
188 || die "sed failed"
189
190 dodoc docs/{config,mame,newvideo}.txt whatsnew*.txt
191
192 keepdir \
193 "${GAMES_DATADIR}/${PN}"/{ctrlr,cheats,roms,samples,artwork,crosshair} \
194 "${GAMES_SYSCONFDIR}/${PN}"/{ctrlr,cheats}
195
196 prepgamesdirs
197 }
198
199 pkg_postinst() {
200 games_pkg_postinst
201
202 elog "It's strongly recommended that you change either the system-wide"
203 elog "${MY_CONF_PN}.ini at \"${GAMES_SYSCONFDIR}/${PN}\" or use a per-user setup at \$HOME/.${PN}"
204
205 if use opengl; then
206 echo
207 elog "You built ${PN} with opengl support and should set"
208 elog "\"video\" to \"opengl\" in ${MY_CONF_PN}.ini to take advantage of that"
209 fi
210 }