public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/mkvalidator/files/, media-video/mkvalidator/
Date: Sat, 12 Apr 2025 20:59:39 +0000 (UTC)	[thread overview]
Message-ID: <1744491458.9315b0d65e58dc48d1fc1ce3ee36f388625e1bf1.sam@gentoo> (raw)

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
+}


                 reply	other threads:[~2025-04-12 20:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1744491458.9315b0d65e58dc48d1fc1ce3ee36f388625e1bf1.sam@gentoo \
    --to=sam@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