commit:     874dccafcc3666304b24ebb2fc81e855cd60ad65
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 26 08:29:34 2025 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Fri Sep 26 08:30:15 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=874dccaf

media-video/makemkv: Version bump to 1.18.2

Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 media-video/makemkv/Manifest              |   2 +
 media-video/makemkv/makemkv-1.18.2.ebuild | 121 ++++++++++++++++++++++++++++++
 2 files changed, 123 insertions(+)

diff --git a/media-video/makemkv/Manifest b/media-video/makemkv/Manifest
index 93661df98331..aec476c36e79 100644
--- a/media-video/makemkv/Manifest
+++ b/media-video/makemkv/Manifest
@@ -1,2 +1,4 @@
 DIST makemkv-bin-1.18.1.tar.gz 17943201 BLAKE2B 
4c86c6593c2b898e05810875b8cefe5e816e345b8fc89b1e02cd109548d950beaee089acd341c4f5daeff11bdba0eb5d04c4294cc9adef1c0459b88103a1a241
 SHA512 
ea1b35b7b993f5241783123bc360b631438f41a22c195775bcb7fd44602c6bf2f9d332098fee5cb6d21297c0b0d7479b31546c35846e6417c454a3d852655816
+DIST makemkv-bin-1.18.2.tar.gz 17916113 BLAKE2B 
a0372519087db6881207b2a2f828a08d9ebbe57a6166391a3141ae5074a3b1b03314f57aecb7e3bd594064fcae6d1f97bb8db2d52658b398fef2a44689c00ee8
 SHA512 
01e8a8a6e5b4ad34a6944fb62a01bd0bfea1ac8d846c5dd7b42e35a62ea2196aae1abb635a620dfc5541987db2af832d4cb73cfde28eaafaf4c61eed81da66a0
 DIST makemkv-oss-1.18.1.tar.gz 6626995 BLAKE2B 
0115b9dda0a513784b8749945f4f3b23212339ba5d4a746db6b9c0c04f9d35866ac4e4827725a92a42d143fa89eada11a2f917360ad93c2488789aed1e707347
 SHA512 
5268b2250086a28f840f529bad4f964aef5ca8c4d81c0d6c3345cb7728ed3e60cd4e1720d0e5a3c3527962d152f8a305107956fc0d01fb1e4c7440488095deaa
+DIST makemkv-oss-1.18.2.tar.gz 6638329 BLAKE2B 
b15088a01835dbe576b400d8e08e16ce4e58ec61a4956120abc507b01981707cdf4e2004a9d7b673306a110f8c3567506d62c48942d7f7d38321767308cae595
 SHA512 
45ae82da88d0bcc3c13d1eb4a5b3fcb4844f2af4a45da0cc1f1b854f573c3f69d40a439425170b257ecdf0faee708d46cce5ea0d9a493586794b0c06fe542d77

diff --git a/media-video/makemkv/makemkv-1.18.2.ebuild 
b/media-video/makemkv/makemkv-1.18.2.ebuild
new file mode 100644
index 000000000000..d638e6576c8c
--- /dev/null
+++ b/media-video/makemkv/makemkv-1.18.2.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic linux-info xdg
+
+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";
+S="${WORKDIR}/${MY_P}"
+LICENSE="GPL-2 LGPL-2.1 MPL-1.1 MakeMKV-EULA openssl"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="+gui +java"
+RESTRICT="bindist mirror"
+
+QA_PREBUILT="usr/bin/makemkvcon usr/bin/mmdtsdec"
+
+DEPEND="
+       dev-libs/expat
+       dev-libs/openssl:0=[-bindist(-)]
+       >=media-video/ffmpeg-1.0.0:0=
+       sys-libs/zlib
+       gui? ( dev-qt/qtbase:6[dbus,gui,widgets] )
+"
+RDEPEND="
+       ${DEPEND}
+       java? ( >=virtual/jre-1.8 )
+"
+BDEPEND="
+       virtual/pkgconfig
+       gui? ( dev-qt/qtbase:6 )
+"
+
+CONFIG_CHECK="~CHR_DEV_SG"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-qt6.patch
+       "${FILESDIR}"/${PN}-path.patch
+)
+
+src_prepare() {
+       default
+
+       if ! use java; then
+               rm -v "${WORKDIR}/${MY_PB}"/src/share/blues.* || die
+       fi
+}
+
+src_configure() {
+       # See bug #439380.
+       replace-flags -O* -Os
+
+       econf \
+               --enable-debug \
+               --disable-noec \
+               $(use_enable gui) \
+               $(use_enable gui qt6)
+}
+
+src_install() {
+       local myarch
+       case "${ARCH}" in
+               arm) myarch=armhf ;;
+               x86) myarch=i386 ;;
+               *) myarch=${ARCH} ;;
+       esac
+
+       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 bin
+       dobin bin/"${myarch}"/makemkvcon
+
+       # additional tool is actually part of makemkvcon
+       dosym makemkvcon /usr/bin/sdftool
+
+       # install profiles and locales
+       insinto /usr/share/MakeMKV
+       doins src/share/*
+
+       # install unofficial man page
+       doman "${FILESDIR}"/makemkvcon.1
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+
+       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 "https://www.makemkv.com/forum/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"
+}

Reply via email to