From e30f97cbf745ca071a265189f0bfe579af9f5ae1 Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Thu, 7 Feb 2013 01:18:09 +0000 Subject: [PATCH] added latest version (1.7.10) --- media-video/makemkv/Manifest | 3 + media-video/makemkv/makemkv-1.7.10.ebuild | 98 +++++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 media-video/makemkv/Manifest create mode 100644 media-video/makemkv/makemkv-1.7.10.ebuild diff --git a/media-video/makemkv/Manifest b/media-video/makemkv/Manifest new file mode 100644 index 0000000..3ce8fd9 --- /dev/null +++ b/media-video/makemkv/Manifest @@ -0,0 +1,3 @@ +DIST makemkv-bin-1.7.10.tar.gz 6818046 SHA256 b40bd0dbe70b6e7176823d3c88caa8a29b95340b6b271a187434d14715353001 SHA512 5712c2ef64598ec8bf28cd8f719ac3ef09305b23346d367007fc11b3e10195e0019f7355f6b0366965d5ecc1fbc2da39265207fb85647a9aa87ac9ece5bbc4db WHIRLPOOL ae5772813342688a5999e3effd563da3b093640c3337992cfd7e898a498ec8643fb75f6166e2452ca5ccd04fee7304e1e2752c78b80fb49ae6e2e87b49ee5e67 +DIST makemkv-oss-1.7.10.tar.gz 493920 SHA256 df108850525049ca7b74d84f4dc2d643eb962c008bca9450c9fd976db0500c09 SHA512 9e1757110f975d6562d9d929217de8032ed1d00375706d2e6ef27f9c4080650184e704b603fbaa9328e4e8de70c1b800e4f2c4773876c540b628ee08970231f9 WHIRLPOOL 460e99c79d7b46faa77254b86dfcd95581cc499827ee9acab44ac0f82294070f0b13c15189c04a202b02e8cc682ef56d4f31a28d5cff49de5e1a7d2b695084eb +EBUILD makemkv-1.7.10.ebuild 2755 SHA256 72b512639e9097517bf306f8e632eb0a3a8926903e4d0ecd805802503d909f91 SHA512 9a25e3f41209c0c04e6bfef86dd1ad40e5a5f79eb2edfbcdfbc154535001c38afe84f7acef2958bed0d298e87ecbb7ac212b572b18ebfb0053a31f73fa12ae0e WHIRLPOOL bf8f107c69dab917244cf05de993ea756ecc6a0ca15259a70ad51f079ca8103cc37f0b14d57f4d6f0bc47908cdc81e4e22c96d9e6f2df100606b66c49228a960 diff --git a/media-video/makemkv/makemkv-1.7.10.ebuild b/media-video/makemkv/makemkv-1.7.10.ebuild new file mode 100644 index 0000000..7bef319 --- /dev/null +++ b/media-video/makemkv/makemkv-1.7.10.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/makemkv/makemkv-1.7.8.ebuild,v 1.1 2012/11/25 18:02:25 mattm Exp $ + +EAPI=4 +inherit eutils gnome2-utils multilib + +MY_P=makemkv-oss-${PV} +MY_PB=makemkv-bin-${PV} + +DESCRIPTION="Tool for ripping Blu-Ray, HD-DVD and DVD discs and copying content to a Matroska container" +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="multilib" + +QA_PREBUILT="opt/bin/makemkvcon opt/bin/mmdtsdec" +RESTRICT="mirror" + +RDEPEND="dev-libs/expat + dev-libs/openssl:0 + sys-libs/zlib + virtual/opengl + x11-libs/qt-core:4 + x11-libs/qt-dbus:4 + x11-libs/qt-gui:4 + amd64? ( multilib? ( app-emulation/emul-linux-x86-baselibs ) )" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${P}-makefile.linux.patch +} + +src_compile() { + emake GCC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" -f makefile.linux +} + +src_install() { + # install oss package + dolib.so out/libdriveio.so.0 + dolib.so out/libmakemkv.so.1 + 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 + into /opt + dobin out/makemkv + + local res + for res in 16 22 32 64 128; do + newicon -s ${res} makemkvgui/src/img/${res}/mkv_icon.png ${PN}.png + done + + make_desktop_entry ${PN} MakeMKV ${PN} 'Qt;AudioVideo;Video' + + # install bin package + pushd "${WORKDIR}"/${MY_PB}/bin >/dev/null + if use x86; then + dobin i386/{makemkvcon,mmdtsdec} + elif use amd64; then + dobin amd64/makemkvcon + use multilib && dobin i386/mmdtsdec + fi + popd >/dev/null + + # install license and default profile + pushd "${WORKDIR}"/${MY_PB}/src/share >/dev/null + insinto /usr/share/MakeMKV + doins *.{gz,xml} + popd >/dev/null +} + +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 "If this is a new install, remember to copy the default profile" + elog "to the config directory:" + elog "cp /usr/share/MakeMKV/default.mmcp.xml ~/.MakeMKV/" +} + +pkg_postrm() { gnome2_icon_cache_update; }