mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-08 22:25:42 +02:00
39 lines
931 B
Bash
39 lines
931 B
Bash
# 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
|
|
# https://github.com/Matroska-Org/foundation-source/issues/145
|
|
# https://github.com/Matroska-Org/foundation-source/pull/153
|
|
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
|
|
}
|