Gentoo Archives: gentoo-commits

From: "Tristan Heaven (nyhm)" <nyhm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-engines/scummvm: ChangeLog scummvm-1.2.0-r1.ebuild
Date: Tue, 23 Nov 2010 03:21:22
Message-Id: 20101123032108.1FEA920054@flycatcher.gentoo.org
1 nyhm 10/11/23 03:21:08
2
3 Modified: ChangeLog
4 Added: scummvm-1.2.0-r1.ebuild
5 Log:
6 Install into own datadir subdir
7
8 (Portage version: 2.2.0_alpha4/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.96 games-engines/scummvm/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/scummvm/ChangeLog?rev=1.96&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/scummvm/ChangeLog?rev=1.96&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/scummvm/ChangeLog?r1=1.95&r2=1.96
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-engines/scummvm/ChangeLog,v
20 retrieving revision 1.95
21 retrieving revision 1.96
22 diff -u -r1.95 -r1.96
23 --- ChangeLog 19 Oct 2010 21:38:48 -0000 1.95
24 +++ ChangeLog 23 Nov 2010 03:21:07 -0000 1.96
25 @@ -1,6 +1,11 @@
26 # ChangeLog for games-engines/scummvm
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-engines/scummvm/ChangeLog,v 1.95 2010/10/19 21:38:48 mr_bones_ Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/games-engines/scummvm/ChangeLog,v 1.96 2010/11/23 03:21:07 nyhm Exp $
30 +
31 +*scummvm-1.2.0-r1 (23 Nov 2010)
32 +
33 + 23 Nov 2010; Tristan Heaven <nyhm@g.o> +scummvm-1.2.0-r1.ebuild:
34 + Install into own datadir subdir
35
36 *scummvm-1.2.0 (19 Oct 2010)
37
38
39
40
41 1.1 games-engines/scummvm/scummvm-1.2.0-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/scummvm/scummvm-1.2.0-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/scummvm/scummvm-1.2.0-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: scummvm-1.2.0-r1.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-engines/scummvm/scummvm-1.2.0-r1.ebuild,v 1.1 2010/11/23 03:21:08 nyhm Exp $
51
52 EAPI=2
53 inherit eutils flag-o-matic games
54
55 DESCRIPTION="Reimplementation of the SCUMM game engine used in Lucasarts adventures"
56 HOMEPAGE="http://scummvm.sourceforge.net/"
57 SRC_URI="mirror://sourceforge/scummvm/${P/_/}.tar.bz2"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
62 IUSE="alsa debug flac fluidsynth mp3 ogg vorbis"
63 RESTRICT="test" # it only looks like there's a test there #77507
64
65 RDEPEND=">=media-libs/libsdl-1.2.2[audio,joystick,video]
66 >media-libs/libmpeg2-0.3.1
67 sys-libs/zlib
68 ogg? ( media-libs/libogg media-libs/libvorbis )
69 vorbis? ( media-libs/libogg media-libs/libvorbis )
70 alsa? ( media-libs/alsa-lib )
71 mp3? ( media-libs/libmad )
72 flac? ( media-libs/flac )
73 fluidsynth? ( media-sound/fluidsynth )"
74 DEPEND="${RDEPEND}
75 x86? ( dev-lang/nasm )"
76
77 S=${WORKDIR}/${P/_/}
78
79 src_prepare() {
80 # -g isn't needed for nasm here
81 sed -i \
82 -e '/NASMFLAGS/ s/-g//' \
83 configure || die
84 sed -i \
85 -e '/INSTALL.*doc/d' \
86 -e '/INSTALL.*\/pixmaps/d' \
87 -e 's/-s //' \
88 ports.mk || die
89 }
90
91 src_configure() {
92 local myconf="--backend=sdl" # x11 backend no worky (bug #83502)
93
94 if use vorbis || use ogg ; then
95 myconf="${myconf} --enable-vorbis"
96 else
97 myconf="${myconf} --disable-vorbis"
98 fi
99
100 # bug #137547
101 use fluidsynth || myconf="${myconf} --disable-fluidsynth"
102
103 use x86 && append-ldflags -Wl,-z,noexecstack
104
105 # NOT AN AUTOCONF SCRIPT SO DONT CALL ECONF
106 # mpeg2 support needs vorbis (bug #79149) so turn it off if -oggvorbis
107 ./configure \
108 --enable-verbose-build \
109 --prefix=/usr \
110 --bindir="${GAMES_BINDIR}" \
111 --datadir="${GAMES_DATADIR}"/${PN} \
112 --libdir="${GAMES_LIBDIR}" \
113 --enable-zlib \
114 $(use_enable debug) \
115 $(use_enable alsa) \
116 $(use_enable mp3 mad) \
117 $(use_enable flac) \
118 $(use_enable x86 nasm) \
119 ${myconf} || die
120 }
121
122 src_install() {
123 emake DESTDIR="${D}" install || die "emake install failed"
124 dodoc AUTHORS NEWS README TODO
125 doicon icons/scummvm.svg
126 make_desktop_entry scummvm ScummVM scummvm "Game;AdventureGame"
127 prepgamesdirs
128 }