commit: 4c4dcac7db4f600c3c92c358502b5594db6a6c5d Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Mon May 5 09:13:29 2025 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Mon May 5 09:17:20 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c4dcac7
media-libs/libsdl2: add 2.32.56 Fails to build without the very lastest libsdl3 wrt new lower bound. Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> media-libs/libsdl2/Manifest | 1 + media-libs/libsdl2/libsdl2-2.32.56.ebuild | 55 +++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/media-libs/libsdl2/Manifest b/media-libs/libsdl2/Manifest index 47705d3925ba..6b6063719df9 100644 --- a/media-libs/libsdl2/Manifest +++ b/media-libs/libsdl2/Manifest @@ -5,3 +5,4 @@ DIST SDL2-2.32.2.tar.gz 7627192 BLAKE2B 5ea13fe60f2388e2ff61f60413ec71be84a429b6 DIST SDL2-2.32.4.tar.gz 7627336 BLAKE2B 55a24c75c90d77358b647d44c05525ee00bc69f6ed662894bfc32a26dee816254e5ce4a6ab0fdd20e6854b46ff222a13ed83a08d94595e2c26b8bf65e8e012fb SHA512 36e2f9cc743703f03a4fa161b5a8134ded58be8952cd4a1e019ea013c744ece2ef83eac7a79257ee4ce9190dc79d33108cb6f2613d7f935aebe50af8be100a7b DIST SDL2-2.32.6.tar.gz 7627447 BLAKE2B d08c733d87af036e8a015a4ef313bbdf4049d7ddc3968693a820ea69e473f2df486eda02303d8fd6b33c2d166dcb7dee7ac0cba19e0b8198c80db7d996fe4702 SHA512 2dae8ae9f10e160a50f625daddad891d25e782130e5a5e3f02079d94ab8858aca92ab8871ab19fdf5be6aca83ffeb9c1ea03949841c2506066f12d2bf2332d47 DIST sdl2-compat-2.32.54.tar.gz 2816984 BLAKE2B 71b28567f0039c1833f3b80f0bc9d025d08d3dc0bc9fe688e18e38064c2ee84149f6e7b66c04004c1d63fd18d141ca2d0a20280a72b12d48fa0f5976a9100cd5 SHA512 857aee92ab78692b9d9fb1734ee8d0bd59cff6d427a4aef8406e98858182299420d1f129676ad9a939e2b263fe7c78991a0a9ff955bae920f5530919a1f9a0ea +DIST sdl2-compat-2.32.56.tar.gz 2818364 BLAKE2B ffe635f2f2f220715752185587a4c4cc343acbfe1c17cd96afe176a65354926902b9d26d09c1688130a74561036da808aadc2f93467d4634bf692ffe69b26e57 SHA512 6117480fb29df01779b38e54596994a0e21f7c2247791ac3e2c8e416ea4c1048a3c00c04d74610b208076f9a79a5afee47cd4a072bdd69ddcecdf506fb6517b2 diff --git a/media-libs/libsdl2/libsdl2-2.32.56.ebuild b/media-libs/libsdl2/libsdl2-2.32.56.ebuild new file mode 100644 index 000000000000..84831c0d5868 --- /dev/null +++ b/media-libs/libsdl2/libsdl2-2.32.56.ebuild @@ -0,0 +1,55 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib + +# TODO: switch to new description when non-compat is gone, this is so it is +# not displayed on packages.gentoo.org which may be confusing for users +DESCRIPTION="Simple Direct Media Layer" +#DESCRIPTION="Simple Direct Media Layer 2 compatibility wrapper around SDL3" +HOMEPAGE="https://www.libsdl.org/" +SRC_URI="https://www.libsdl.org/release/sdl2-compat-${PV}.tar.gz" +S=${WORKDIR}/sdl2-compat-${PV} + +LICENSE="ZLIB" +SLOT="0" +# unkeyworded for testing +#KEYWORDS="~amd64" +# this skips most non-compat libsdl2 former IUSE that are not used by revdeps, +# albeit it is questionable that some depend on audio alsa/pipewire (note that +# static-libs is left out because it is useless for static-only builds given +# it will dlopen the shared libsdl3 anyway) +# +# TODO: either update revdeps to have (+) on no-op IUSE (haptic, joystick, +# sound, and video) then cleanup, or don't for less overlay issues and instead +# force in profiles to avoid unnecessary rebuilds -- not forced right now given +# >=2.32.50 would force for a potential future non-compat 2.34.0 fwiw +IUSE=" + X alsa gles2 +haptic +joystick kms opengl pipewire pulseaudio + +sound test +video vulkan wayland +" +REQUIRED_USE="gles2? ( opengl )" +RESTRICT="!test? ( test )" + +# libsdl3 is dlopen'ed and USE at build time should not matter, it enables +# everything but will not work without libsdl3 support at runtime +RDEPEND=" + >=media-libs/libsdl3-3.2.12[X?,alsa?,opengl?,pipewire?,pulseaudio?,vulkan?,wayland?,${MULTILIB_USEDEP}] +" +DEPEND="${RDEPEND}" + +src_configure() { + local mycmakeargs=( + -DSDL2COMPAT_TESTS=$(usex test) + ) + + cmake-multilib_src_configure +} + +src_install() { + cmake-multilib_src_install + + rm -r -- "${ED}"/usr/share/licenses || die +}
