# Copyright 2010-2015 Johannes Nixdorf # 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 }