Updated gentoo ebuild 1.8.14

The place to discuss linux version of MakeMKV
Post Reply
Message
Author
l33tlinuxh4x0r
Posts: 7
Joined: Tue Aug 05, 2014 2:09 am

Updated gentoo ebuild 1.8.14

#1 Post by l33tlinuxh4x0r » Tue Sep 09, 2014 3:08 am

I have updated and edited the gentoo makemkv-1.8.12-r2.ebuild to compile and install makemkv 1.8.14 and the libaacs and libbdplus emulation works correctly.

I have attached the file for anyone that wants it. EDIT: the forums will not let me attach files.

Simple instructions on how to use.

rename makemkv-1.8.14.ebuild.txt to makemkv-1.8.14.ebuild
place in your local portage overlay.
run

Code: Select all

ebuild /path/to/ebuild/makemkv-1.8.14.ebuild digest
run

Code: Select all

emerge -v makemkv
You should be good to go!

Below is a copy of the ebuild for your reading pleasure.

Code: Select all

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/makemkv/makemkv-1.8.12-r2.ebuild,v 1.1 2014/08/22 23:06:31 beandog Exp $

EAPI=5
inherit eutils gnome2-utils multilib flag-o-matic

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 qt4"

QA_PREBUILT="usr/bin/makemkvcon usr/bin/mmdtsdec"

RDEPEND="dev-libs/expat
	dev-libs/openssl:0
	sys-libs/zlib
	qt4? (
		virtual/opengl
		dev-qt/qtcore:4
		dev-qt/qtdbus:4
		dev-qt/qtgui:4
	)
	>=sys-libs/glibc-2.12.0
	|| ( >=media-video/ffmpeg-1.0.0 >=media-video/libav-0.8.9 )
	amd64? ( multilib? ( app-emulation/emul-linux-x86-baselibs ) )"
DEPEND="${RDEPEND}"

S=${WORKDIR}/makemkv-oss-${PV}

src_configure() {
	replace-flags -O* -Os
	local args=""
	use qt4 || args="--disable-gui"
	if [[ -x ${ECONF_SOURCE:-.}/configure ]] ; then
		econf $args
	fi
}

src_compile() {
	emake GCC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" || die "Make failed!"
}

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 /usr

	if use qt4; 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/"
}

pkg_postrm() { gnome2_icon_cache_update; }
Last edited by l33tlinuxh4x0r on Sat Oct 25, 2014 5:46 pm, edited 3 times in total.

dannyboy48888
Posts: 64
Joined: Sun Oct 17, 2010 11:33 pm

Re: 1.8.13 gentoo ebuild

#2 Post by dannyboy48888 » Fri Sep 26, 2014 4:24 pm

Works like a champ, Thanks!

dannyboy48888
Posts: 64
Joined: Sun Oct 17, 2010 11:33 pm

Re: 1.8.13 gentoo ebuild

#3 Post by dannyboy48888 » Mon Oct 20, 2014 3:11 am

Filed a bug report...your version is now in the portage tree. Thanks again!

l33tlinuxh4x0r
Posts: 7
Joined: Tue Aug 05, 2014 2:09 am

Re: 1.8.13 gentoo ebuild

#4 Post by l33tlinuxh4x0r » Tue Oct 21, 2014 9:56 pm

Great to hear that I helped the community.

dannyboy48888
Posts: 64
Joined: Sun Oct 17, 2010 11:33 pm

Re: Updated gentoo ebuild 1.8.14

#5 Post by dannyboy48888 » Mon Oct 27, 2014 7:56 pm

Added your 1.8.14 to layman, thanks!

Post Reply