Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/mkvtoolnix/
Date: Tue, 06 Oct 2015 09:43:01
Message-Id: 1444124564.74c408666e44493ca457353d89b1a4b7e432c908.aballier@gentoo
1 commit: 74c408666e44493ca457353d89b1a4b7e432c908
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 6 09:42:10 2015 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 6 09:42:44 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74c40866
7
8 media-video/mkvtoolnix: bump to 8.4.0.
9
10 Package-Manager: portage-2.2.22
11
12 media-video/mkvtoolnix/Manifest | 1 +
13 media-video/mkvtoolnix/mkvtoolnix-8.4.0.ebuild | 110 +++++++++++++++++++++++++
14 2 files changed, 111 insertions(+)
15
16 diff --git a/media-video/mkvtoolnix/Manifest b/media-video/mkvtoolnix/Manifest
17 index 65a84e0..b575692 100644
18 --- a/media-video/mkvtoolnix/Manifest
19 +++ b/media-video/mkvtoolnix/Manifest
20 @@ -1,3 +1,4 @@
21 DIST mkvtoolnix-6.6.0.tar.xz 5174424 SHA256 cb1f965617fe064cf78457d3fbd0685eb31ae5b7e205cf4c8e74b6f27f3399e3 SHA512 c86f10a0a919e6d28c2587b60663c38713cfa6ca0a5188524b81af2fd60e4ea626a01431d29c6ae5885eae05d71af93d857986c5008aec4963dacc3ead9dc26f WHIRLPOOL 55a15bb2fdb62af85e189c39b1a1391d33eb08b4ba116fc307965be6817a944b21d18c034b9a3da16a6e84e93544dbd59f3c7fe9406ab454e15cf8ee1eb815c3
22 DIST mkvtoolnix-8.2.0.tar.xz 5856988 SHA256 eb6d3d7a0254bb4326dccc9983418801783198cdf4a259f31261dab4e843a5c4 SHA512 200fad08f6912081d7aabbae9330dc41b90af8d6fdce592090b9fedf2325a91f70d3a85ff40b03b57b0682a075050b6b73307872c1e716e8261849c3fb97968b WHIRLPOOL 1b25cd8913eb02018d62de369171ee1a48d31cbce6684c0c7febd2f88c3286bbf386c825ddeae54ef411dc14cc128c9e833408f9b0ac9cb1d5e525ba34aaa4ae
23 DIST mkvtoolnix-8.3.0.tar.xz 5863384 SHA256 87bd82222995d35c310a426ed43e0b27cbfefa0caadcbcca8296787314affc37 SHA512 fb3ac11480c20ae360fef9081991876ef2d7a717f24ec631bb8482ee7d22f79164aafeaf561dee503f1c0a83fe3ed6db319b420c34d638450aada762e6eb00c0 WHIRLPOOL b3cd3f4785c891c75eac3754136aa0b709ff0e784eea6d0e915478eea6fbdbe7132c56a997a007ba6d690649b6caaae46a8b45ae055aab7ae557486d99aab417
24 +DIST mkvtoolnix-8.4.0.tar.xz 3234284 SHA256 f6a5506d14a0b16abb3765d6f78cded0267e01096926b30e8f72df9d30aaf878 SHA512 ab9ab49baf06a8ef713872a09c58fdb1560628dbe3b2b661d809972f56a36c751a390a78ae260624510963b92e177d090088030bb96f9ab9e96e1a372772d22f WHIRLPOOL 811a0466413bdba84959c5ae84d637aba4371018ee3deed70d65f24472c0bf6a714003574efb4e4dcdc3bfb1b3c48595a347ab0bcdd935a9b49e2f1ab4c36c58
25
26 diff --git a/media-video/mkvtoolnix/mkvtoolnix-8.4.0.ebuild b/media-video/mkvtoolnix/mkvtoolnix-8.4.0.ebuild
27 new file mode 100644
28 index 0000000..6872d50
29 --- /dev/null
30 +++ b/media-video/mkvtoolnix/mkvtoolnix-8.4.0.ebuild
31 @@ -0,0 +1,110 @@
32 +# Copyright 1999-2015 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=5
37 +WX_GTK_VER="3.0"
38 +inherit eutils multilib toolchain-funcs versionator multiprocessing autotools
39 +
40 +DESCRIPTION="Tools to create, alter, and inspect Matroska files"
41 +HOMEPAGE="http://www.bunkus.org/videotools/mkvtoolnix"
42 +SRC_URI="http://www.bunkus.org/videotools/mkvtoolnix/sources/${P}.tar.xz"
43 +
44 +LICENSE="GPL-2"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
47 +IUSE="curl debug pch qt5"
48 +
49 +ruby_atom() {
50 + local ruby_slot=${1/ruby/}
51 + ruby_slot="${ruby_slot:0:1}.${ruby_slot:1:2}"
52 + echo "dev-lang/ruby:${ruby_slot}"
53 +}
54 +
55 +# hacks to avoid using the ruby eclasses since this requires something similar
56 +# to the python-any-r1 eclass for ruby which currently doesn't exist
57 +RUBY_IMPLS=( ruby22 ruby21 ruby20 )
58 +RUBY_BDEPS="$(for ruby_impl in "${RUBY_IMPLS[@]}"; do
59 + echo "( $(ruby_atom ${ruby_impl}) virtual/rubygems[ruby_targets_${ruby_impl}] )"; done)"
60 +
61 +RDEPEND="
62 + >=dev-libs/boost-1.46.0:=
63 + >=dev-libs/libebml-1.3.1:=
64 + dev-libs/pugixml
65 + media-libs/flac
66 + >=media-libs/libmatroska-1.4.2:=
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/qtgui:5
74 + dev-qt/qtnetwork:5
75 + dev-qt/qtwidgets:5
76 + )
77 +"
78 +DEPEND="${RDEPEND}
79 + || ( ${RUBY_BDEPS} )
80 + sys-devel/gettext
81 + virtual/pkgconfig
82 +"
83 +
84 +pkg_pretend() {
85 + # https://bugs.gentoo.org/419257
86 + local ver=4.6
87 + local msg="You need at least GCC ${ver}.x for C++11 range-based 'for' and nullptr support."
88 + if ! version_is_at_least ${ver} $(gcc-version); then
89 + eerror ${msg}
90 + die ${msg}
91 + fi
92 +}
93 +
94 +src_prepare() {
95 + local ruby_impl
96 + for ruby_impl in "${RUBY_IMPLS[@]}"; do
97 + if has_version "$(ruby_atom ${ruby_impl})"; then
98 + export RUBY=${ruby_impl}
99 + break
100 + fi
101 + done
102 + [[ -z ${RUBY} ]] && die "No available ruby implementations to build with"
103 +
104 + epatch_user
105 + eautoreconf
106 +}
107 +
108 +src_configure() {
109 + local myconf
110 +
111 + if use qt5 ; then
112 + # ac/qt5.m4 finds default Qt version set by qtchooser, bug #532600
113 + myconf+=(
114 + --with-moc=/usr/$(get_libdir)/qt5/bin/moc
115 + --with-uic=/usr/$(get_libdir)/qt5/bin/uic
116 + --with-rcc=/usr/$(get_libdir)/qt5/bin/rcc
117 + )
118 + fi
119 +
120 + econf \
121 + $(use_enable debug) \
122 + $(use_enable qt5 qt) \
123 + $(use_with curl) \
124 + $(usex pch "" --disable-precompiled-headers) \
125 + "${myconf[@]}" \
126 + --disable-optimization \
127 + --docdir="${EPREFIX}"/usr/share/doc/${PF} \
128 + --with-boost="${EPREFIX}"/usr \
129 + --with-boost-libdir="${EPREFIX}"/usr/$(get_libdir)
130 +}
131 +
132 +src_compile() {
133 + "${RUBY}" ./drake V=1 -j$(makeopts_jobs) || die
134 +}
135 +
136 +src_install() {
137 + DESTDIR="${D}" "${RUBY}" ./drake -j$(makeopts_jobs) install || die
138 +
139 + dodoc AUTHORS ChangeLog README.md
140 + doman doc/man/*.1
141 +}