From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/qmplay2/files/, media-video/qmplay2/
Date: Sat, 28 Jun 2025 06:24:49 +0000 (UTC) [thread overview]
Message-ID: <1751091884.771928ddc6fa721dfdd0a95262a011f1335de4f2.arthurzam@gentoo> (raw)
commit: 771928ddc6fa721dfdd0a95262a011f1335de4f2
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 28 06:23:49 2025 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Jun 28 06:24:44 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=771928dd
media-video/qmplay2: add 25.06.27
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
media-video/qmplay2/Manifest | 1 +
.../files/qmplay2-25.06.27-revert-lld-stuff.patch | 15 +++
media-video/qmplay2/qmplay2-25.06.27.ebuild | 128 +++++++++++++++++++++
3 files changed, 144 insertions(+)
diff --git a/media-video/qmplay2/Manifest b/media-video/qmplay2/Manifest
index 18f3ddc92610..5da506964045 100644
--- a/media-video/qmplay2/Manifest
+++ b/media-video/qmplay2/Manifest
@@ -1,2 +1,3 @@
DIST QMPlay2-src-25.01.19.tar.xz 2072396 BLAKE2B 42336e061294f8528f38fcad8850300b2c3e36857914b23ac086c5e15af83b710346463f5319e2b90c3c869659ef268fecbb967a3dcede0b32227d1ac719585c SHA512 a5745da1c53fd59f8bf47596cf1bb77f62c1af4585265695283153ef5b53f9f294a5fa2c8eb8683300ed13b99c52828a1cf3b5abd354c6bd8713087509589d69
DIST QMPlay2-src-25.06.11.tar.xz 2105728 BLAKE2B 0905b3e4f252dc33b0b73a6e021296def2e735c15743c7a18ca1fdfcb5d9004cf6208754ad43388e4e32ba278e2d5c15b7a424e23bfc76ec6dc89f8e14e7125c SHA512 16042c228ec325ce4a29c6f22bbf4a088b8917aa0589f7bf21a1a38b104679ea7c3f4f956f50c4b7e5e8446c7e07b4619251f54648a0704f9d141cf92ff152bc
+DIST QMPlay2-src-25.06.27.tar.xz 2104364 BLAKE2B 58545f8cc15de8d954cc813bf5066cf5fbebcfdc29dccc9737b8b710edad85dda6a1a2c9fe6ddb30c1f8de0fbb23d1ab301c85f91ff9f9c76dcb1fc4e3ed6c5e SHA512 77505124c90f51c554ed6eeaabd5aa85c373843d41b8e1b83ab4c8cbe7beb6c6c656680539c625620607033089e842dd6476e7d4f8c526d739ba8934d5fad28f
diff --git a/media-video/qmplay2/files/qmplay2-25.06.27-revert-lld-stuff.patch b/media-video/qmplay2/files/qmplay2-25.06.27-revert-lld-stuff.patch
new file mode 100644
index 000000000000..110594104515
--- /dev/null
+++ b/media-video/qmplay2/files/qmplay2-25.06.27-revert-lld-stuff.patch
@@ -0,0 +1,15 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -383,12 +383,6 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang"
+ string(REPLACE ",--no-undefined" "" CMAKE_MODULE_LINKER_FLAGS ${CMAKE_MODULE_LINKER_FLAGS})
+ string(REPLACE "--no-undefined" "" CMAKE_MODULE_LINKER_FLAGS ${CMAKE_MODULE_LINKER_FLAGS})
+ endif()
+-
+- if((NOT WIN32 AND NOT APPLE AND NOT ANDROID) AND CMAKE_CXX_COMPILER_ID MATCHES "Clang")
+- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=lld")
+- set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -fuse-ld=lld")
+- set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fuse-ld=lld")
+- endif()
+ endif()
+
+ if(APPLE)
diff --git a/media-video/qmplay2/qmplay2-25.06.27.ebuild b/media-video/qmplay2/qmplay2-25.06.27.ebuild
new file mode 100644
index 000000000000..45a15d65cea6
--- /dev/null
+++ b/media-video/qmplay2/qmplay2-25.06.27.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake xdg
+
+DESCRIPTION="A Qt-based video player, which can play most formats and codecs"
+HOMEPAGE="https://github.com/zaps166/QMPlay2"
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/zaps166/QMPlay2"
+else
+ SRC_URI="https://github.com/zaps166/QMPlay2/releases/download/${PV}/QMPlay2-src-${PV}.tar.xz"
+ S="${WORKDIR}/QMPlay2-src-${PV}"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="LGPL-3"
+SLOT="0"
+
+IUSE="avdevice +audiofilters +alsa cdio cuvid extensions gme inputs libass
+ modplug notifications opengl pipewire portaudio pulseaudio sid
+ shaders +taglib vaapi videofilters visualizations vulkan xv"
+
+REQUIRED_USE="
+ audiofilters? ( || ( alsa pipewire portaudio pulseaudio ) )
+ shaders? ( vulkan )
+"
+
+RDEPEND="
+ dev-qt/qtbase:6[concurrent,dbus,gui,network,opengl?,ssl,vulkan?,widgets]
+ dev-qt/qt5compat:6
+ dev-qt/qtsvg:6
+ media-video/ffmpeg:=[vaapi?]
+ alsa? ( media-libs/alsa-lib )
+ cdio? ( dev-libs/libcdio[cddb] )
+ extensions? ( dev-qt/qtdeclarative:6 )
+ gme? ( media-libs/game-music-emu )
+ libass? ( media-libs/libass )
+ opengl? ( virtual/opengl )
+ pipewire? ( media-video/pipewire )
+ portaudio? ( media-libs/portaudio )
+ pulseaudio? ( media-libs/libpulse )
+ sid? ( media-libs/libsidplayfp )
+ shaders? ( >=media-libs/shaderc-2020.1 )
+ taglib? ( media-libs/taglib:= )
+ vaapi? ( media-libs/libva[X] )
+ vulkan? ( >=media-libs/vulkan-loader-1.2.133 )
+ xv? ( x11-libs/libXv )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ dev-qt/qttools:6[linguist]
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-25.06.27-revert-lld-stuff.patch"
+)
+
+src_prepare() {
+ # disable compress man pages
+ sed -i src/gui/CMakeLists.txt -r \
+ -e 's/if\(GZIP\)/if\(TRUE\)/' \
+ -e 's/(install.+QMPlay2\.1)\.gz/\1/' || die
+
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_WITH_QT6=ON
+ # core
+ -DUSE_UPDATES=OFF
+ -DUSE_ALSA=$(usex alsa)
+ -DUSE_AUDIOCD=$(usex cdio)
+ -DUSE_DBUS_PM=ON
+ -DUSE_FREEDESKTOP_NOTIFICATIONS=ON
+ -DUSE_LIBASS=$(usex libass)
+ -DUSE_NOTIFY=$(usex notifications)
+ -DUSE_OPENGL=$(usex opengl)
+ -DUSE_VULKAN=$(usex vulkan)
+ -DUSE_GLSLC=$(usex shaders)
+ -DUSE_XVIDEO=$(usex xv)
+
+ # ffmpeg
+ -DUSE_FFMPEG_AVDEVICE=$(usex avdevice)
+ -DUSE_FFMPEG_VAAPI=$(usex vaapi)
+
+ # chiptune
+ -DUSE_CHIPTUNE_GME=$(usex gme)
+ -DUSE_CHIPTUNE_SID=$(usex sid)
+
+ # modules
+ -DUSE_AUDIOFILTERS=$(usex audiofilters)
+ -DUSE_CUVID=$(usex cuvid)
+ -DUSE_INPUTS=$(usex inputs)
+ -DUSE_MODPLUG=$(usex modplug)
+ -DUSE_PIPEWIRE=$(usex pipewire)
+ -DUSE_PORTAUDIO=$(usex portaudio)
+ -DUSE_PULSEAUDIO=$(usex pulseaudio)
+ -DUSE_TAGLIB=$(usex taglib)
+ -DUSE_VIDEOFILTERS=$(usex videofilters)
+ -DUSE_VISUALIZATIONS=$(usex visualizations)
+
+ # extensions
+ -DUSE_EXTENSIONS=$(usex extensions)
+ )
+
+ if use extensions; then
+ # Move inside an if, to remove unused option warning
+ mycmakeargs+=(
+ -DUSE_LASTFM=ON
+ -DUSE_LYRICS=ON
+ -DUSE_MEDIABROWSER=ON
+ -DUSE_MPRIS2=ON
+ )
+ fi
+
+ if [[ ${PV} == *9999 ]]; then
+ mycmakeargs+=( -DUSE_GIT_VERSION=true )
+ else
+ mycmakeargs+=( -DUSE_GIT_VERSION=false )
+ fi
+
+ cmake_src_configure
+}
next reply other threads:[~2025-06-28 6:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-28 6:24 Arthur Zamarin [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-09-05 8:10 [gentoo-commits] repo/gentoo:master commit in: media-video/qmplay2/files/, media-video/qmplay2/ Arthur Zamarin
2023-06-28 18:30 Arthur Zamarin
2023-05-30 19:39 Andreas Sturmlechner
2022-10-23 18:37 Arthur Zamarin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1751091884.771928ddc6fa721dfdd0a95262a011f1335de4f2.arthurzam@gentoo \
--to=arthurzam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox