diff options
author | Tim Harder <radhermit@gentoo.org> | 2020-04-05 02:13:33 -0600 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2020-04-05 04:02:48 -0600 |
commit | 3c46967b24ac8acabd11bbe13726c0d50724d5ff (patch) | |
tree | 44c8a0f8fb5d01a6e9084bc8fb3a72b7c098390f /media-video/mediainfo | |
parent | media-libs/libmediainfo: version bump to 20.03 (diff) | |
download | gentoo-3c46967b24ac8acabd11bbe13726c0d50724d5ff.tar.gz gentoo-3c46967b24ac8acabd11bbe13726c0d50724d5ff.tar.bz2 gentoo-3c46967b24ac8acabd11bbe13726c0d50724d5ff.zip |
media-video/mediainfo: version bump to 20.03
Signed-off-by: Tim Harder <radhermit@gentoo.org>
Diffstat (limited to 'media-video/mediainfo')
-rw-r--r-- | media-video/mediainfo/Manifest | 1 | ||||
-rw-r--r-- | media-video/mediainfo/mediainfo-20.03.ebuild | 80 |
2 files changed, 81 insertions, 0 deletions
diff --git a/media-video/mediainfo/Manifest b/media-video/mediainfo/Manifest index 78a1a2cc5fd6..0d15e498781a 100644 --- a/media-video/mediainfo/Manifest +++ b/media-video/mediainfo/Manifest @@ -1 +1,2 @@ DIST mediainfo_19.09.tar.xz 1906920 BLAKE2B 926a13dd4b059eb613acf89b3b3e12918a86ad45c8551948be2d55478bbe94a93a3fdf7a49fbc087e44fd81232a9fa85cb6dfbd25efb11b9997b1f90b49090e4 SHA512 ddcfa92d822a28fa804d5bddc0d29bdb8cff3779b924c2caef0e59b0f79f857a4140dc94bd2ed9158954f6400778572975ac63f45ee2b87664e3e3b5ed9327a0 +DIST mediainfo_20.03.tar.xz 1983420 BLAKE2B d0f7557c231bc1cca261e8f002d060b0df4c2063cc32185c315ccc08a94e00fe9f5c0116f8ea65ce1a9df9f159d119264046a9bb607bd25a3b6231092c541799 SHA512 608b86f50139b0cbb21331922447b85dc2012b133915696ca9fceb7f524895f779c8cbfaccfa351c5b79c330587bc48d0f419f4908977fdc3eb4cd0490580399 diff --git a/media-video/mediainfo/mediainfo-20.03.ebuild b/media-video/mediainfo/mediainfo-20.03.ebuild new file mode 100644 index 000000000000..dec60a2ece9e --- /dev/null +++ b/media-video/mediainfo/mediainfo-20.03.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +WX_GTK_VER="3.0" + +inherit xdg-utils autotools wxwidgets + +DESCRIPTION="MediaInfo supplies technical and tag information about media files" +HOMEPAGE="https://mediaarea.net/mediainfo/ https://github.com/MediaArea/MediaInfo" +SRC_URI="https://mediaarea.net/download/source/${PN}/${PV}/${P/-/_}.tar.xz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="curl mms wxwidgets" + +RDEPEND="sys-libs/zlib + >=media-libs/libzen-0.4.37 + ~media-libs/lib${P}[curl=,mms=] + wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/MediaInfo + +pkg_setup() { + TARGETS="CLI" + if use wxwidgets; then + TARGETS+=" GUI" + setup-wxwidgets + fi +} + +src_prepare() { + default + + local target + for target in ${TARGETS}; do + cd "${S}"/Project/GNU/${target} || die + sed -i -e "s:-O2::" configure.ac || die + eautoreconf + done +} + +src_configure() { + local target + for target in ${TARGETS}; do + cd "${S}"/Project/GNU/${target} || die + local args="" + [[ ${target} == "GUI" ]] && args="--with-wxwidgets --with-wx-gui" + econf ${args} + done +} + +src_compile() { + local target + for target in ${TARGETS}; do + cd "${S}"/Project/GNU/${target} || die + default + done +} +src_install() { + local target + for target in ${TARGETS}; do + cd "${S}"/Project/GNU/${target} || die + default + dodoc "${S}"/History_${target}.txt + done +} + +pkg_postinst() { + xdg_icon_cache_update + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_icon_cache_update + xdg_desktop_database_update +} |