mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
youtube-dl: main package switched to Python 3
This commit is contained in:
@@ -8,7 +8,7 @@ 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"
|
||||
REVISION="3"
|
||||
SOURCE_URI="https://yt-dl.org/downloads/$portVersion/youtube-dl-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="113a5272c1917d83f1c1e7e54971ab41aa6e22b43ba736f2b66816220bdf17e1"
|
||||
SOURCE_DIR="youtube-dl"
|
||||
@@ -22,7 +22,7 @@ PROVIDES="
|
||||
REQUIRES="
|
||||
haiku
|
||||
ffmpeg_tools
|
||||
cmd:python
|
||||
cmd:python3
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
@@ -31,6 +31,7 @@ BUILD_REQUIRES="
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:find
|
||||
cmd:make
|
||||
cmd:zip
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python3)
|
||||
@@ -75,9 +76,15 @@ INSTALL()
|
||||
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"
|
||||
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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user