diff options
author | Tim Harder <radhermit@gentoo.org> | 2018-03-23 21:52:27 -0400 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2018-03-23 21:53:28 -0400 |
commit | 719a8f28e5c50e6be4fd3f53157f7b50bedf4c71 (patch) | |
tree | 158eb6f6651acf46dc954550f041c379609b06c5 /media-video/mediainfo/mediainfo-18.03.ebuild | |
parent | media-libs/libmediainfo: version bump to 18.03 (diff) | |
download | gentoo-719a8f28e5c50e6be4fd3f53157f7b50bedf4c71.tar.gz gentoo-719a8f28e5c50e6be4fd3f53157f7b50bedf4c71.tar.bz2 gentoo-719a8f28e5c50e6be4fd3f53157f7b50bedf4c71.zip |
media-video/mediainfo: version bump to 18.03
Diffstat (limited to 'media-video/mediainfo/mediainfo-18.03.ebuild')
-rw-r--r-- | media-video/mediainfo/mediainfo-18.03.ebuild | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/media-video/mediainfo/mediainfo-18.03.ebuild b/media-video/mediainfo/mediainfo-18.03.ebuild new file mode 100644 index 000000000000..48b2796d9299 --- /dev/null +++ b/media-video/mediainfo/mediainfo-18.03.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2018 Gentoo Foundation +# 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" + use wxwidgets && TARGETS+=" GUI" +} + +src_prepare() { + eapply_user + + 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 +} |