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/mediainfo/
Date: Sun, 02 Jan 2022 06:16:53
Message-Id: 1641104166.036af3bb0a04b78b809465f596d23bd96351068a.sam@gentoo
1 commit: 036af3bb0a04b78b809465f596d23bd96351068a
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 2 06:15:14 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 2 06:16:06 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=036af3bb
7
8 media-video/mediainfo: add 21.09
9
10 Bug: https://bugs.gentoo.org/778992
11 Closes: https://bugs.gentoo.org/794925
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 media-video/mediainfo/Manifest | 1 +
15 media-video/mediainfo/mediainfo-21.09.ebuild | 86 ++++++++++++++++++++++++++++
16 2 files changed, 87 insertions(+)
17
18 diff --git a/media-video/mediainfo/Manifest b/media-video/mediainfo/Manifest
19 index 0d99235cd450..b36aa99ee467 100644
20 --- a/media-video/mediainfo/Manifest
21 +++ b/media-video/mediainfo/Manifest
22 @@ -1 +1,2 @@
23 DIST mediainfo_20.09.tar.xz 1984148 BLAKE2B 6926d9ce787b9f9e5c07fe0ddf98e186139ea25c7ab6b3573dc1732850a7f98aeefdeca2157fdcad83d652332705028df12a1cf1e6377f9c1e23b7865578cfd8 SHA512 b6c8bf661585fa6b8e82c7f4bafacae8505078c5c57bc1c703ed16ac237dad0829569dd33fdaaadccd394bdd93088d9b71e5ad2c2294f75aa641004ec91feca9
24 +DIST mediainfo_21.09.tar.xz 1992000 BLAKE2B 8deb996c84ededd390a4fb91f77a4dd0ba60f3a165aefde2fe862720a7a3158888ba56f911533c347703e0a722f05b94edc5f649edef26031b519fc7bd4012cd SHA512 81545c936ec5f17f94246b2cd5343afd105d0b0791f151689fbecdb084778dd4e84da79f47529f16b8383542894819af995ec608588fc6d9f45e9be38a4304db
25
26 diff --git a/media-video/mediainfo/mediainfo-21.09.ebuild b/media-video/mediainfo/mediainfo-21.09.ebuild
27 new file mode 100644
28 index 000000000000..a0c63dc542e0
29 --- /dev/null
30 +++ b/media-video/mediainfo/mediainfo-21.09.ebuild
31 @@ -0,0 +1,86 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +# Please bump with media-libs/libmediainfo!
38 +
39 +WX_GTK_VER="3.0-gtk3"
40 +inherit xdg-utils autotools wxwidgets
41 +
42 +DESCRIPTION="MediaInfo supplies technical and tag information about media files"
43 +HOMEPAGE="https://mediaarea.net/mediainfo/ https://github.com/MediaArea/MediaInfo"
44 +SRC_URI="https://mediaarea.net/download/source/${PN}/${PV}/${P/-/_}.tar.xz"
45 +S="${WORKDIR}/MediaInfo"
46 +
47 +LICENSE="BSD-2"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +IUSE="curl mms wxwidgets"
51 +
52 +RDEPEND="~media-libs/libmediainfo-${PV}[curl=,mms=]
53 + >=media-libs/libzen-0.4.37
54 + sys-libs/zlib
55 + wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )"
56 +DEPEND="${RDEPEND}"
57 +BDEPEND="virtual/pkgconfig"
58 +
59 +pkg_setup() {
60 + TARGETS="CLI"
61 +
62 + if use wxwidgets; then
63 + TARGETS+=" GUI"
64 + setup-wxwidgets
65 + fi
66 +}
67 +
68 +src_prepare() {
69 + default
70 +
71 + local target
72 + for target in ${TARGETS}; do
73 + cd "${S}"/Project/GNU/${target} || die
74 + sed -i -e "s:-O2::" configure.ac || die
75 + eautoreconf
76 + done
77 +}
78 +
79 +src_configure() {
80 + local target
81 +
82 + for target in ${TARGETS}; do
83 + cd "${S}"/Project/GNU/${target} || die
84 + local args=""
85 + [[ ${target} == "GUI" ]] && args="--with-wxwidgets --with-wx-gui"
86 + econf ${args}
87 + done
88 +}
89 +
90 +src_compile() {
91 + local target
92 +
93 + for target in ${TARGETS}; do
94 + cd "${S}"/Project/GNU/${target} || die
95 + default
96 + done
97 +}
98 +
99 +src_install() {
100 + local target
101 +
102 + for target in ${TARGETS}; do
103 + cd "${S}"/Project/GNU/${target} || die
104 + default
105 + dodoc "${S}"/History_${target}.txt
106 + done
107 +}
108 +
109 +pkg_postinst() {
110 + xdg_icon_cache_update
111 + xdg_desktop_database_update
112 +}
113 +
114 +pkg_postrm() {
115 + xdg_icon_cache_update
116 + xdg_desktop_database_update
117 +}