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-engines/scummvm: ChangeLog scummvm-0.12.0.ebuild
Date: Mon, 01 Sep 2008 07:05:47
Message-Id: E1Ka3Ts-00065q-NH@stork.gentoo.org
1 mr_bones_ 08/09/01 07:05:44
2
3 Modified: ChangeLog
4 Added: scummvm-0.12.0.ebuild
5 Log:
6 version bump
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.60 games-engines/scummvm/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-engines/scummvm/ChangeLog?rev=1.60&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-engines/scummvm/ChangeLog?rev=1.60&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-engines/scummvm/ChangeLog?r1=1.59&r2=1.60
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-engines/scummvm/ChangeLog,v
19 retrieving revision 1.59
20 retrieving revision 1.60
21 diff -u -r1.59 -r1.60
22 --- ChangeLog 22 Jun 2008 06:43:45 -0000 1.59
23 +++ ChangeLog 1 Sep 2008 07:05:44 -0000 1.60
24 @@ -1,6 +1,12 @@
25 # ChangeLog for games-engines/scummvm
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/games-engines/scummvm/ChangeLog,v 1.59 2008/06/22 06:43:45 corsair Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/games-engines/scummvm/ChangeLog,v 1.60 2008/09/01 07:05:44 mr_bones_ Exp $
29 +
30 +*scummvm-0.12.0 (01 Sep 2008)
31 +
32 + 01 Sep 2008; Michael Sterrett <mr_bones_@g.o>
33 + +scummvm-0.12.0.ebuild:
34 + version bump
35
36 22 Jun 2008; Markus Rothe <corsair@g.o> scummvm-0.11.1.ebuild:
37 Stable on ppc64; bug #225619
38
39
40
41 1.1 games-engines/scummvm/scummvm-0.12.0.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-engines/scummvm/scummvm-0.12.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-engines/scummvm/scummvm-0.12.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: scummvm-0.12.0.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/games-engines/scummvm/scummvm-0.12.0.ebuild,v 1.1 2008/09/01 07:05:44 mr_bones_ Exp $
51
52 inherit eutils games
53
54 DESCRIPTION="Reimplementation of the SCUMM game engine used in Lucasarts adventures"
55 HOMEPAGE="http://scummvm.sourceforge.net/"
56 SRC_URI="mirror://sourceforge/scummvm/${P}.tar.bz2"
57
58 LICENSE="GPL-2"
59 SLOT="0"
60 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
61 IUSE="alsa debug flac fluidsynth mp3 ogg vorbis zlib"
62 RESTRICT="test" # it only looks like there's a test there #77507
63
64 RDEPEND=">=media-libs/libsdl-1.2.2
65 >media-libs/libmpeg2-0.3.1
66 ogg? ( media-libs/libogg media-libs/libvorbis )
67 vorbis? ( media-libs/libogg media-libs/libvorbis )
68 alsa? ( >=media-libs/alsa-lib-0.9 )
69 mp3? ( media-libs/libmad )
70 flac? ( media-libs/flac )
71 fluidsynth? ( media-sound/fluidsynth )
72 zlib? ( sys-libs/zlib )"
73 DEPEND="${RDEPEND}
74 x86? ( dev-lang/nasm )"
75
76 pkg_setup() {
77 games_pkg_setup
78
79 if use alsa && ! built_with_use --missing true media-libs/alsa-lib midi; then
80 eerror ""
81 eerror "To be able to build ${CATEGORY}/${PN} with ALSA support you"
82 eerror "need to have built media-libs/alsa-lib with midi USE flag."
83 die "Missing midi USE flag on media-libs/alsa-lib"
84 fi
85 }
86
87 src_unpack() {
88 local f
89
90 unpack ${A}
91 cd "${S}"
92 # -g isn't needed for nasm here
93 sed -i \
94 -e '/NASMFLAGS/ s/-g//' \
95 ./Makefile.common \
96 || die "sed failed"
97 for f in graphics/scaler/{hq3x_i386.asm,hq2x_i386.asm}
98 do
99 cat >> $f <<EOF
100 %ifidn __OUTPUT_FORMAT__,elf
101 section .note.GNU-stack noalloc noexec nowrite progbits
102 %endif
103 EOF
104 done
105 }
106
107 src_compile() {
108 local myconf="--backend=sdl" # x11 backend no worky (bug #83502)
109
110 # let the engine find its data files in the right place (bug #178116)
111 myconf="${myconf} --datadir=${GAMES_DATADIR}"
112
113 ( use vorbis || use ogg ) \
114 && myconf="${myconf} --enable-vorbis" \
115 || myconf="${myconf} --disable-vorbis --disable-mpeg2"
116
117 # bug #137547
118 use fluidsynth || myconf="${myconf} --disable-fluidsynth"
119
120 # NOT AN AUTOCONF SCRIPT SO DONT CALL ECONF
121 # mpeg2 support needs vorbis (bug #79149) so turn it off if -oggvorbis
122 ./configure \
123 $(use_enable debug) \
124 $(use_enable alsa) \
125 $(use_enable mp3 mad) \
126 $(use_enable flac) \
127 $(use_enable zlib) \
128 $(use_enable x86 nasm) \
129 ${myconf} \
130 || die "configure failed"
131 emake || die "emake failed"
132 }
133
134 src_install() {
135 dogamesbin scummvm || die "dobin failed"
136 doman dists/scummvm.6
137 dodoc AUTHORS NEWS README TODO
138 insinto "${GAMES_DATADIR}"/${PN}/engines
139 doins gui/themes/modern.*
140 doicon icons/scummvm.svg
141 make_desktop_entry scummvm ScummVM scummvm "Game;AdventureGame"
142 prepgamesdirs
143 }