From 85cc36eb4685f8b8ed374c02020139a7a95ba241 Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Thu, 31 Mar 2016 14:44:46 +0200 Subject: [PATCH] media-video/handbrake: Bump live ebuild to EAPI-6. Package-Manager: portage-2.2.28 Signed-off-by: Lars Wendler --- media-video/handbrake/handbrake-9999.ebuild | 33 +++++++++++---------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/media-video/handbrake/handbrake-9999.ebuild b/media-video/handbrake/handbrake-9999.ebuild index adb5fc3076a9..8fb14e62356a 100644 --- a/media-video/handbrake/handbrake-9999.ebuild +++ b/media-video/handbrake/handbrake-9999.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI="5" +EAPI=6 PYTHON_COMPAT=( python2_7 ) @@ -13,8 +13,9 @@ if [[ ${PV} = *9999* ]]; then inherit git-r3 KEYWORDS="" else - SRC_URI="http://handbrake.fr/rotation.php?file=HandBrake-${PV}.tar.bz2 -> ${P}.tar.bz2" - S="${WORKDIR}/HandBrake-${PV}" + MY_P="HandBrake-${PV}" + SRC_URI="http://handbrake.fr/rotation.php?file=${MY_P}.tar.bz2 -> ${P}.tar.bz2" + S="${WORKDIR}/${MY_P}" KEYWORDS="~amd64 ~x86" fi @@ -73,27 +74,29 @@ DEPEND="${RDEPEND} dev-util/intltool sys-devel/automake" +PATCHES=( + # Remove libdvdnav duplication and call it on the original instead. + # It may work this way; if not, we should try to mimic the duplication. + "${FILESDIR}/${PN}-9999-remove-dvdnav-dup.patch" + + # Remove faac dependency; TODO: figure out if we need to do this at all. + "${FILESDIR}/${PN}-9999-remove-faac-dependency.patch" + + # Fix missing x265 link flag + "${FILESDIR}/${PN}-9999-fix-missing-x265-link-flag.patch" +) + pkg_setup() { python-any-r1_pkg_setup } src_prepare() { - epatch_user - # Get rid of leftover bundled library build definitions, sed -i 's:.*\(/contrib\|contrib/\).*::g' \ "${S}"/make/include/main.defs \ || die "Contrib removal failed." - # Remove libdvdnav duplication and call it on the original instead. - # It may work this way; if not, we should try to mimic the duplication. - epatch "${FILESDIR}"/${PN}-9999-remove-dvdnav-dup.patch - - # Remove faac dependency; TODO: figure out if we need to do this at all. - epatch "${FILESDIR}"/${PN}-9999-remove-faac-dependency.patch - - # Fix missing x265 link flag - epatch "${FILESDIR}"/${PN}-9999-fix-missing-x265-link-flag.patch + default cd "${S}/gtk" # Don't run autogen.sh. -- 2.26.2