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