summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2018-12-12 01:06:19 -0600
committerTim Harder <radhermit@gentoo.org>2018-12-12 02:24:48 -0600
commit12ea753d163b2711fba89007ca47a5b5ffb8cdc4 (patch)
tree2b5e9fe4e39d8f6101a66a95991a291493f7b656 /media-video
parentmedia-libs/libmediainfo: version bump to 18.12 (diff)
downloadgentoo-12ea753d163b2711fba89007ca47a5b5ffb8cdc4.tar.gz
gentoo-12ea753d163b2711fba89007ca47a5b5ffb8cdc4.tar.bz2
gentoo-12ea753d163b2711fba89007ca47a5b5ffb8cdc4.zip
media-video/mediainfo: version bump to 18.12
Signed-off-by: Tim Harder <radhermit@gentoo.org>
Diffstat (limited to 'media-video')
-rw-r--r--media-video/mediainfo/Manifest1
-rw-r--r--media-video/mediainfo/mediainfo-18.12.ebuild80
2 files changed, 81 insertions, 0 deletions
diff --git a/media-video/mediainfo/Manifest b/media-video/mediainfo/Manifest
index dfed38dd11ea..83aae90ac568 100644
--- a/media-video/mediainfo/Manifest
+++ b/media-video/mediainfo/Manifest
@@ -1,2 +1,3 @@
DIST mediainfo_18.05.tar.xz 1359000 BLAKE2B e82e337f7ec7158bf8b9222fae8fc65b16211a42214f0f24003c0eebee523cf7d383aee827e4170a5317e8c470eb637ebb7154fdd2f104f2c1ce9913e8b4519e SHA512 10ffad5828d7afe83533e6e850f7124499fe1cdce024c9f3f46c5ab2333e19d40747feea641ce0b8a8d37f9aa069db39e205d0ac2bf1f5189ee2b044d6d7e2bf
DIST mediainfo_18.08.1.tar.xz 1392800 BLAKE2B 426c9b560e31c10e5ba1a3d2a02e7a3cf2e89410e64ec800ff2881939d8774205eb134bfa5685866705e3fe424954edce91cdfea60e060249bb5cb7f10fa4da3 SHA512 ff807138a253dfe8ea79d568a0c742e9391709e1e0ae3c5d0ce0e5345f2306057b541e5eb2bdd6bf0032f287b2387dfc21a506698ccd2c81a9f70679cf518480
+DIST mediainfo_18.12.tar.xz 1397888 BLAKE2B 11ee571136c2f4e82af210c0a345284c1188ef501c3ea8bd0ebad3808334d388f83abbe0e36118bc3752465ffbe989396be3c3578d124736a4579cb1fb64a031 SHA512 f5e70b075516ffa21f41d049b64f00275387366e5bad4bb331211db9e7449035bea2acbe37bf7074499ed56a01d45b8e94b078ca52334591f4dd9b985d3cc3a0
diff --git a/media-video/mediainfo/mediainfo-18.12.ebuild b/media-video/mediainfo/mediainfo-18.12.ebuild
new file mode 100644
index 000000000000..06548372fa66
--- /dev/null
+++ b/media-video/mediainfo/mediainfo-18.12.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+WX_GTK_VER="3.0"
+
+inherit gnome2-utils 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() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+}