commit: e4767b3cc83591052940a4e936da7c6ca0bd16be
parent 4d98f48f2fbfec0e6275f1d3aec746638a01dc26
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 26 Mar 2022 17:54:44 +0100
media-libs/libsdl: Version bump, 1.2.52
Diffstat:
3 files changed, 57 insertions(+), 9 deletions(-)
diff --git a/media-libs/libsdl/Manifest b/media-libs/libsdl/Manifest
@@ -0,0 +1 @@
+DIST release-1.2.52.tar.gz 421046 BLAKE2B 46da0b96830fd83a34c57f34ad29f552f0c73abf4805dada802538405f7f120f3ba2965d56e19d6e3dc5fb336572dae6ebdcce73e47c428cebb64d205e5e018f SHA512 cd8f34f61ee9c6d0bd635f4c7a6f3cfb6bb570976f3bf843f1e3893b3a86d087a40bdf5f6bb2de16c9534ec42bc846b6ff599ac557c3b088c447e6106e2558f9
diff --git a/media-libs/libsdl/libsdl-1.2.52.ebuild b/media-libs/libsdl/libsdl-1.2.52.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib
+
+if [ "${PV}" = "9999" ]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/libsdl-org/sdl12-compat"
+else
+ SRC_URI="https://github.com/libsdl-org/sdl12-compat/archive/refs/tags/release-${PV}.tar.gz"
+ S="${WORKDIR}/sdl12-compat-release-${PV}"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="Simple Direct Media Layer (sdl-1.2 compatibility)"
+HOMEPAGE="https://github.com/libsdl-org/sdl12-compat"
+# dr_mp3: MIT-O or Unlicense
+LICENSE="ZLIB || ( MIT-0 Unlicense )"
+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, X
+DEPEND="
+ media-libs/libsdl2[oss?,alsa?,nas?,xinerama?,opengl?,sound?,video?,joystick?,pulseaudio?]
+"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DSDL12TESTS=$(usex test)
+ )
+
+ cmake-multilib_src_configure
+}
diff --git a/media-libs/libsdl/libsdl-9999.ebuild b/media-libs/libsdl/libsdl-9999.ebuild
@@ -1,15 +1,24 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
-inherit git-r3 cmake-multilib
+EAPI=8
+
+inherit cmake-multilib
+
+if [ "${PV}" = "9999" ]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/libsdl-org/sdl12-compat"
+else
+ SRC_URI="https://github.com/libsdl-org/sdl12-compat/archive/refs/tags/release-${PV}.tar.gz"
+ S="${WORKDIR}/sdl12-compat-release-${PV}"
+ KEYWORDS="~amd64 ~x86"
+fi
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"
# dr_mp3: MIT-O or Unlicense
LICENSE="ZLIB || ( MIT-0 Unlicense )"
-SLOT="0/sdl12-compat"
+SLOT="0"
RESTRICT="!test? ( test )"
# First line are fakes and just there for compat with other ebuilds
@@ -18,13 +27,9 @@ IUSE="
test
"
-# IUSE inheritance dropped: dga, xv, fbcon, tflib, aalib, libcaca, custom-cflags, static-libs
+# IUSE inheritance dropped: dga, xv, fbcon, tflib, aalib, libcaca, custom-cflags, static-libs, X
DEPEND="
media-libs/libsdl2[oss?,alsa?,nas?,xinerama?,opengl?,sound?,video?,joystick?,pulseaudio?]
- X? ( || (
- media-libs/libsdl2[X]
- media-libs/libsdl2[wayland]
- ) )
"
RDEPEND="${DEPEND}"