commit:     f5f8b6bf7e7db6f2119f2f0ae7edfa803ac59da0
Author:     Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Fri Jul 23 03:17:53 2021 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sun Jan  8 23:21:04 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5f8b6bf

media-libs/libsdl: Add live package targeting sdl12-compat

Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>
Closes: https://github.com/gentoo/gentoo/pull/21749
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 media-libs/libsdl/libsdl-9999.ebuild | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/media-libs/libsdl/libsdl-9999.ebuild 
b/media-libs/libsdl/libsdl-9999.ebuild
new file mode 100644
index 000000000000..2acec880995c
--- /dev/null
+++ b/media-libs/libsdl/libsdl-9999.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit git-r3 cmake-multilib
+
+DESCRIPTION="Simple Direct Media Layer (sdl-1.2 compatibility)"
+HOMEPAGE="https://github.com/libsdl-org/sdl12-compat";
+EGIT_REPO_URI="https://github.com/libsdl-org/sdl12-compat";
+LICENSE="ZLIB"
+SLOT="0"
+RESTRICT="!test? ( test )"
+
+# First line are fakes and just there for compat with other ebuilds
+IUSE="
+       oss alsa nas X dga xv xinerama fbcon tslib aalib opengl libcaca +sound 
+video +joystick custom-cflags pulseaudio static-libs
+       test
+"
+
+# IUSE inheritance dropped: dga, xv, fbcon, tflib, aalib, libcaca, 
custom-cflags, static-libs
+DEPEND="
+       
media-libs/libsdl2[oss?,alsa?,nas?,xinerama?,opengl?,sound?,video?,joystick?,pulseaudio?]
+       X? ( || (
+               media-libs/libsdl2[X]
+               media-libs/libsdl2[wayland]
+       ) )
+"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+       local mycmakeargs=(
+               -DSDL12TESTS=$(usex test)
+       )
+
+       cmake-multilib_src_configure
+}

Reply via email to