* [gentoo-commits] repo/gentoo:master commit in: media-video/mkvalidator/files/, media-video/mkvalidator/
@ 2025-04-12 20:59 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2025-04-12 20:59 UTC (permalink / raw
To: gentoo-commits
commit: 9315b0d65e58dc48d1fc1ce3ee36f388625e1bf1
Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Sun Mar 23 18:30:37 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Apr 12 20:57:38 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9315b0d6
media-video/mkvalidator: Fix build with CMake4
And add -fno-strict-aliasing and filter lto due to funky video bit
fiddling
Closes: https://bugs.gentoo.org/949733
Closes: https://bugs.gentoo.org/951925
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/41248
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../files/mkvalidator-0.6.0-cmake4.patch | 10 ++++++
.../mkvalidator/mkvalidator-0.6.0-r1.ebuild | 37 ++++++++++++++++++++++
2 files changed, 47 insertions(+)
diff --git a/media-video/mkvalidator/files/mkvalidator-0.6.0-cmake4.patch b/media-video/mkvalidator/files/mkvalidator-0.6.0-cmake4.patch
new file mode 100644
index 000000000000..952cebc98439
--- /dev/null
+++ b/media-video/mkvalidator/files/mkvalidator-0.6.0-cmake4.patch
@@ -0,0 +1,10 @@
+Fix build with CMake4
+https://bugs.gentoo.org/951925
+--- a/CMakeLists.txt 2025-03-23 21:09:27.899813094 +0300
++++ b/CMakeLists.txt 2025-03-23 21:12:50.990263429 +0300
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.1.2)
++cmake_minimum_required(VERSION 3.5)
+
+ project("mkvalidator")
+
diff --git a/media-video/mkvalidator/mkvalidator-0.6.0-r1.ebuild b/media-video/mkvalidator/mkvalidator-0.6.0-r1.ebuild
new file mode 100644
index 000000000000..15ac9032515d
--- /dev/null
+++ b/media-video/mkvalidator/mkvalidator-0.6.0-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake flag-o-matic
+
+DESCRIPTION="mkvalidator is a command line tool to verify Matroska files for spec conformance"
+HOMEPAGE="https://www.matroska.org/downloads/mkvalidator.html"
+SRC_URI="https://downloads.sourceforge.net/project/matroska/${PN}/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+PATCHES=( "${FILESDIR}/${P}-cmake4.patch" )
+
+src_configure() {
+ # https://bugs.gentoo.org/949733
+ append-flags -fno-strict-aliasing
+ filter-lto
+
+ local mycmakeargs=(
+ -DCMAKE_SKIP_RPATH=ON
+ -DBUILD_SHARED_LIBS=OFF
+ )
+
+ cmake_src_configure
+}
+
+src_install() {
+ newdoc ChangeLog.txt ChangeLog
+ newdoc ReadMe.txt README
+
+ cd "${BUILD_DIR}" || die
+ dobin mkvalidator/mkvalidator
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-04-12 20:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-12 20:59 [gentoo-commits] repo/gentoo:master commit in: media-video/mkvalidator/files/, media-video/mkvalidator/ Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox