[PATCH 7/9] media-video/handbrake: port to esplit.eclass
Sam James <[email protected]> Thu, 9 Jul 2026 22:22:16 +0100
| Newsgroups | gmane.linux.gentoo.devel |
|---|---|
| Message-ID | <12c70a8d3cbdb9272b5f3660930095af8aa05f46.1783632125.git.sam@gentoo.org> |
Port to new esplit.eclass which now provides an idiomatic way of avoiding heredoc use as done in de7131fd3b9aad66457c59fcddf55e8f2b5f34e2. Bug: https://bugs.gentoo.org/978942 Signed-off-by: Sam James <[email protected]> --- media-video/handbrake/handbrake-1.10.2.ebuild | 10 +++++----- media-video/handbrake/handbrake-1.11.1-r2.ebuild | 10 +++++----- media-video/handbrake/handbrake-1.11.2-r1.ebuild | 10 +++++----- media-video/handbrake/handbrake-9999.ebuild | 10 +++++----- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/media-video/handbrake/handbrake-1.10.2.ebuild b/media-video/handbrake/handbrake-1.10.2.ebuild index 3808ff3696cf1..d2a19f6720d58 100644 --- a/media-video/handbrake/handbrake-1.10.2.ebuild +++ b/media-video/handbrake/handbrake-1.10.2.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{11..14} ) -inherit edo flag-o-matic multiprocessing python-any-r1 toolchain-funcs xdg +inherit edo esplit flag-o-matic multiprocessing python-any-r1 toolchain-funcs xdg DESCRIPTION="Open-source, GPL-licensed, multiplatform, multithreaded video transcoder" HOMEPAGE="https://handbrake.fr/ https://github.com/HandBrake/HandBrake" @@ -44,10 +44,10 @@ declare -A BUNDLED=( bundle_src_uri() { local name for name in "${!BUNDLED[@]}"; do - local OLDIFS splitted tarball uri use - OLDIFS=$IFS; IFS=';'; splitted=( ${BUNDLED[${name}]} ); IFS=$OLDIFS - uri=${splitted[0]} - use=${splitted[1]} + local fields tarball uri use + mapfile -d '' fields < <(IFS=';' esplit ${BUNDLED[${name}]}) + uri=${fields[0]} + use=${fields[1]} tarball=${uri##*/} if [[ -n ${use} ]]; then diff --git a/media-video/handbrake/handbrake-1.11.1-r2.ebuild b/media-video/handbrake/handbrake-1.11.1-r2.ebuild index 7f9f16c8b0594..633b8d44798d6 100644 --- a/media-video/handbrake/handbrake-1.11.1-r2.ebuild +++ b/media-video/handbrake/handbrake-1.11.1-r2.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{11..15} ) -inherit edo flag-o-matic multiprocessing python-any-r1 toolchain-funcs xdg +inherit edo esplit flag-o-matic multiprocessing python-any-r1 toolchain-funcs xdg DESCRIPTION="Open-source, GPL-licensed, multiplatform, multithreaded video transcoder" HOMEPAGE="https://handbrake.fr/ https://github.com/HandBrake/HandBrake" @@ -44,10 +44,10 @@ declare -A BUNDLED=( bundle_src_uri() { local name for name in "${!BUNDLED[@]}"; do - local OLDIFS splitted tarball uri use - OLDIFS=$IFS; IFS=';'; splitted=( ${BUNDLED[${name}]} ); IFS=$OLDIFS - uri=${splitted[0]} - use=${splitted[1]} + local fields tarball uri use + mapfile -d '' fields < <(IFS=';' esplit ${BUNDLED[${name}]}) + uri=${fields[0]} + use=${fields[1]} tarball=${uri##*/} if [[ -n ${use} ]]; then diff --git a/media-video/handbrake/handbrake-1.11.2-r1.ebuild b/media-video/handbrake/handbrake-1.11.2-r1.ebuild index efc530c7b8934..cf271a5faca77 100644 --- a/media-video/handbrake/handbrake-1.11.2-r1.ebuild +++ b/media-video/handbrake/handbrake-1.11.2-r1.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{12..15} ) -inherit edo flag-o-matic multiprocessing python-any-r1 toolchain-funcs xdg +inherit edo esplit flag-o-matic multiprocessing python-any-r1 toolchain-funcs xdg DESCRIPTION="Open-source, GPL-licensed, multiplatform, multithreaded video transcoder" HOMEPAGE="https://handbrake.fr/ https://github.com/HandBrake/HandBrake" @@ -44,10 +44,10 @@ declare -A BUNDLED=( bundle_src_uri() { local name for name in "${!BUNDLED[@]}"; do - local OLDIFS splitted tarball uri use - OLDIFS=$IFS; IFS=';'; splitted=( ${BUNDLED[${name}]} ); IFS=$OLDIFS - uri=${splitted[0]} - use=${splitted[1]} + local fields tarball uri use + mapfile -d '' fields < <(IFS=';' esplit ${BUNDLED[${name}]}) + uri=${fields[0]} + use=${fields[1]} tarball=${uri##*/} if [[ -n ${use} ]]; then diff --git a/media-video/handbrake/handbrake-9999.ebuild b/media-video/handbrake/handbrake-9999.ebuild index c7d58b8606806..84d78a47c457a 100644 --- a/media-video/handbrake/handbrake-9999.ebuild +++ b/media-video/handbrake/handbrake-9999.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{11..15} ) -inherit edo flag-o-matic multiprocessing python-any-r1 toolchain-funcs xdg +inherit edo esplit flag-o-matic multiprocessing python-any-r1 toolchain-funcs xdg DESCRIPTION="Open-source, GPL-licensed, multiplatform, multithreaded video transcoder" HOMEPAGE="https://handbrake.fr/ https://github.com/HandBrake/HandBrake" @@ -44,10 +44,10 @@ declare -A BUNDLED=( bundle_src_uri() { local name for name in "${!BUNDLED[@]}"; do - local OLDIFS splitted tarball uri use - OLDIFS=$IFS; IFS=';'; splitted=( ${BUNDLED[${name}]} ); IFS=$OLDIFS - uri=${splitted[0]} - use=${splitted[1]} + local fields tarball uri use + mapfile -d '' fields < <(IFS=';' esplit ${BUNDLED[${name}]}) + uri=${fields[0]} + use=${fields[1]} tarball=${uri##*/} if [[ -n ${use} ]]; then -- 2.55.0