Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-engines/scummvm/
Date: Sat, 25 Dec 2021 08:09:41
Message-Id: 1640419770.8626e7b3105023ff058ed56707590b4c6bf191d5.mgorny@gentoo
1 commit: 8626e7b3105023ff058ed56707590b4c6bf191d5
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 25 07:50:01 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 25 08:09:30 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8626e7b3
7
8 games-engines/scummvm: Bump to 2.5.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 games-engines/scummvm/Manifest | 1 +
13 games-engines/scummvm/scummvm-2.5.1.ebuild | 140 +++++++++++++++++++++++++++++
14 2 files changed, 141 insertions(+)
15
16 diff --git a/games-engines/scummvm/Manifest b/games-engines/scummvm/Manifest
17 index d2ec580a7610..5f495ff22480 100644
18 --- a/games-engines/scummvm/Manifest
19 +++ b/games-engines/scummvm/Manifest
20 @@ -1,2 +1,3 @@
21 DIST scummvm-2.2.0.tar.xz 63652348 BLAKE2B b44a07d7ad6747b136465f81122464f02e5cc655c205d6f4424555311563f8ceaa8072972d05512af85d18fabba78d5ea9396ea314581776c1ef8d88ca6ab81b SHA512 001f884b9689386ef5b69ab8f5fa2362e1e4dc5e8273f96dc8dce1963be354a2fad95e724ff33d65008be7591519f0e2bac530ba3c44a449b8b7cac862f4f81e
22 DIST scummvm-2.5.0.tar.xz 130095472 BLAKE2B a5153280999e321be5bf7b56411c163d5ba1d4fb142fc900e1c3cb709d357d199d3764a94af57ab7218ee201bdbe6288adf222add9ffc941324b84d0e6954fe8 SHA512 7ea702cf0f993994209fd692e82ab65f9686fb60d65f36624a31bd642067fe7dd35e556666281c68d1592d7dd07333f085c124038f7a45acefae8f30bceff534
23 +DIST scummvm-2.5.1.tar.xz 132828412 BLAKE2B 08fb2fa6cbeec3c1ec24a9b660aab4344f0dbcf4c42655392315aef0ce78105b2a669ef9c82fc09bc389856e592e4e5249d84512b288e7d790914d5caee3972d SHA512 5e5aaf247e26434dd1594547a3066dce6f52e12370532b8bff09ae22149d697f6d3ab0a94b5c1cf578b2b8cba32d1cd6e5dc30fe0cd6266c8f2b23cba13d7d03
24
25 diff --git a/games-engines/scummvm/scummvm-2.5.1.ebuild b/games-engines/scummvm/scummvm-2.5.1.ebuild
26 new file mode 100644
27 index 000000000000..9f70736f67ee
28 --- /dev/null
29 +++ b/games-engines/scummvm/scummvm-2.5.1.ebuild
30 @@ -0,0 +1,140 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +inherit desktop flag-o-matic toolchain-funcs xdg
36 +
37 +DESCRIPTION="Reimplementation of the SCUMM game engine used in Lucasarts adventures"
38 +HOMEPAGE="https://www.scummvm.org/"
39 +
40 +if [[ ${PV} == *9999* ]]; then
41 + inherit git-r3
42 + EGIT_REPO_URI="https://github.com/scummvm/scummvm"
43 +else
44 + SRC_URI="https://downloads.scummvm.org/frs/scummvm/${PV}/${P}.tar.xz"
45 + KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~riscv ~x86"
46 + S="${WORKDIR}/${PN}-${P}"
47 +fi
48 +
49 +LICENSE="GPL-2+ LGPL-2.1 BSD GPL-3-with-font-exception"
50 +SLOT="0"
51 +IUSE="a52 aac alsa debug flac fluidsynth fribidi gif glew +gtk jpeg lua mpeg2 mp3 +net opengl png sndio speech theora truetype unsupported vorbis zlib"
52 +RESTRICT="test" # it only looks like there's a test there #77507
53 +
54 +RDEPEND="
55 + >=media-libs/libsdl2-2.0.0[sound,joystick,video]
56 + a52? ( media-libs/a52dec )
57 + aac? ( media-libs/faad2 )
58 + alsa? ( media-libs/alsa-lib )
59 + flac? ( media-libs/flac )
60 + fluidsynth? ( media-sound/fluidsynth:= )
61 + fribidi? ( dev-libs/fribidi )
62 + gif? ( media-libs/giflib )
63 + gtk? (
64 + dev-libs/glib:2
65 + x11-libs/gtk+:3
66 + )
67 + jpeg? ( virtual/jpeg:0 )
68 + mp3? ( media-libs/libmad )
69 + mpeg2? ( media-libs/libmpeg2 )
70 + net? (
71 + media-libs/sdl2-net
72 + net-misc/curl
73 + )
74 + opengl? (
75 + || (
76 + virtual/opengl
77 + media-libs/mesa[gles2]
78 + media-libs/mesa[gles1]
79 + )
80 + glew? ( media-libs/glew:0= )
81 + )
82 + png? ( media-libs/libpng:0 )
83 + sndio? ( media-sound/sndio:= )
84 + speech? ( app-accessibility/speech-dispatcher )
85 + truetype? ( media-libs/freetype:2 )
86 + theora? ( media-libs/libtheora )
87 + vorbis? (
88 + media-libs/libogg
89 + media-libs/libvorbis
90 + )
91 + zlib? ( sys-libs/zlib:= )
92 +"
93 +DEPEND="${RDEPEND}"
94 +BDEPEND="
95 + app-arch/xz-utils
96 + truetype? ( virtual/pkgconfig )
97 + x86? ( dev-lang/nasm )
98 +"
99 +
100 +S="${WORKDIR}/${P/_/}"
101 +
102 +src_prepare() {
103 + default
104 +
105 + # -g isn't needed for nasm here
106 + sed -i \
107 + -e '/NASMFLAGS/ s/-g//' \
108 + configure || die
109 + sed -i \
110 + -e '/INSTALL.*doc/d' \
111 + -e '/INSTALL.*\/pixmaps/d' \
112 + -e 's/-s //' \
113 + ports.mk || die
114 +}
115 +
116 +src_configure() {
117 + use x86 && append-ldflags -Wl,-z,noexecstack
118 + tc-export STRINGS
119 +
120 + local myconf=(
121 + --backend=sdl
122 + --host=${CHOST}
123 + --enable-verbose-build
124 + --prefix="${EPREFIX}/usr"
125 + --libdir="${EPREFIX}/usr/$(get_libdir)"
126 + --opengl-mode=$(usex opengl auto none)
127 + --with-sdl-prefix="${EPREFIX}/usr"
128 + $(use_enable a52)
129 + $(use_enable aac faad)
130 + $(use_enable alsa)
131 + $(use_enable debug)
132 + $(use_enable !debug release-mode)
133 + $(use_enable flac)
134 + $(usex fluidsynth '' --disable-fluidsynth)
135 + $(use_enable fribidi)
136 + $(use_enable gif)
137 + $(use opengl && use_enable glew)
138 + $(use_enable gtk)
139 + $(use_enable jpeg)
140 + $(use_enable lua)
141 + $(use_enable mp3 mad)
142 + $(use_enable mpeg2)
143 + $(use_enable net libcurl)
144 + $(use_enable net sdlnet)
145 + $(use_enable png)
146 + $(use_enable sndio)
147 + $(use_enable speech tts)
148 + $(use_enable theora theoradec)
149 + $(use_enable truetype freetype2)
150 + $(usex unsupported --enable-all-engines '')
151 + $(use_enable vorbis)
152 + $(use_enable zlib)
153 + $(use_enable x86 nasm)
154 + )
155 + echo "configure ${myconf[@]}"
156 + # NOT AN AUTOCONF SCRIPT SO DONT CALL ECONF
157 + SDL_CONFIG="sdl2-config" \
158 + ./configure "${myconf[@]}" ${EXTRA_ECONF} || die
159 +}
160 +
161 +src_compile() {
162 + emake \
163 + AR="$(tc-getAR) cru" \
164 + RANLIB="$(tc-getRANLIB)"
165 +}
166 +
167 +src_install() {
168 + default
169 + doicon -s scalable icons/scummvm.svg
170 +}