From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1308607-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 45A0313933E
	for <garchives@archives.gentoo.org>; Mon,  2 Aug 2021 02:22:42 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 6D1D3E096E;
	Mon,  2 Aug 2021 02:22:41 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 55BDCE096E
	for <gentoo-commits@lists.gentoo.org>; Mon,  2 Aug 2021 02:22:41 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 01767343BB8
	for <gentoo-commits@lists.gentoo.org>; Mon,  2 Aug 2021 02:22:40 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 74B9D845
	for <gentoo-commits@lists.gentoo.org>; Mon,  2 Aug 2021 02:22:38 +0000 (UTC)
From: "Ionen Wolkens" <ionen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" <ionen@gentoo.org>
Message-ID: <1627870897.a319623fa3d2866776b84a6a95933152078a68fb.ionen@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/smpeg/
X-VCS-Repository: repo/gentoo
X-VCS-Files: media-libs/smpeg/smpeg-0.4.4-r11.ebuild
X-VCS-Directories: media-libs/smpeg/
X-VCS-Committer: ionen
X-VCS-Committer-Name: Ionen Wolkens
X-VCS-Revision: a319623fa3d2866776b84a6a95933152078a68fb
X-VCS-Branch: master
Date: Mon,  2 Aug 2021 02:22:38 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: e802d679-fbf4-441f-b1ff-0ff650530d36
X-Archives-Hash: c4bc938f04b59dcd1ae8cfa293dfb10c

commit:     a319623fa3d2866776b84a6a95933152078a68fb
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  2 00:34:39 2021 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Aug  2 02:21:37 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a319623f

media-libs/smpeg: drop X+debug IUSE, adjust libsdl dep

X is not used, doesn't link with any of the libraries, doesn't
include headers, and it doesn't change any code paths if disabled.

debug was only used to control -DNDEBUG

Add libsdl[opengl?,sound,video] needed by plaympeg/glmovie, albeit
it may have been better to simply not build/support these like smpeg2.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 media-libs/smpeg/smpeg-0.4.4-r11.ebuild | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/media-libs/smpeg/smpeg-0.4.4-r11.ebuild b/media-libs/smpeg/smpeg-0.4.4-r11.ebuild
index 6c94b2006f7..e79dae9392a 100644
--- a/media-libs/smpeg/smpeg-0.4.4-r11.ebuild
+++ b/media-libs/smpeg/smpeg-0.4.4-r11.ebuild
@@ -13,18 +13,13 @@ SRC_URI="https://mirrors.dotsrc.org/lokigames/open-source/smpeg/${P}.tar.gz
 LICENSE="LGPL-2+"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
-IUSE="X debug cpu_flags_x86_mmx opengl"
+IUSE="cpu_flags_x86_mmx opengl"
 
 RDEPEND="
-	media-libs/libsdl[${MULTILIB_USEDEP}]
+	media-libs/libsdl[opengl?,sound,video,${MULTILIB_USEDEP}]
 	opengl? (
 		virtual/glu[${MULTILIB_USEDEP}]
 		virtual/opengl[${MULTILIB_USEDEP}]
-	)
-	X? (
-		x11-libs/libXext[${MULTILIB_USEDEP}]
-		x11-libs/libXi[${MULTILIB_USEDEP}]
-		x11-libs/libX11[${MULTILIB_USEDEP}]
 	)"
 DEPEND="${RDEPEND}"
 
@@ -57,10 +52,9 @@ multilib_src_configure() {
 	local myeconfargs=(
 		--disable-gtk-player
 		--enable-debug # disabling this only passes extra optimizations
+		--without-x # does not actually use X, only causes a headers check
 		$(use_enable cpu_flags_x86_mmx mmx)
-		$(use_enable debug assertions)
 		$(use_enable opengl opengl-player)
-		$(use_with X x)
 	)
 	ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
 }