diff options
author | James Le Cuirot <chewi@gentoo.org> | 2017-12-05 22:28:13 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2017-12-05 22:36:17 +0000 |
commit | 7c14618597b16827b6b05eaa64b75fb0c2056986 (patch) | |
tree | 574fede697520d1933386e42b8bc119fe15ca44c /media-video/makemkv/makemkv-1.10.8.ebuild | |
parent | dev-python/appdirs: restore pkg_preinst to clean up egg-info mess (diff) | |
download | gentoo-7c14618597b16827b6b05eaa64b75fb0c2056986.tar.gz gentoo-7c14618597b16827b6b05eaa64b75fb0c2056986.tar.bz2 gentoo-7c14618597b16827b6b05eaa64b75fb0c2056986.zip |
media-video/makemkv: Bump to 1.10.8, remove old 1.10.7-r1
Package-Manager: Portage-2.3.16, Repoman-2.3.6
Diffstat (limited to 'media-video/makemkv/makemkv-1.10.8.ebuild')
-rw-r--r-- | media-video/makemkv/makemkv-1.10.8.ebuild | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/media-video/makemkv/makemkv-1.10.8.ebuild b/media-video/makemkv/makemkv-1.10.8.ebuild new file mode 100644 index 000000000000..8ae13a9e98f9 --- /dev/null +++ b/media-video/makemkv/makemkv-1.10.8.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit gnome2-utils flag-o-matic + +MY_P=makemkv-oss-${PV} +MY_PB=makemkv-bin-${PV} + +DESCRIPTION="Tool for ripping and streaming Blu-ray, HD-DVD and DVD discs" +HOMEPAGE="http://www.makemkv.com/" +SRC_URI="http://www.makemkv.com/download/${MY_P}.tar.gz + http://www.makemkv.com/download/${MY_PB}.tar.gz" + +LICENSE="LGPL-2.1 MPL-1.1 MakeMKV-EULA openssl" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="+gui libav multilib" + +QA_PREBUILT="usr/bin/makemkvcon usr/bin/mmdtsdec" + +DEPEND=" + sys-libs/glibc[multilib?] + dev-libs/expat + dev-libs/openssl:0[-bindist(-)] + sys-libs/zlib + gui? ( + dev-qt/qtcore:5 + dev-qt/qtdbus:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + ) + !libav? ( >=media-video/ffmpeg-1.0.0:0= ) + libav? ( >=media-video/libav-0.8.9:0= ) +" +RDEPEND="${DEPEND} + net-misc/wget" + +S="${WORKDIR}/makemkv-oss-${PV}" +PATCHES=( "${FILESDIR}"/${PN}-{wget,path}.patch ) + +src_configure() { + # See bug #439380. + replace-flags -O* -Os + + econf \ + --enable-debug \ + --disable-noec \ + --disable-qt4 \ + $(use_enable gui) \ + $(use_enable gui qt5) +} + +src_install() { + default + + # add missing symlinks for QA + dosym libdriveio.so.0 /usr/$(get_libdir)/libdriveio.so.0.${PV} + dosym libdriveio.so.0 /usr/$(get_libdir)/libdriveio.so + dosym libmakemkv.so.1 /usr/$(get_libdir)/libmakemkv.so.1.${PV} + dosym libmakemkv.so.1 /usr/$(get_libdir)/libmakemkv.so + dosym libmmbd.so.0 /usr/$(get_libdir)/libmmbd.so + dosym libmmbd.so.0 /usr/$(get_libdir)/libmmbd.so.0.${PV} + + cd "${WORKDIR}"/${MY_PB} || die + + # install prebuilt bins + if use x86; then + dobin bin/i386/{makemkvcon,mmdtsdec} + elif use amd64; then + dobin bin/amd64/makemkvcon + use multilib && dobin bin/i386/mmdtsdec + fi + + # install profiles and locales + insinto /usr/share/MakeMKV + doins src/share/*.{mo.gz,xml} +} + +pkg_preinst() { gnome2_icon_savelist; } + +pkg_postinst() { + gnome2_icon_cache_update + + elog "While MakeMKV is in beta mode, upstream has provided a license" + elog "to use if you do not want to purchase one." + elog "" + elog "See this forum thread for more information, including the key:" + elog "http://www.makemkv.com/forum2/viewtopic.php?f=5&t=1053" + elog "" + elog "Note that beta license may have an expiration date and you will" + elog "need to check for newer licenses/releases. " + elog "" + elog "We previously said to copy default.mmcp.xml to ~/.MakeMKV/. This" + elog "is no longer necessary and you should delete it from there to" + elog "avoid warning messages." + elog "" + elog "MakeMKV can also act as a drop-in replacement for libaacs and" + elog "libbdplus, allowing transparent decryption of a wider range of" + elog "titles under players like VLC and mplayer. To enable this, set" + elog "the following variables when launching the player:" + elog "LIBAACS_PATH=libmmbd LIBBDPLUS_PATH=libmmbd" +} + +pkg_postrm() { gnome2_icon_cache_update; } |