Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-engines/scummvm/, games-engines/scummvm/files/
Date: Mon, 30 Dec 2019 22:38:52
Message-Id: 1577745508.70c58a213ee7a2205cb7f6e7790063b97876ae60.chewi@gentoo
1 commit: 70c58a213ee7a2205cb7f6e7790063b97876ae60
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 30 22:37:52 2019 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 30 22:38:28 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70c58a21
7
8 games-engines/scummvm: Drop old 2.0.0
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
12
13 games-engines/scummvm/Manifest | 1 -
14 .../files/scummvm-2.0.0-freetype_pkgconfig.patch | 99 ----------------------
15 games-engines/scummvm/scummvm-2.0.0-r1.ebuild | 98 ---------------------
16 3 files changed, 198 deletions(-)
17
18 diff --git a/games-engines/scummvm/Manifest b/games-engines/scummvm/Manifest
19 index eafca9329bc..75b986c1944 100644
20 --- a/games-engines/scummvm/Manifest
21 +++ b/games-engines/scummvm/Manifest
22 @@ -1,2 +1 @@
23 -DIST scummvm-2.0.0.tar.xz 21291656 BLAKE2B 303aa4254d1c940ce6d65d192f2678a033015f1b85e38c62902aa8fac05a1ff33fd7e3fe9de47825cd0cf72076027adb21c72a63a38349f9ee8f63566f3db948 SHA512 5f4c11145c5dfcc7ae95d5c0e5ac9e938912cc5060b9d5fdfcb699a745755b31412e44199e487ad388ca5e091afc3366f874610adb44d440f336e26d6cd4812c
24 DIST scummvm-2.1.0.tar.xz 27188916 BLAKE2B b808ff335e5b25c58c8caebfe660b4c2938dcb6eada0aa5b31777b97ff2fb7cb3732d516fc4d981ab1bee16876d62f634f69517158c7c233e11cc22575b15c09 SHA512 9a03cf207660aa49e49f53e1df10b774b7c9711dffd527e00518015e7e7057f25538a7dd89e248e9237434cf08a9f7ea6b215805fb65a770fb20596f5e713218
25
26 diff --git a/games-engines/scummvm/files/scummvm-2.0.0-freetype_pkgconfig.patch b/games-engines/scummvm/files/scummvm-2.0.0-freetype_pkgconfig.patch
27 deleted file mode 100644
28 index ca5c5e89271..00000000000
29 --- a/games-engines/scummvm/files/scummvm-2.0.0-freetype_pkgconfig.patch
30 +++ /dev/null
31 @@ -1,99 +0,0 @@
32 -From 48a3f5bcba1837517e3d9d029ebe5e8fbd3f0966 Mon Sep 17 00:00:00 2001
33 -From: Lars Wendler <polynomial-c@g.o>
34 -Date: Sun, 6 May 2018 20:55:29 +0200
35 -Subject: [PATCH] Prefer pkg-config over freetype-config if possible
36 -
37 -As of freetype-2.9.1 the freetype-config script no longer gets installed
38 -by default.
39 ----
40 - configure | 56 ++++++++++++++++++++++++++++++++++++-------------------
41 - 1 file changed, 37 insertions(+), 19 deletions(-)
42 -
43 -diff --git a/configure b/configure
44 -index 8e2a387acc..210951e343 100755
45 ---- a/configure
46 -+++ b/configure
47 -@@ -204,6 +204,7 @@ _sparklepath=
48 - _sdlconfig=sdl2-config
49 - _libcurlconfig=curl-config
50 - _freetypeconfig=freetype-config
51 -+_freetype_found="false"
52 - _sdlpath="$PATH"
53 - _freetypepath="$PATH"
54 - _libcurlpath="$PATH"
55 -@@ -4668,28 +4669,45 @@ echo "$_libunity"
56 - #
57 - # Check for FreeType2 to be present
58 - #
59 --if test "$_freetype2" != "no"; then
60 --
61 -- # Look for the freetype-config script
62 -- find_freetypeconfig
63 --
64 -- if test -z "$_freetypeconfig"; then
65 -- _freetype2=no
66 -+find_freetype() {
67 -+ # Wrapper function which tries to find freetype
68 -+ # either by callimg freetype-config or by using
69 -+ # pkg-config.
70 -+ # As of freetype-2.9.1 the freetype-config file
71 -+ # no longer gets installed by default.
72 -+
73 -+ if pkg-config --exists freetype2; then
74 -+ FREETYPE2_LIBS=`pkg-config --libs freetype2`
75 -+ FREETYPE2_CFLAGS=`pkg-config --cflags freetype2`
76 -+ FREETYPE2_STATIC_LIBS=`pkg-config --static --libs freetype2`
77 -+ _freetype_found="true"
78 - else
79 -- # Since 2.3.12, freetype-config prepends $SYSROOT to everything.
80 -- # This means we can't pass it a --prefix that includes $SYSROOT.
81 -- freetypeprefix="$_freetypepath"
82 -- if test -n "$SYSROOT" -a "$SYSROOT" != "/"; then
83 -- teststring=VeryImplausibleSysrootX1Y2Z3
84 -- if ( env SYSROOT=/$teststring "$_freetypeconfig" --cflags | grep $teststring 2> /dev/null > /dev/null ); then
85 -- echo "Adapting FreeType prefix to SYSROOT" >> "$TMPLOG"
86 -- freetypeprefix="${freetypeprefix##$SYSROOT}"
87 -+ # Look for the freetype-config script
88 -+ find_freetypeconfig
89 -+ if test -n "$_freetypeconfig"; then
90 -+ # Since 2.3.12, freetype-config prepends $SYSROOT to everything.
91 -+ # This means we can't pass it a --prefix that includes $SYSROOT.
92 -+ freetypeprefix="$_freetypepath"
93 -+ if test -n "$SYSROOT" -a "$SYSROOT" != "/"; then
94 -+ teststring=VeryImplausibleSysrootX1Y2Z3
95 -+ if ( env SYSROOT=/$teststring "$_freetypeconfig" --cflags | grep $teststring 2> /dev/null > /dev/null ); then
96 -+ echo "Adapting FreeType prefix to SYSROOT" >> "$TMPLOG"
97 -+ freetypeprefix="${freetypeprefix##$SYSROOT}"
98 -+ fi
99 - fi
100 -+ FREETYPE2_LIBS=`$_freetypeconfig --prefix="$freetypeprefix" --libs`
101 -+ FREETYPE2_CFLAGS=`$_freetypeconfig --prefix="$freetypeprefix" --cflags`
102 -+ FREETYPE2_STATIC_LIBS=`$_freetypeconfig --prefix="$freetypeprefix" --static --libs 2>/dev/null`
103 -+ _freetype_found="true"
104 - fi
105 -+ fi
106 -+}
107 -
108 -- FREETYPE2_LIBS=`$_freetypeconfig --prefix="$freetypeprefix" --libs`
109 -- FREETYPE2_CFLAGS=`$_freetypeconfig --prefix="$freetypeprefix" --cflags`
110 --
111 -+if test "$_freetype2" != "no"; then
112 -+ find_freetype
113 -+ if test $_freetype_found != true; then
114 -+ _freetype2=no
115 -+ else
116 - if test "$_freetype2" = "auto"; then
117 - _freetype2=no
118 -
119 -@@ -4709,7 +4727,7 @@ EOF
120 - # required flags for static linking. We abuse this to detect
121 - # FreeType2 builds which are static themselves.
122 - if test "$_freetype2" != "yes"; then
123 -- FREETYPE2_LIBS=`$_freetypeconfig --prefix="$_freetypepath" --static --libs 2>/dev/null`
124 -+ FREETYPE2_LIBS="$FREETYPE2_STATIC_LIBS"
125 - cc_check_no_clean $FREETYPE2_CFLAGS $FREETYPE2_LIBS && _freetype2=yes
126 - fi
127 - cc_check_clean
128 ---
129 -2.17.0
130 -
131
132 diff --git a/games-engines/scummvm/scummvm-2.0.0-r1.ebuild b/games-engines/scummvm/scummvm-2.0.0-r1.ebuild
133 deleted file mode 100644
134 index ec9d93fc808..00000000000
135 --- a/games-engines/scummvm/scummvm-2.0.0-r1.ebuild
136 +++ /dev/null
137 @@ -1,98 +0,0 @@
138 -# Copyright 1999-2019 Gentoo Authors
139 -# Distributed under the terms of the GNU General Public License v2
140 -
141 -EAPI=7
142 -inherit desktop flag-o-matic toolchain-funcs xdg
143 -
144 -DESCRIPTION="Reimplementation of the SCUMM game engine used in Lucasarts adventures"
145 -HOMEPAGE="https://www.scummvm.org/"
146 -SRC_URI="https://scummvm.org/frs/scummvm/${PV}/${P}.tar.xz"
147 -
148 -LICENSE="GPL-2+ LGPL-2.1 BSD GPL-3-with-font-exception"
149 -SLOT="0"
150 -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
151 -IUSE="aac alsa debug flac fluidsynth jpeg mpeg2 mp3 opengl png theora truetype unsupported vorbis zlib"
152 -RESTRICT="test" # it only looks like there's a test there #77507
153 -
154 -RDEPEND=">=media-libs/libsdl2-2.0.0[sound,joystick,video]
155 - zlib? ( sys-libs/zlib:= )
156 - jpeg? ( virtual/jpeg:0 )
157 - png? ( media-libs/libpng:0 )
158 - vorbis? (
159 - media-libs/libogg
160 - media-libs/libvorbis
161 - )
162 - theora? ( media-libs/libtheora )
163 - aac? ( media-libs/faad2 )
164 - alsa? ( media-libs/alsa-lib )
165 - mp3? ( media-libs/libmad )
166 - mpeg2? ( media-libs/libmpeg2 )
167 - flac? ( media-libs/flac )
168 - opengl? ( virtual/opengl )
169 - truetype? ( media-libs/freetype:2 )
170 - fluidsynth? ( media-sound/fluidsynth )"
171 -DEPEND="${RDEPEND}"
172 -BDEPEND="
173 - app-arch/xz-utils
174 - truetype? ( virtual/pkgconfig )
175 - x86? ( dev-lang/nasm )
176 -"
177 -
178 -S="${WORKDIR}/${P/_/}"
179 -
180 -PATCHES=( "${FILESDIR}/${PN}-2.0.0-freetype_pkgconfig.patch" )
181 -
182 -src_prepare() {
183 - xdg_src_prepare
184 -
185 - # -g isn't needed for nasm here
186 - sed -i \
187 - -e '/NASMFLAGS/ s/-g//' \
188 - configure || die
189 - sed -i \
190 - -e '/INSTALL.*doc/d' \
191 - -e '/INSTALL.*\/pixmaps/d' \
192 - -e 's/-s //' \
193 - ports.mk || die
194 -}
195 -
196 -src_configure() {
197 - use x86 && append-ldflags -Wl,-z,noexecstack
198 -
199 - local myconf=(
200 - --backend=sdl
201 - --host=${CHOST}
202 - --enable-verbose-build
203 - --prefix="${EPREFIX}/usr"
204 - --libdir="${EPREFIX}/usr/$(get_libdir)"
205 - --opengl-mode=$(usex opengl auto none)
206 - $(use_enable aac faad)
207 - $(use_enable alsa)
208 - $(use_enable debug)
209 - $(use_enable !debug release-mode)
210 - $(use_enable flac)
211 - $(usex fluidsynth '' --disable-fluidsynth)
212 - $(use_enable jpeg)
213 - $(use_enable mp3 mad)
214 - $(use_enable mpeg2)
215 - $(use_enable png)
216 - $(use_enable theora theoradec)
217 - $(use_enable truetype freetype2)
218 - $(usex unsupported --enable-all-engines '')
219 - $(use_enable vorbis)
220 - $(use_enable zlib)
221 - $(use_enable x86 nasm)
222 - )
223 - # NOT AN AUTOCONF SCRIPT SO DONT CALL ECONF
224 - SDL_CONFIG="sdl2-config" \
225 - ./configure "${myconf[@]}" "${EXTRA_ECONF}" || die
226 -}
227 -
228 -src_compile() {
229 - emake AR="$(tc-getAR) cru" RANLIB="$(tc-getRANLIB)"
230 -}
231 -
232 -src_install() {
233 - default
234 - doicon -s scalable icons/scummvm.svg
235 -}