From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1334839-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 42739158086
	for <garchives@archives.gentoo.org>; Sat, 30 Oct 2021 09:14:56 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 71498E07D8;
	Sat, 30 Oct 2021 09:14:55 +0000 (UTC)
Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 5596FE07D8
	for <gentoo-commits@lists.gentoo.org>; Sat, 30 Oct 2021 09:14:55 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 7A0AA343140
	for <gentoo-commits@lists.gentoo.org>; Sat, 30 Oct 2021 09:14:54 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id E88C8163
	for <gentoo-commits@lists.gentoo.org>; Sat, 30 Oct 2021 09:14:52 +0000 (UTC)
From: "Ionen Wolkens" <ionen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" <ionen@gentoo.org>
Message-ID: <1635585223.5d5d04a25548de045059dbd1e59c8c28cead2590.ionen@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/yt-dlp/
X-VCS-Repository: repo/gentoo
X-VCS-Files: net-misc/yt-dlp/yt-dlp-2021.10.22-r1.ebuild net-misc/yt-dlp/yt-dlp-2021.10.22-r2.ebuild
X-VCS-Directories: net-misc/yt-dlp/
X-VCS-Committer: ionen
X-VCS-Committer-Name: Ionen Wolkens
X-VCS-Revision: 5d5d04a25548de045059dbd1e59c8c28cead2590
X-VCS-Branch: master
Date: Sat, 30 Oct 2021 09:14:52 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: aa842150-35a7-4419-8e56-d3ca6796008a
X-Archives-Hash: efbef76c54964a074b63a91756ced8e5

commit:     5d5d04a25548de045059dbd1e59c8c28cead2590
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 30 08:48:17 2021 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat Oct 30 09:13:43 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d5d04a2

net-misc/yt-dlp: improve compatibility with youtube-dl

Usually not needed, but some more advanced use of options
may lead to issues without a wrapper.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 .../{yt-dlp-2021.10.22-r1.ebuild => yt-dlp-2021.10.22-r2.ebuild}     | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/net-misc/yt-dlp/yt-dlp-2021.10.22-r1.ebuild b/net-misc/yt-dlp/yt-dlp-2021.10.22-r2.ebuild
similarity index 90%
rename from net-misc/yt-dlp/yt-dlp-2021.10.22-r1.ebuild
rename to net-misc/yt-dlp/yt-dlp-2021.10.22-r2.ebuild
index ccda512819f..c9b4d7614b7 100644
--- a/net-misc/yt-dlp/yt-dlp-2021.10.22-r1.ebuild
+++ b/net-misc/yt-dlp/yt-dlp-2021.10.22-r2.ebuild
@@ -42,5 +42,8 @@ python_install_all() {
 
 	rm -r "${ED}"/usr/share/doc/yt_dlp || die
 
-	dosym yt-dlp /usr/bin/youtube-dl # compatibility symlink
+	newbin - youtube-dl <<-EOF
+		#!/usr/bin/env sh
+		exec yt-dlp --compat-options youtube-dl "\${@}"
+	EOF
 }