dev-python/youtube-dl: new package, add 2021.12.17-r1
Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
parent
a34929befd
commit
8bb5630ce1
|
@ -573,7 +573,7 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
|
|||
|
||||
## Licenses
|
||||
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
|
||||
There are 1731 Ebuilds in total, 1720 of them have in total 1724 (34 different) licenses assigned.
|
||||
There are 1732 Ebuilds in total, 1721 of them have in total 1725 (34 different) licenses assigned.
|
||||
|
||||
|License| Ebuilds using it|
|
||||
|-------|-----|
|
||||
|
@ -587,7 +587,7 @@ There are 1731 Ebuilds in total, 1720 of them have in total 1724 (34 different)
|
|||
|all-rights-reserved|13|
|
||||
|LGPL-3+|12|
|
||||
|BSD-2|7|
|
||||
|Unlicense|6|
|
||||
|Unlicense|7|
|
||||
|MPL-2.0|5|
|
||||
|LGPL-2.1+|5|
|
||||
|LGPL-2.1|5|
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
DIST youtube-dl-2021.12.17.tar.gz 3332299 BLAKE2B 5c798ad1f54f06cc42fd9a538536310e1084a02ec96969ff8e85ef0c6487ef54f34d58858512ade8b279929d8ebb9dda48175302fa23af9833c2301daa1d49c2 SHA512 bfc8280703b08f66e1108e9ebd9ab4689f064ac7cef03bd3d1fd2bc64928570e4376e389c9bc188eafdbcd74444cfc8aeccc83ee362ad4f478910efef3573ddb
|
||||
EBUILD youtube-dl-2021.12.17-r1.ebuild 2597 BLAKE2B 36f7c009f77c34a147a42149f8ef048fa1d622fc429269f92be62d855b8917abea707e7dbf81579beafe28b08ce8adc332bc31c625af4425645eaf4a53620445 SHA512 a875e6a57151d4e51637bbffc00e2d47ea30a20bdc4ccec9cf47034068bf29eb66db2265bb2d71b5a084cf555deb50a78bd228672b3e11cc34324727dc4f10b6
|
||||
MISC metadata.xml 646 BLAKE2B f39c1203db3ae96811ed02a7011a7ec9e617a47aecfedd0fe1e5a3e780434ccef8c50124917135c8b4798c484dc1107ce277777471a5cc726af7a1a3ade87e0f SHA512 824f17e222c1053c635ad4447ad1c85d66cc94a0c7283b53c30bd82c1b756605be52f04ebdae7b5b3179b26287a25d5fc0f37a4c68955754d358b2379f80b8dd
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>b@edevau.net</email>
|
||||
<name>Andreas Billmeier</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">youtube_dl</remote-id>
|
||||
<remote-id type="github">ytdl-org/youtube-dl</remote-id>
|
||||
<maintainer status="unknown">
|
||||
<email>dstftw@gmail.com</email>
|
||||
<name>Sergey M.</name>
|
||||
</maintainer>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="yt-dlp">Use <pkg>net-misc/yt-dlp</pkg> to provide the command and only install the python module</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
|
@ -0,0 +1,78 @@
|
|||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
inherit bash-completion-r1 distutils-r1 optfeature
|
||||
|
||||
DESCRIPTION="Download videos from YouTube.com (and more sites...)"
|
||||
HOMEPAGE="https://youtube-dl.org/"
|
||||
SRC_URI="https://youtube-dl.org/downloads/${PV}/${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
LICENSE="Unlicense"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
||||
IUSE="+yt-dlp"
|
||||
# tests need deprecated nose, and given upstream is still refusing to make new
|
||||
# releases or modernize anything (wants to support old python more) it will
|
||||
# likely be last rited along with any revdeps that still can't use yt-dlp
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/pycryptodome[${PYTHON_USEDEP}]
|
||||
yt-dlp? ( >=net-misc/yt-dlp-2022.2.4-r1 )
|
||||
!yt-dlp? ( !net-misc/yt-dlp )"
|
||||
|
||||
#distutils_enable_tests nose
|
||||
|
||||
python_prepare_all() {
|
||||
distutils-r1_python_prepare_all
|
||||
|
||||
sed -i '/flake8/d' Makefile || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
emake offlinetest
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
dodoc AUTHORS ChangeLog README.md docs/supportedsites.md
|
||||
doman youtube-dl.1
|
||||
|
||||
newbashcomp youtube-dl.bash-completion youtube-dl
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins youtube-dl.zsh _youtube-dl
|
||||
|
||||
insinto /usr/share/fish/vendor_completions.d
|
||||
doins youtube-dl.fish
|
||||
|
||||
rm -r "${ED}"/usr/{etc,share/doc/youtube_dl} || die
|
||||
|
||||
# keep man pages / completions either way given they are useful
|
||||
# for yt-dlp's compatibility wrapper which tries to mimic options
|
||||
use !yt-dlp || rm -r "${ED}"/usr/{lib/python-exec,bin} || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "converting and merging tracks on some sites" media-video/ffmpeg
|
||||
optfeature "embedding metadata thumbnails in MP4/M4A files" media-video/atomicparsley
|
||||
optfeature "downloading videos streamed via RTMP" media-video/rtmpdump
|
||||
optfeature "downloading videos streamed via MMS/RTSP" media-video/mplayer media-video/mpv
|
||||
|
||||
ewarn "Note that it is preferable to use net-misc/yt-dlp over youtube-dl for"
|
||||
ewarn "latest features and site support. youtube-dl is only kept maintained for"
|
||||
ewarn "compatibility with older software (notably its python module, yt-dlp has"
|
||||
ewarn "a 'bin/youtube-dl' compatibility wrapper but not for the module)."
|
||||
|
||||
if use yt-dlp; then
|
||||
ewarn
|
||||
ewarn "USE=yt-dlp is enabled, so said compatibility wrapper will be used. Man pages"
|
||||
ewarn "and completions for youtube-dl were still installed but may have slight usage"
|
||||
ewarn "differences and does not read the same configuration files. It is recommended"
|
||||
ewarn "to use the yt-dlp command directly instead."
|
||||
fi
|
||||
}
|
Loading…
Reference in New Issue