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