Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/mkvtoolnix/
Date: Wed, 08 Sep 2021 03:09:00
Message-Id: 1631070522.f3d9f46d46f4bbe583e7fda943fca07310b31226.sam@gentoo
1 commit: f3d9f46d46f4bbe583e7fda943fca07310b31226
2 Author: John Einar Reitan <john.einar <AT> gmail <DOT> com>
3 AuthorDate: Thu Sep 2 06:56:58 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 8 03:08:42 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3d9f46d
7
8 media-video/mkvtoolnix: bump to 61.0.0
9
10 Bug: https://bugs.gentoo.org/806791
11 Signed-off-by: John Einar Reitan <john.einar <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/22188
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 media-video/mkvtoolnix/Manifest | 1 +
16 media-video/mkvtoolnix/mkvtoolnix-61.0.0.ebuild | 123 ++++++++++++++++++++++++
17 2 files changed, 124 insertions(+)
18
19 diff --git a/media-video/mkvtoolnix/Manifest b/media-video/mkvtoolnix/Manifest
20 index 86f40e12905..2e5babb0e20 100644
21 --- a/media-video/mkvtoolnix/Manifest
22 +++ b/media-video/mkvtoolnix/Manifest
23 @@ -1,3 +1,4 @@
24 DIST mkvtoolnix-51.0.0.tar.xz 7569264 BLAKE2B c2af73c278e794739ccb7a8eb560c23e0f54643a67259c15d2e25346ac8d2b6ba65563ec6df7f7d5716be7bbee2d2c540e667b4aff7d7e6fed662c1bba54bf69 SHA512 2e91b039dbcab9afbad29c6c8e66ac305b2518319f68301a34a909fdffb02305025106368d4338abf148be5af4adfebab2eb1b5ccf0c9c0b0cef8f9e6e58a26e
25 DIST mkvtoolnix-57.0.0.tar.xz 7635780 BLAKE2B e0253dc0f48b0c98ee30590560daecbb7cef19e0f92f5baa4694c829c75f28146f7cde58a85a02575b314c2f94efc048003e51f8f6b29abeff2ca1a8d1f28a18 SHA512 583cd9148a361f0886a3e18f32597a980b5ca56d1bba95b36ca613ee291f2cb3d95a0c749a32e6fa480e8dc8f8375e2bd04a1c4b21fd15d8056d8bb2d6082b99
26 DIST mkvtoolnix-60.0.0.tar.xz 7657960 BLAKE2B 094c13ac7e73e79f3cc7eae0768625482c4808a4323239a93de34d1406583bfe676d71855dd1f7eae9a8a0ff0a7badf50c04c71f9d2fbb4afd9ff5f05b9353ea SHA512 90bbb95c3a7a91bd47f76aaec9459a1f6f26a381ff03db1047c0fdb41cb87bdd96160c448152357a2b306adbd26f478112ac5d5e8215ee37331a15fc89fa43c3
27 +DIST mkvtoolnix-61.0.0.tar.xz 7662500 BLAKE2B de9d73658fe779b34b21fded8e6676b76fed5ce5ecd598aeff12e8c4f120353f63413f260bacc30c0a102a4eb6d4b907feaabdd84d80d20469a3ae8341bce5f1 SHA512 9f35b5af8784eb4b92b437f41b5df677aa7fc859827eaef4d0e2d8531ad9908331f70a852c7e6e965a5f8cec47b38c6c91b8fbdbcaee0edca54f8cbb000ba582
28
29 diff --git a/media-video/mkvtoolnix/mkvtoolnix-61.0.0.ebuild b/media-video/mkvtoolnix/mkvtoolnix-61.0.0.ebuild
30 new file mode 100644
31 index 00000000000..4947246fe52
32 --- /dev/null
33 +++ b/media-video/mkvtoolnix/mkvtoolnix-61.0.0.ebuild
34 @@ -0,0 +1,123 @@
35 +# Copyright 1999-2021 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +inherit autotools flag-o-matic toolchain-funcs multiprocessing qmake-utils xdg
41 +
42 +if [[ ${PV} == *9999 ]] ; then
43 + EGIT_REPO_URI="https://gitlab.com/mbunkus/mkvtoolnix.git"
44 + EGIT_SUBMODULES=()
45 + inherit git-r3
46 +else
47 + SRC_URI="https://mkvtoolnix.download/sources/${P}.tar.xz"
48 + KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
49 +fi
50 +
51 +DESCRIPTION="Tools to create, alter, and inspect Matroska files"
52 +HOMEPAGE="https://mkvtoolnix.download/ https://gitlab.com/mbunkus/mkvtoolnix"
53 +
54 +LICENSE="GPL-2"
55 +SLOT="0"
56 +IUSE="dbus debug dvd nls pch test gui"
57 +RESTRICT="!test? ( test )"
58 +
59 +# check NEWS.md for build system changes entries for boost/libebml/libmatroska
60 +# version requirement updates and other packaging info
61 +RDEPEND="
62 + >=dev-libs/boost-1.66:=
63 + >=dev-libs/libebml-1.4.0:=
64 + >=dev-libs/libfmt-6.1.0:=
65 + dev-libs/libpcre2:=
66 + dev-libs/pugixml:=
67 + media-libs/flac:=
68 + >=media-libs/libmatroska-1.6.3:=
69 + media-libs/libogg:=
70 + media-libs/libvorbis:=
71 + sys-apps/file
72 + sys-libs/zlib
73 + dvd? ( media-libs/libdvdread:= )
74 + dev-qt/qtcore:5
75 + gui? (
76 + dev-qt/qtgui:5
77 + dev-qt/qtnetwork:5
78 + dev-qt/qtwidgets:5
79 + dev-qt/qtconcurrent:5
80 + dev-qt/qtmultimedia:5
81 + )
82 + app-text/cmark:0=
83 + dbus? ( dev-qt/qtdbus:5 )
84 +"
85 +DEPEND="${RDEPEND}
86 + dev-cpp/nlohmann_json
87 + dev-libs/utfcpp
88 + test? ( dev-cpp/gtest )
89 +"
90 +BDEPEND="
91 + app-text/docbook-xsl-stylesheets
92 + dev-libs/libxslt
93 + dev-ruby/rake
94 + virtual/pkgconfig
95 + nls? (
96 + sys-devel/gettext
97 + app-text/po4a
98 + )
99 +"
100 +
101 +PATCHES=( "${FILESDIR}"/mkvtoolnix-58.0.0-qt5dbus.patch )
102 +
103 +src_prepare() {
104 + xdg_src_prepare
105 + if [[ ${PV} == *9999 ]]; then
106 + ./autogen.sh || die
107 + fi
108 +
109 + # https://bugs.gentoo.org/692018
110 + sed -e 's/pandoc/diSaBlEd/' -i ac/pandoc.m4 || die
111 +
112 + eautoreconf
113 +
114 + # remove bundled libs
115 + rm -r lib/{fmt,libebml,libmatroska,nlohmann-json,pugixml,utf8-cpp} || die
116 +}
117 +
118 +src_configure() {
119 + # bug 692322, use system dev-libs/utfcpp
120 + append-cppflags -I"${ESYSROOT}"/usr/include/utf8cpp
121 +
122 + local myeconfargs=(
123 + $(use_enable debug)
124 + $(usex pch "" --disable-precompiled-headers)
125 + $(use_enable dbus)
126 + $(use_enable gui)
127 + --disable-qt6
128 + --enable-qt5
129 + --with-qmake=$(qt5_get_bindir)/qmake
130 + $(use_with dvd dvdread)
131 + $(use_with nls gettext)
132 + $(usex nls "" --with-po4a-translate=false)
133 + --disable-update-check
134 + --disable-optimization
135 + --with-boost="${ESYSROOT}"/usr
136 + --with-boost-libdir="${ESYSROOT}"/usr/$(get_libdir)
137 + )
138 +
139 + econf "${myeconfargs[@]}"
140 +}
141 +
142 +src_compile() {
143 + rake V=1 -j$(makeopts_jobs) || die
144 +}
145 +
146 +src_test() {
147 + rake V=1 -j$(makeopts_jobs) tests:unit || die
148 + rake V=1 -j$(makeopts_jobs) tests:run_unit || die
149 +}
150 +
151 +src_install() {
152 + DESTDIR="${D}" rake -j$(makeopts_jobs) install || die
153 +
154 + einstalldocs
155 + dodoc NEWS.md
156 + doman doc/man/*.1
157 +}