blob: 92355e3a19e452fa97dc97bdc539b609b99c0680 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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
}
|