summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-07-02 00:32:07 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-07-02 00:32:07 +0300
commitea8b1a2929212af641b99bb79799549d5d5f891a (patch)
tree78754cbaa865cb70332eacfa61afae059253337e
parent2f0b212f2bedffc1ba90d1f88a4bcc1c5d0dbe28 (diff)
youtube-dl-scm: slightly edited packagge from media repo
-rw-r--r--metadata/categories.conf1
-rw-r--r--packages/net-misc/youtube-dl/youtube-dl-scm.exheres-047
2 files changed, 48 insertions, 0 deletions
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 <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
+}
+