Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/mediainfo/
Date: Thu, 02 Nov 2017 22:50:38
Message-Id: 1509662795.6fc0ff3069aee980593b2323ff34cc0da014a9b2.radhermit@gentoo
1 commit: 6fc0ff3069aee980593b2323ff34cc0da014a9b2
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 2 21:53:52 2017 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 2 22:46:35 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fc0ff30
7
8 media-video/mediainfo: version bump to 17.10
9
10 media-video/mediainfo/Manifest | 1 +
11 media-video/mediainfo/mediainfo-17.10.ebuild | 71 ++++++++++++++++++++++++++++
12 2 files changed, 72 insertions(+)
13
14 diff --git a/media-video/mediainfo/Manifest b/media-video/mediainfo/Manifest
15 index b518a84482d..bbf72d5fdf5 100644
16 --- a/media-video/mediainfo/Manifest
17 +++ b/media-video/mediainfo/Manifest
18 @@ -1 +1,2 @@
19 DIST mediainfo_0.7.99.tar.xz 1327592 SHA256 ca308d3fd1ded0baad62be2388f65c98949ab9111589b5561c8f0f9c3537ed88 SHA512 7e50d0757c18e0eb07955a440250ca40fb5ee28dd4565528f8797f842611955942a4a6ff5b3c8736d4e24fe503272b2cd93de55187b2c3bca2c99021fe0330fa WHIRLPOOL 0ac9d9042a5382ae9b3a98879e407013fa593bfc01559834ace61f5b1b9aabde54b31f62a407c01956541cc71e46d879b0fcf57fedd2f5cb46fb7812b0cb5a9f
20 +DIST mediainfo_17.10.tar.xz 1319988 SHA256 0c1130cfa1878592f1225097a1814126378abbcc33926cdfff6bcc99422670fb SHA512 8e24aa71054c8887dc9fc6f9ddb188dfcf61afa37549aed77f77cd13f31cf1ac2e56c2f4e5901cc4ab9d52403740d82b8081898515b4f81944566941906b63f2 WHIRLPOOL bd2af8e4583b4f64cd65dc74d7f3d3f2491f75dc49825edf496235c82302efebcc84e10dcd76bfa7ae1e9d3d5251776ef69c094058379042f9bee5f30c7738af
21
22 diff --git a/media-video/mediainfo/mediainfo-17.10.ebuild b/media-video/mediainfo/mediainfo-17.10.ebuild
23 new file mode 100644
24 index 00000000000..f3350adbb93
25 --- /dev/null
26 +++ b/media-video/mediainfo/mediainfo-17.10.ebuild
27 @@ -0,0 +1,71 @@
28 +# Copyright 1999-2017 Gentoo Foundation
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI=6
32 +WX_GTK_VER="3.0"
33 +
34 +inherit eutils autotools wxwidgets
35 +
36 +DESCRIPTION="MediaInfo supplies technical and tag information about media files"
37 +HOMEPAGE="https://mediaarea.net/mediainfo/ https://github.com/MediaArea/MediaInfo"
38 +SRC_URI="https://mediaarea.net/download/source/${PN}/${PV}/${P/-/_}.tar.xz"
39 +
40 +LICENSE="BSD-2"
41 +SLOT="0"
42 +KEYWORDS="~amd64 ~x86"
43 +IUSE="curl mms wxwidgets"
44 +
45 +RDEPEND="sys-libs/zlib
46 + >=media-libs/libzen-0.4.37
47 + ~media-libs/lib${P}[curl=,mms=]
48 + wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )"
49 +DEPEND="${RDEPEND}
50 + virtual/pkgconfig"
51 +
52 +S=${WORKDIR}/MediaInfo
53 +
54 +pkg_setup() {
55 + TARGETS="CLI"
56 + use wxwidgets && TARGETS+=" GUI"
57 +}
58 +
59 +src_prepare() {
60 + eapply_user
61 +
62 + local target
63 + for target in ${TARGETS}; do
64 + cd "${S}"/Project/GNU/${target}
65 + sed -i -e "s:-O2::" configure.ac
66 + eautoreconf
67 + done
68 +}
69 +
70 +src_configure() {
71 + local target
72 + for target in ${TARGETS}; do
73 + cd "${S}"/Project/GNU/${target}
74 + local args=""
75 + [[ ${target} == "GUI" ]] && args="--with-wxwidgets --with-wx-gui"
76 + econf ${args}
77 + done
78 +}
79 +
80 +src_compile() {
81 + local target
82 + for target in ${TARGETS}; do
83 + cd "${S}"/Project/GNU/${target}
84 + default
85 + done
86 +}
87 +src_install() {
88 + local target
89 + for target in ${TARGETS}; do
90 + cd "${S}"/Project/GNU/${target}
91 + default
92 + dodoc "${S}"/History_${target}.txt
93 + if [[ ${target} == "GUI" ]]; then
94 + newicon "${S}"/Source/Resource/Image/MediaInfo.png ${PN}.png
95 + make_desktop_entry ${PN}-gui MediaInfo ${PN} "AudioVideo;GTK"
96 + fi
97 + done
98 +}