1 |
commit: 47675f57b279b0e994178dfef192f7028a4ef96a |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 15 11:36:03 2019 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 15 11:36:03 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47675f57 |
7 |
|
8 |
media-video/mkvtoolnix: Update live ebuild |
9 |
|
10 |
Package-Manager: Portage-2.3.76, Repoman-2.3.17 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
media-video/mkvtoolnix/mkvtoolnix-9999.ebuild | 60 +++++++++++++-------------- |
14 |
1 file changed, 30 insertions(+), 30 deletions(-) |
15 |
|
16 |
diff --git a/media-video/mkvtoolnix/mkvtoolnix-9999.ebuild b/media-video/mkvtoolnix/mkvtoolnix-9999.ebuild |
17 |
index c91b87e7c61..5fa94680172 100644 |
18 |
--- a/media-video/mkvtoolnix/mkvtoolnix-9999.ebuild |
19 |
+++ b/media-video/mkvtoolnix/mkvtoolnix-9999.ebuild |
20 |
@@ -1,15 +1,17 @@ |
21 |
# Copyright 1999-2019 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
-EAPI=6 |
25 |
-inherit toolchain-funcs versionator multiprocessing qmake-utils xdg |
26 |
+EAPI=7 |
27 |
|
28 |
-if [[ ${PV} == "9999" ]] ; then |
29 |
+inherit flag-o-matic toolchain-funcs multiprocessing qmake-utils xdg |
30 |
+ |
31 |
+if [[ ${PV} == *9999 ]] ; then |
32 |
EGIT_REPO_URI="https://gitlab.com/mbunkus/mkvtoolnix.git" |
33 |
- inherit git-r3 |
34 |
+ EGIT_SUBMODULES=() |
35 |
+ inherit autotools git-r3 |
36 |
else |
37 |
SRC_URI="https://mkvtoolnix.download/sources/${P}.tar.xz" |
38 |
- KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
39 |
+ KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
40 |
fi |
41 |
|
42 |
DESCRIPTION="Tools to create, alter, and inspect Matroska files" |
43 |
@@ -22,14 +24,14 @@ IUSE="debug nls pch test qt5" |
44 |
# check NEWS.md for build system changes entries for boost/libebml/libmatroska |
45 |
# version requirement updates and other packaging info |
46 |
RDEPEND=" |
47 |
- >=dev-libs/libfmt-5.3.0:= |
48 |
- >=dev-libs/boost-1.49.0:= |
49 |
+ dev-libs/boost:= |
50 |
>=dev-libs/libebml-1.3.7:= |
51 |
- dev-libs/pugixml |
52 |
- media-libs/flac |
53 |
+ >=dev-libs/libfmt-5.3.0:= |
54 |
+ dev-libs/pugixml:= |
55 |
+ media-libs/flac:= |
56 |
>=media-libs/libmatroska-1.5.0:= |
57 |
- media-libs/libogg |
58 |
- media-libs/libvorbis |
59 |
+ media-libs/libogg:= |
60 |
+ media-libs/libvorbis:= |
61 |
sys-apps/file |
62 |
sys-libs/zlib |
63 |
qt5? ( |
64 |
@@ -46,35 +48,33 @@ RDEPEND=" |
65 |
DEPEND="${RDEPEND} |
66 |
dev-cpp/nlohmann_json |
67 |
dev-libs/utfcpp |
68 |
+ test? ( dev-cpp/gtest ) |
69 |
+" |
70 |
+BDEPEND=" |
71 |
+ app-text/docbook-xsl-stylesheets |
72 |
+ dev-libs/libxslt |
73 |
dev-ruby/rake |
74 |
virtual/pkgconfig |
75 |
- dev-libs/libxslt |
76 |
- app-text/docbook-xsl-stylesheets |
77 |
nls? ( |
78 |
sys-devel/gettext |
79 |
app-text/po4a |
80 |
) |
81 |
- test? ( dev-cpp/gtest ) |
82 |
" |
83 |
|
84 |
-DOCS="AUTHORS NEWS.md README.md" |
85 |
- |
86 |
-pkg_pretend() { |
87 |
- # https://bugs.gentoo.org/419257 |
88 |
- local ver=4.6 |
89 |
- local msg="You need at least GCC ${ver}.x for C++11 range-based 'for' and nullptr support." |
90 |
- if ! version_is_at_least ${ver} $(gcc-version); then |
91 |
- eerror ${msg} |
92 |
- die ${msg} |
93 |
- fi |
94 |
-} |
95 |
- |
96 |
src_prepare() { |
97 |
xdg_src_prepare |
98 |
- [[ ${PV} == "9999" ]] && { ./autogen.sh || die; } |
99 |
+ if [[ ${PV} == *9999 ]]; then |
100 |
+ ./autogen.sh || die |
101 |
+ fi |
102 |
+ |
103 |
+ # remove bundled libs |
104 |
+ rm -r lib/{fmt,libebml,libmatroska,nlohmann-json,pugixml,utf8-cpp} || die |
105 |
} |
106 |
|
107 |
src_configure() { |
108 |
+ # bug 692322, use system dev-libs/utfcpp |
109 |
+ append-cppflags -I"${ESYSROOT}"/usr/include/utf8cpp |
110 |
+ |
111 |
local myeconfargs=( |
112 |
$(use_enable debug) |
113 |
$(usex pch "" --disable-precompiled-headers) |
114 |
@@ -83,9 +83,8 @@ src_configure() { |
115 |
$(usex nls "" --with-po4a-translate=false) |
116 |
--disable-update-check |
117 |
--disable-optimization |
118 |
- --docdir="${EPREFIX}"/usr/share/doc/${PF} |
119 |
- --with-boost="${EPREFIX}"/usr |
120 |
- --with-boost-libdir="${EPREFIX}"/usr/$(get_libdir) |
121 |
+ --with-boost="${ESYSROOT}"/usr |
122 |
+ --with-boost-libdir="${ESYSROOT}"/usr/$(get_libdir) |
123 |
) |
124 |
|
125 |
if use qt5 ; then |
126 |
@@ -114,5 +113,6 @@ src_install() { |
127 |
DESTDIR="${D}" rake -j$(makeopts_jobs) install || die |
128 |
|
129 |
einstalldocs |
130 |
+ dodoc NEWS.md |
131 |
doman doc/man/*.1 |
132 |
} |