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