From c21034f87c78518e4f9d7a2d78f220f42263bd4c Mon Sep 17 00:00:00 2001
From: Alexander Golubev <fatzer2@gmail.com>
Date: Sun, 1 Mar 2026 14:51:28 +0300
Subject: trinity-apps/amarok: drop USE=mp4

limp4-based metadata parser was removed long time ago (see [1]) due to
its functionality was superseded by taglib. The USE is not required and
wes causing strange FTBFS for some reason.

[1]: https://mirror.git.trinitydesktop.org/gitea/TDE/amarok/commit/460320e5

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
---
 trinity-apps/amarok/amarok-14.1.4.ebuild | 4 +---
 trinity-apps/amarok/amarok-14.1.5.ebuild | 4 +---
 trinity-apps/amarok/amarok-9999.ebuild   | 4 +---
 3 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/trinity-apps/amarok/amarok-14.1.4.ebuild b/trinity-apps/amarok/amarok-14.1.4.ebuild
index daca2364..47bec366 100644
--- a/trinity-apps/amarok/amarok-14.1.4.ebuild
+++ b/trinity-apps/amarok/amarok-14.1.4.ebuild
@@ -37,7 +37,7 @@ fi
 #
 # - Otherwise the ebuild should offer all what can be done with CMake at the moment.
 
-IUSE="akode amazon ifp inotify ipod konqsidebar mariadb mp4 mtp mysql njb
+IUSE="akode amazon ifp inotify ipod konqsidebar mariadb mtp mysql njb
 opengl postgres visualization +xine"
 
 REQUIRED_USE="|| ( xine akode ) mysql? ( !mariadb )"
@@ -48,7 +48,6 @@ DEPEND="
 	akode? ( ~media-libs/akode-${PV} )
 	ifp? ( media-libs/libifp )
 	ipod? ( media-libs/libgpod )
-	mp4? ( media-libs/libmp4v2 )
 	mtp? ( media-libs/libmtp )
 	mysql? ( dev-db/mysql-connector-c )
 	mariadb? ( dev-db/mariadb-connector-c )
@@ -77,7 +76,6 @@ src_configure() {
 		-DWITH_INOTIFY="$(usex inotify)"
 		-DWITH_IPOD="$(usex ipod)"
 		-DWITH_KONQSIDEBAR="$(usex konqsidebar)"
-		-DWITH_MP4V2="$(usex mp4)"
 		-DWITH_MTP="$(usex mtp)"
 		-DWITH_NJB="$(usex njb)"
 		-DWITH_OPENGL="$(usex opengl)"
diff --git a/trinity-apps/amarok/amarok-14.1.5.ebuild b/trinity-apps/amarok/amarok-14.1.5.ebuild
index 7a018774..65d7f39d 100644
--- a/trinity-apps/amarok/amarok-14.1.5.ebuild
+++ b/trinity-apps/amarok/amarok-14.1.5.ebuild
@@ -37,7 +37,7 @@ fi
 #
 # - Otherwise the ebuild should offer all what can be done with CMake at the moment.
 
-IUSE="akode amazon ifp inotify ipod konqsidebar mariadb mp4 mtp mysql njb
+IUSE="akode amazon ifp inotify ipod konqsidebar mariadb mtp mysql njb
 opengl postgres visualization +xine"
 
 REQUIRED_USE="|| ( xine akode ) mysql? ( !mariadb )"
@@ -48,7 +48,6 @@ DEPEND="
 	akode? ( ~media-libs/akode-${PV} )
 	ifp? ( media-libs/libifp )
 	ipod? ( media-libs/libgpod )
-	mp4? ( media-libs/libmp4v2 )
 	mtp? ( media-libs/libmtp )
 	mysql? ( dev-db/mysql-connector-c )
 	mariadb? ( dev-db/mariadb-connector-c )
@@ -77,7 +76,6 @@ src_configure() {
 		-DWITH_INOTIFY="$(usex inotify)"
 		-DWITH_IPOD="$(usex ipod)"
 		-DWITH_KONQSIDEBAR="$(usex konqsidebar)"
-		-DWITH_MP4V2="$(usex mp4)"
 		-DWITH_MTP="$(usex mtp)"
 		-DWITH_NJB="$(usex njb)"
 		-DWITH_OPENGL="$(usex opengl)"
diff --git a/trinity-apps/amarok/amarok-9999.ebuild b/trinity-apps/amarok/amarok-9999.ebuild
index 7a018774..65d7f39d 100644
--- a/trinity-apps/amarok/amarok-9999.ebuild
+++ b/trinity-apps/amarok/amarok-9999.ebuild
@@ -37,7 +37,7 @@ fi
 #
 # - Otherwise the ebuild should offer all what can be done with CMake at the moment.
 
-IUSE="akode amazon ifp inotify ipod konqsidebar mariadb mp4 mtp mysql njb
+IUSE="akode amazon ifp inotify ipod konqsidebar mariadb mtp mysql njb
 opengl postgres visualization +xine"
 
 REQUIRED_USE="|| ( xine akode ) mysql? ( !mariadb )"
@@ -48,7 +48,6 @@ DEPEND="
 	akode? ( ~media-libs/akode-${PV} )
 	ifp? ( media-libs/libifp )
 	ipod? ( media-libs/libgpod )
-	mp4? ( media-libs/libmp4v2 )
 	mtp? ( media-libs/libmtp )
 	mysql? ( dev-db/mysql-connector-c )
 	mariadb? ( dev-db/mariadb-connector-c )
@@ -77,7 +76,6 @@ src_configure() {
 		-DWITH_INOTIFY="$(usex inotify)"
 		-DWITH_IPOD="$(usex ipod)"
 		-DWITH_KONQSIDEBAR="$(usex konqsidebar)"
-		-DWITH_MP4V2="$(usex mp4)"
 		-DWITH_MTP="$(usex mtp)"
 		-DWITH_NJB="$(usex njb)"
 		-DWITH_OPENGL="$(usex opengl)"
-- 
cgit v1.2.3

