Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/mkvtoolnix/
Date: Sun, 15 Sep 2019 11:36:33
Message-Id: 1568547366.a1d52f4db6dc9837c834ac676b602142e83a3ced.soap@gentoo
1 commit: a1d52f4db6dc9837c834ac676b602142e83a3ced
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 15 11:36:06 2019 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 15 11:36:06 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1d52f4d
7
8 media-video/mkvtoolnix: Version bump to 37.0.0
9
10 * Remove C++ compiler check for ancient versions of GCC
11
12 Bug: https://bugs.gentoo.org/662788
13 Bug: https://bugs.gentoo.org/692322
14 Package-Manager: Portage-2.3.76, Repoman-2.3.17
15 Signed-off-by: David Seifert <soap <AT> gentoo.org>
16
17 media-video/mkvtoolnix/Manifest | 1 +
18 media-video/mkvtoolnix/mkvtoolnix-37.0.0.ebuild | 118 ++++++++++++++++++++++++
19 2 files changed, 119 insertions(+)
20
21 diff --git a/media-video/mkvtoolnix/Manifest b/media-video/mkvtoolnix/Manifest
22 index bbb2f025093..f97e0a11504 100644
23 --- a/media-video/mkvtoolnix/Manifest
24 +++ b/media-video/mkvtoolnix/Manifest
25 @@ -1 +1,2 @@
26 DIST mkvtoolnix-35.0.0.tar.xz 7297244 BLAKE2B 9a7cd015b00fe46f165903b8b6f9317489548aa9a352c85727296ee0638506336028231b115a9270388a4ede1a088a4bdba16156600341c51bd5a2ae557b181f SHA512 aa109be9da3f0bd119d9315b9ea136d3c1532d0f351c5a052dcc7ad67a4dcec9d8fec69a0c9358790abfcb6eeaee47fad4af2a0506bef39cfd5c8466f90bdf98
27 +DIST mkvtoolnix-37.0.0.tar.xz 7307984 BLAKE2B 4ee59d6ed186e7181733f5723fc8ab5abed5056c7562cf646b123f0e4d9e6b191176feab549231d8210b669d4cec36aaa6e33bf1b666b92ba471696d83e98c8e SHA512 196f8d12f36d95d077b8afeda4d651fe7fe5a0d6c9e71a49608732cbf6d68052681ec855875ed4a79e8aa0589502f4475a4306eaa9464523288a1af740b84df8
28
29 diff --git a/media-video/mkvtoolnix/mkvtoolnix-37.0.0.ebuild b/media-video/mkvtoolnix/mkvtoolnix-37.0.0.ebuild
30 new file mode 100644
31 index 00000000000..5fa94680172
32 --- /dev/null
33 +++ b/media-video/mkvtoolnix/mkvtoolnix-37.0.0.ebuild
34 @@ -0,0 +1,118 @@
35 +# Copyright 1999-2019 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +inherit 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 autotools 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="debug nls pch test qt5"
57 +
58 +# check NEWS.md for build system changes entries for boost/libebml/libmatroska
59 +# version requirement updates and other packaging info
60 +RDEPEND="
61 + dev-libs/boost:=
62 + >=dev-libs/libebml-1.3.7:=
63 + >=dev-libs/libfmt-5.3.0:=
64 + dev-libs/pugixml:=
65 + media-libs/flac:=
66 + >=media-libs/libmatroska-1.5.0:=
67 + media-libs/libogg:=
68 + media-libs/libvorbis:=
69 + sys-apps/file
70 + sys-libs/zlib
71 + qt5? (
72 + dev-qt/qtcore:5
73 + dev-qt/qtdbus:5
74 + dev-qt/qtgui:5
75 + dev-qt/qtnetwork:5
76 + dev-qt/qtwidgets:5
77 + dev-qt/qtconcurrent:5
78 + dev-qt/qtmultimedia:5
79 + app-text/cmark:0=
80 + )
81 +"
82 +DEPEND="${RDEPEND}
83 + dev-cpp/nlohmann_json
84 + dev-libs/utfcpp
85 + test? ( dev-cpp/gtest )
86 +"
87 +BDEPEND="
88 + app-text/docbook-xsl-stylesheets
89 + dev-libs/libxslt
90 + dev-ruby/rake
91 + virtual/pkgconfig
92 + nls? (
93 + sys-devel/gettext
94 + app-text/po4a
95 + )
96 +"
97 +
98 +src_prepare() {
99 + xdg_src_prepare
100 + if [[ ${PV} == *9999 ]]; then
101 + ./autogen.sh || die
102 + fi
103 +
104 + # remove bundled libs
105 + rm -r lib/{fmt,libebml,libmatroska,nlohmann-json,pugixml,utf8-cpp} || die
106 +}
107 +
108 +src_configure() {
109 + # bug 692322, use system dev-libs/utfcpp
110 + append-cppflags -I"${ESYSROOT}"/usr/include/utf8cpp
111 +
112 + local myeconfargs=(
113 + $(use_enable debug)
114 + $(usex pch "" --disable-precompiled-headers)
115 + $(use_enable qt5 qt)
116 + $(use_with nls gettext)
117 + $(usex nls "" --with-po4a-translate=false)
118 + --disable-update-check
119 + --disable-optimization
120 + --with-boost="${ESYSROOT}"/usr
121 + --with-boost-libdir="${ESYSROOT}"/usr/$(get_libdir)
122 + )
123 +
124 + if use qt5 ; then
125 + # ac/qt5.m4 finds default Qt version set by qtchooser, bug #532600
126 + myeconfargs+=(
127 + --with-moc=$(qt5_get_bindir)/moc
128 + --with-uic=$(qt5_get_bindir)/uic
129 + --with-rcc=$(qt5_get_bindir)/rcc
130 + --with-qmake=$(qt5_get_bindir)/qmake
131 + )
132 + fi
133 +
134 + econf "${myeconfargs[@]}"
135 +}
136 +
137 +src_compile() {
138 + rake V=1 -j$(makeopts_jobs) || die
139 +}
140 +
141 +src_test() {
142 + rake V=1 -j$(makeopts_jobs) tests:unit || die
143 + rake V=1 -j$(makeopts_jobs) tests:run_unit || die
144 +}
145 +
146 +src_install() {
147 + DESTDIR="${D}" rake -j$(makeopts_jobs) install || die
148 +
149 + einstalldocs
150 + dodoc NEWS.md
151 + doman doc/man/*.1
152 +}