diff options
Diffstat (limited to 'packages/net-misc')
-rw-r--r-- | packages/net-misc/youtube-dl/youtube-dl-scm.exheres-0 | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/packages/net-misc/youtube-dl/youtube-dl-scm.exheres-0 b/packages/net-misc/youtube-dl/youtube-dl-scm.exheres-0 new file mode 100644 index 0000000..92355e3 --- /dev/null +++ b/packages/net-misc/youtube-dl/youtube-dl-scm.exheres-0 @@ -0,0 +1,47 @@ +# Copyright 2010-2015 Johannes Nixdorf <mixi@shadowice.org> +# Distributed under the terms of the GNU General Public License v2 + +require bash-completion +require zsh-completion +require github [ user=rg3 release=${PV} suffix=tar.gz ] +require setup-py [ import=setuptools has_bin=true multibuild=false ] + +SUMMARY="A small command-line program to download videos from youtube.com or other video platforms" + +LICENCES="Unlicense" +SLOT="0" +PLATFORMS="~amd64 ~armv7 ~x86" + +# they need internet access +RESTRICT="test" + +DEPENDENCIES="" +# test: +# dev-python/nose + +#WORK=${WORKBASE}/${PN} + +src_prepare() { +# edo mv ${WORKBASE}/${PNV} ${WORKBASE}/${PN} + setup-py_src_prepare + + # don't install etc/bash_completion.d into /usr + # don't install fish completion in /usr/etc/... + # don't install README.txt to /usr/share/doc/${PNV} + # (it's installed by emagicdocs to the right place) + edo sed -e '/bash_completion/d' \ + -e '/youtube-dl.fish/d' \ + -e '/README.txt/d' \ + -i setup.py +} + +src_install() { + dobashcompletion devscripts/bash-completion.in + dozshcompletion devscripts/zsh-completion.in + + setup-py_src_install + #TODO: something better + edo rmdir ${IMAGE}/usr/share/man/man1 + edo rmdir ${IMAGE}/usr/share/man +} + |