From ea8b1a2929212af641b99bb79799549d5d5f891a Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Mon, 2 Jul 2018 00:32:07 +0300 Subject: youtube-dl-scm: slightly edited packagge from media repo --- metadata/categories.conf | 1 + .../net-misc/youtube-dl/youtube-dl-scm.exheres-0 | 47 ++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 packages/net-misc/youtube-dl/youtube-dl-scm.exheres-0 diff --git a/metadata/categories.conf b/metadata/categories.conf index b8da8c9..c152d34 100644 --- a/metadata/categories.conf +++ b/metadata/categories.conf @@ -14,3 +14,4 @@ voip media-sound media net-vpn +net-misc 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 +# 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 +} + -- cgit v1.2.3