summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-04-09 07:56:37 +0100
committerSam James <sam@gentoo.org>2023-04-09 07:57:24 +0100
commit018626145ba44c7559d63102827faa151cc7e72a (patch)
tree8c0dbc33f972a014d86acc6640a3ad7c938def01 /media-video
parentmedia-libs/libiptcdata: enable py3.11 (diff)
downloadgentoo-018626145ba44c7559d63102827faa151cc7e72a.tar.gz
gentoo-018626145ba44c7559d63102827faa151cc7e72a.tar.bz2
gentoo-018626145ba44c7559d63102827faa151cc7e72a.zip
media-video/handbrake: update live ebuild
Thanks-to: James Beddek <telans@posteo.de> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-video')
-rw-r--r--media-video/handbrake/files/handbrake-9999-dont-search-for-python.patch26
-rw-r--r--media-video/handbrake/handbrake-9999.ebuild27
2 files changed, 40 insertions, 13 deletions
diff --git a/media-video/handbrake/files/handbrake-9999-dont-search-for-python.patch b/media-video/handbrake/files/handbrake-9999-dont-search-for-python.patch
new file mode 100644
index 000000000000..f9971e508404
--- /dev/null
+++ b/media-video/handbrake/files/handbrake-9999-dont-search-for-python.patch
@@ -0,0 +1,26 @@
+--- a/configure
++++ b/configure
+@@ -14,20 +14,8 @@ inpath()
+ }
+
+ if ( inpath bash ); then
+- pp=""
+- for p in python3 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python2 python2.7 python
+- do
+- if ( inpath $p ); then
+- pp="$p"
+- break
+- fi
+- done
+- if [ "$pp" != "" ]; then
+- exec $pp `dirname $0`/make/configure.py "$@"
+- exit 0
+- else
+- echo "ERROR: no suitable version of python found."
+- fi
++ exec python `dirname $0`/make/configure.py "$@"
++ exit 0
+ else
+ echo "ERROR: bash shell not found."
+ fi
+
diff --git a/media-video/handbrake/handbrake-9999.ebuild b/media-video/handbrake/handbrake-9999.ebuild
index d399e643ee4b..6887723ed4b9 100644
--- a/media-video/handbrake/handbrake-9999.ebuild
+++ b/media-video/handbrake/handbrake-9999.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-PYTHON_COMPAT=( python3_{9..10} )
+PYTHON_COMPAT=( python3_{9..11} )
inherit autotools python-any-r1 toolchain-funcs xdg
@@ -22,9 +22,9 @@ HOMEPAGE="https://handbrake.fr/ https://github.com/HandBrake/HandBrake"
LICENSE="GPL-2"
SLOT="0"
-IUSE="+fdk gstreamer gtk libav-aac numa nvenc x265"
+IUSE="+fdk gstreamer gtk numa nvenc x265" # TODO: qsv vce
-REQUIRED_USE="^^ ( fdk libav-aac )"
+REQUIRED_USE="numa? ( x265 )"
RDEPEND="
app-arch/xz-utils
@@ -71,7 +71,10 @@ RDEPEND="
x11-libs/libnotify
x11-libs/pango
)
- nvenc? ( media-libs/nv-codec-headers )
+ nvenc? (
+ media-libs/nv-codec-headers
+ media-video/ffmpeg[nvenc]
+ )
x265? ( >=media-libs/x265-3.2:0=[10bit,12bit,numa?] )
"
DEPEND="${RDEPEND}"
@@ -88,14 +91,11 @@ PATCHES=(
# 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"
-
# Detect system tools - bug 738110
"${FILESDIR}/${PN}-9999-system-tools.patch"
# Use whichever python is set by portage
- "${FILESDIR}/${PN}-1.3.0-dont-search-for-python.patch"
+ "${FILESDIR}/${PN}-9999-dont-search-for-python.patch"
# Fix x265 linkage... again again #730034
"${FILESDIR}/${PN}-1.3.3-x265-link.patch"
@@ -123,16 +123,17 @@ src_configure() {
--force
--verbose
--prefix="${EPREFIX}/usr"
- --disable-gtk-update-checks
--disable-flatpak
- --disable-gtk4
- $(use_enable libav-aac ffmpeg-aac)
- $(use_enable fdk fdk-aac)
$(usex !gtk --disable-gtk)
+ --disable-gtk4
$(usex !gstreamer --disable-gst)
+ $(use_enable x265)
$(use_enable numa)
+ $(use_enable fdk fdk-aac)
+ --enable-ffmpeg-aac # Forced on
$(use_enable nvenc)
- $(use_enable x265)
+ # TODO: $(use_enable qsv)
+ # TODO: $(use_enable vce)
)
./configure "${myconfargs[@]}" || die "Configure failed."