From ae9c0f2920a2239f7eeddd78b80a4972ec1bdb69 Mon Sep 17 00:00:00 2001 From: Jan Chren Date: Fri, 22 Apr 2016 11:45:51 +0200 Subject: media-video/makemkv: Bump to 1.9.10, EAPI 6, minor fixes --- media-video/makemkv/Manifest | 4 +- media-video/makemkv/makemkv-1.9.10.ebuild | 148 ++++++++++++++++++++++++++++++ media-video/makemkv/makemkv-1.9.9.ebuild | 141 ---------------------------- 3 files changed, 150 insertions(+), 143 deletions(-) create mode 100644 media-video/makemkv/makemkv-1.9.10.ebuild delete mode 100644 media-video/makemkv/makemkv-1.9.9.ebuild (limited to 'media-video/makemkv') diff --git a/media-video/makemkv/Manifest b/media-video/makemkv/Manifest index 4aa0b66771b1..289b40b9c4da 100644 --- a/media-video/makemkv/Manifest +++ b/media-video/makemkv/Manifest @@ -1,2 +1,2 @@ -DIST makemkv-bin-1.9.9.tar.gz 5516983 SHA256 66c9e8db89d461ddafb2682af75102611a492ae4c7bf91645b2840d9bdd355e7 SHA512 1ef8d5d588b5ffff2c9ca255c8588fd7c50cedba8b76304d55b6bf112f7903832c46650633525106c066234d2214a8348b9c5d951977bacb89fb230265a31f0b WHIRLPOOL e8f3b3387b1ef4a84add3977da3090405bf388a81ba383ddbc33ba280b934bb4c24425b13b8cc5c4e73f62c6f68351f9bee2524d81187dcceeb5b5f8a4c83838 -DIST makemkv-oss-1.9.9.tar.gz 4419556 SHA256 608d89170b66d2bb89fe80497d4d4f00d604346412f997da52e06c8b10451d1c SHA512 4901d19c331d2256e024a2c739fbb7d89d6d2fafdc5530ec5fea3931587da058ec438bf2a7d9aefc362e5211996e940ab3f1a404264a276d737f6d9ccdf613c1 WHIRLPOOL 23d88f8bcd1458812df65b8d0e6c9d03985b10a51aff477209bfaab21cf5ff1d70cc6e9d0d3fa9fdbbc6453c55b8f6f9f9cf3eac0b73aeb3518375ddea351083 +DIST makemkv-bin-1.9.10.tar.gz 5619754 SHA256 d94468b1cb1ec815b5ab899baab7ab9a03fcdb35c93bc0f6cbc646ffcac4b6c4 SHA512 fb42fad4404aab5196eb506ce82cfb0b094193e38cd5f42992c7007b4fb1870658cfca518e7258b8c29baf50c2b2c9be75857b7464d7a555aaadfedcf710c1f0 WHIRLPOOL 668ed528b8ca3695e039fe35028690c38e785d91c159ff4646a647b1e37fbfde1ea807e0c4d74eddc6168c8b69f1c26d92a5c8cfbbaa708afcbcbec185122c38 +DIST makemkv-oss-1.9.10.tar.gz 4419555 SHA256 b395bebd64d4c95b1558573d316e88221b4ce03798dace65bd339cae2314ecfa SHA512 b9ac8679dbb62f7174cf085726301fefbd6384dcf9beeb2a2e73c157120bd03b3313700711fda69543764b0dd27c7b4b262515315eb3cd055d42c162a26bff82 WHIRLPOOL ce31538bc888c15266d5bed10fade07a42a976cb6c0dc32d710f88270085daedb1aac45acca449e00805f3abe8912335fe6e2eb0ebd4b5af8da5195b3dd1663b diff --git a/media-video/makemkv/makemkv-1.9.10.ebuild b/media-video/makemkv/makemkv-1.9.10.ebuild new file mode 100644 index 000000000000..58a476588719 --- /dev/null +++ b/media-video/makemkv/makemkv-1.9.10.ebuild @@ -0,0 +1,148 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit eutils gnome2-utils multilib 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="libav multilib qt4 qt5" +REQUIRED_USE="?? ( qt4 qt5 )" + +QA_PREBUILT="opt/bin/makemkvcon opt/bin/mmdtsdec" + +RDEPEND=" + sys-libs/glibc[multilib?] + dev-libs/expat + dev-libs/openssl:0 + sys-libs/zlib + qt4? ( + dev-qt/qtcore:4 + dev-qt/qtdbus:4 + dev-qt/qtgui:4 + ) + qt5? ( + 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= ) +" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/makemkv-oss-${PV}" + +src_prepare() { + PATCHES+=( "${FILESDIR}"/${PN}-{makefile,path}.patch ) + + # Qt5 always trumps Qt4 if it is available. There are no configure + # options or variables to control this and there is no publicly + # available configure.ac either. + if use qt4; then + PATCHES+=( "${FILESDIR}"/${PN}-qt4.patch ) + elif use qt5; then + PATCHES+=( "${FILESDIR}"/${PN}-qt5.patch ) + fi + + default +} + +src_configure() { + # See bug #439380. + replace-flags -O* -Os + + local econf_args=() + + if use qt4 || use qt5; then + econf_args+=( '--enable-gui' ) + else + econf_args+=( '--disable-gui' ) + fi + + econf "${econf_args[@]}" +} + +src_compile() { + emake GCC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" +} + +src_install() { + # install oss package + dolib.so out/libdriveio.so.0 + dolib.so out/libmakemkv.so.1 + dolib.so out/libmmbd.so.0 + 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} + into /opt + + if use qt4 || use qt5; then + dobin out/makemkv + + local res + for res in 16 22 32 64 128; do + newicon -s ${res} makemkvgui/share/icons/${res}x${res}/makemkv.png ${PN}.png + done + + make_desktop_entry ${PN} MakeMKV ${PN} 'Qt;AudioVideo;Video' + fi + + # 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/" + 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; } diff --git a/media-video/makemkv/makemkv-1.9.9.ebuild b/media-video/makemkv/makemkv-1.9.9.ebuild deleted file mode 100644 index 252dc7308f67..000000000000 --- a/media-video/makemkv/makemkv-1.9.9.ebuild +++ /dev/null @@ -1,141 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 -inherit eutils gnome2-utils multilib 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="libav multilib qt4 qt5" -REQUIRED_USE="?? ( qt4 qt5 )" - -QA_PREBUILT="opt/bin/makemkvcon opt/bin/mmdtsdec" - -RDEPEND=" - sys-libs/glibc[multilib?] - dev-libs/expat - dev-libs/openssl:0 - sys-libs/zlib - qt4? ( - dev-qt/qtcore:4 - dev-qt/qtdbus:4 - dev-qt/qtgui:4 - ) - qt5? ( - 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= ) -" -DEPEND="${RDEPEND}" - -S=${WORKDIR}/makemkv-oss-${PV} - -src_prepare() { - epatch "${FILESDIR}"/${PN}-{makefile,path}.patch - - # Qt5 always trumps Qt4 if it is available. There are no configure - # options or variables to control this and there is no publicly - # available configure.ac either. - if use qt4; then - epatch "${FILESDIR}"/${PN}-qt4.patch - elif use qt5; then - epatch "${FILESDIR}"/${PN}-qt5.patch - fi -} - -src_configure() { - # See bug #439380. - replace-flags -O* -Os - - if use qt4 || use qt5; then - econf --enable-gui - else - econf --disable-gui - fi -} - -src_compile() { - emake GCC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" -} - -src_install() { - # install oss package - dolib.so out/libdriveio.so.0 - dolib.so out/libmakemkv.so.1 - dolib.so out/libmmbd.so.0 - 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} - into /opt - - if use qt4 || use qt5; then - dobin out/makemkv - - local res - for res in 16 22 32 64 128; do - newicon -s ${res} makemkvgui/share/icons/${res}x${res}/makemkv.png ${PN}.png - done - - make_desktop_entry ${PN} MakeMKV ${PN} 'Qt;AudioVideo;Video' - fi - - # 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/" - 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; } -- cgit v1.2.3-65-gdbad