From 2a22fe13fdd18205ca7640c8b0406bfe31cf4f01 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Fri, 11 Aug 2023 17:04:01 +0000 Subject: [PATCH] youtube_dl, remove recipe (#9181) --- net-misc/youtube_dl/licenses/Unlicense | 24 ---- .../youtube_dl/youtube_dl-2021.12.17.recipe | 107 ------------------ 2 files changed, 131 deletions(-) delete mode 100644 net-misc/youtube_dl/licenses/Unlicense delete mode 100644 net-misc/youtube_dl/youtube_dl-2021.12.17.recipe diff --git a/net-misc/youtube_dl/licenses/Unlicense b/net-misc/youtube_dl/licenses/Unlicense deleted file mode 100644 index 68a49daad..000000000 --- a/net-misc/youtube_dl/licenses/Unlicense +++ /dev/null @@ -1,24 +0,0 @@ -This is free and unencumbered software released into the public domain. - -Anyone is free to copy, modify, publish, use, compile, sell, or -distribute this software, either in source code form or as a compiled -binary, for any purpose, commercial or non-commercial, and by any -means. - -In jurisdictions that recognize copyright laws, the author or authors -of this software dedicate any and all copyright interest in the -software to the public domain. We make this dedication for the benefit -of the public at large and to the detriment of our heirs and -successors. We intend this dedication to be an overt act of -relinquishment in perpetuity of all present and future rights to this -software under copyright law. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR -OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. - -For more information, please refer to diff --git a/net-misc/youtube_dl/youtube_dl-2021.12.17.recipe b/net-misc/youtube_dl/youtube_dl-2021.12.17.recipe deleted file mode 100644 index 35d1444bd..000000000 --- a/net-misc/youtube_dl/youtube_dl-2021.12.17.recipe +++ /dev/null @@ -1,107 +0,0 @@ -SUMMARY="A command-line program to download videos from various sites" -DESCRIPTION="The program is usually invoked as youtube-dl followed by \ -options and the video URL. Run 'youtube-dl --help' and get a summary \ -of all options. -Some YouTube videos are served using Adobe's proprietary RTMP protocol, which \ -imposes DRM restrictions and encrypts the connection. youtube-dl is not able \ -to download these videos by itself." -HOMEPAGE="https://ytdl-org.github.io/youtube-dl/index.html" -COPYRIGHT="2006-2021 youtube-dl contributors" -LICENSE="Unlicense" -REVISION="2" -SOURCE_URI="https://yt-dl.org/downloads/$portVersion/youtube-dl-$portVersion.tar.gz" -CHECKSUM_SHA256="9f3b99c8b778455165b4525f21505e86c7ff565f3ac319e19733d810194135df" -SOURCE_DIR="youtube-dl" - -ARCHITECTURES="any" - -PROVIDES=" - youtube_dl = $portVersion - cmd:youtube_dl = $portVersion - " -REQUIRES=" - haiku - ffmpeg_tools - cmd:python3 - " - -BUILD_REQUIRES=" - haiku_devel - " -BUILD_PREREQUIRES=" - cmd:find - cmd:make - cmd:zip - " - -PYTHON_PACKAGES=(python39) -PYTHON_VERSIONS=(3.9) -for i in "${!PYTHON_PACKAGES[@]}"; do - pythonPackage=${PYTHON_PACKAGES[i]} - pythonVersion=${PYTHON_VERSIONS[$i]} - eval "\ - PROVIDES_${pythonPackage}=\"\n\ - ${portName}_$pythonPackage = $portVersion\n\ - cmd:youtube_dl_$pythonPackage = $portVersion\n\ - \"; \ - REQUIRES_$pythonPackage=\"\n\ - haiku\n\ - cmd:python$pythonVersion\n\ - \"\ - " - - BUILD_REQUIRES="$BUILD_REQUIRES - setuptools_$pythonPackage - " - BUILD_PREREQUIRES="$BUILD_PREREQUIRES - cmd:python$pythonVersion - " -done - -INSTALL() -{ - for i in "${!PYTHON_PACKAGES[@]}"; do - pythonPackage=${PYTHON_PACKAGES[i]} - pythonVersion=${PYTHON_VERSIONS[$i]} - - python=python$pythonVersion - installLocation="$prefix"/lib/$python/vendor-packages/ - export PYTHONPATH="$installLocation" - rm -rf build - mkdir -p "$installLocation" - $python setup.py build install --root=/ --prefix="$prefix" - - rm -rf "$prefix"/share/man - mv "$binDir"/youtube-dl "$binDir"/youtube-dl-$pythonPackage - packageEntries $pythonPackage \ - "$prefix"/lib/$python \ - "$binDir"/youtube-dl-$pythonPackage - - # Avoid interference between the different python versions, clean any - # temporary files. Don't use "make clean" because it also removes - # things that we are not able to rebuild (docs need pandoc, for example) - rm youtube-dl - done - - make install PREFIX="$prefix" MANDIR="$manDir" SHAREDIR="$dataDir" \ - PYTHON="/system/bin/python3" - install -d "$dataDir"/bash-completion "$docDir" - mv "$prefix"/share/doc/youtube_dl/README.txt "$docDir" - - # We now have two identical files in $prefix/etc/bash_completion.d/ - # Let's drop "youtube-dl.bash-completion" and keep "youtube-dl". - rm -f "$prefix"/etc/bash_completion.d/youtube-dl.bash-completion - - # We need "youtube-dl" in "$dataDir/bash-completion/completions/". - mv "$prefix"/etc/bash_completion.d "$dataDir"/bash-completion/completions - - mv "$prefix"/etc/fish "$dataDir" - cd "$prefix" - rmdir -p etc share/doc/youtube_dl -} - -TEST() -{ - # Will fail because flake8 is not available - make offlinetest -}