summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2021-03-28 01:09:00 +0100
committerPacho Ramos <pacho@gentoo.org>2021-03-28 01:09:00 +0100
commit31171cca3639deb252abec95d1a46b103afe090d (patch)
tree2393c7dbf1d7770df90c9f6a102dafc8eb28ba54 /media-video/mediainfo
parentprofiles: Fix mask timestamp... (diff)
downloadgentoo-31171cca3639deb252abec95d1a46b103afe090d.tar.gz
gentoo-31171cca3639deb252abec95d1a46b103afe090d.tar.bz2
gentoo-31171cca3639deb252abec95d1a46b103afe090d.zip
media-video/mediainfo: Use wxGTK:3.0-gtk3
Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'media-video/mediainfo')
-rw-r--r--media-video/mediainfo/mediainfo-20.09-r1.ebuild82
1 files changed, 82 insertions, 0 deletions
diff --git a/media-video/mediainfo/mediainfo-20.09-r1.ebuild b/media-video/mediainfo/mediainfo-20.09-r1.ebuild
new file mode 100644
index 000000000000..cb4768702f87
--- /dev/null
+++ b/media-video/mediainfo/mediainfo-20.09-r1.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+WX_GTK_VER="3.0-gtk3"
+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="
+ ~media-libs/libmediainfo-${PV}[curl=,mms=]
+ >=media-libs/libzen-0.4.37
+ sys-libs/zlib
+ wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="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
+}