diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-video/clive/clive-2.3.0.1.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-video/clive/clive-2.3.0.1.ebuild')
-rw-r--r-- | media-video/clive/clive-2.3.0.1.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/media-video/clive/clive-2.3.0.1.ebuild b/media-video/clive/clive-2.3.0.1.ebuild new file mode 100644 index 000000000000..d5d07324ff83 --- /dev/null +++ b/media-video/clive/clive-2.3.0.1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit perl-app + +DESCRIPTION="Command line tool for extracting videos from various websites" +HOMEPAGE="http://clive.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${PV:0:3}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ~ppc ~ppc64 x86" +IUSE="clipboard pager password test" + +RDEPEND=">=dev-perl/BerkeleyDB-0.34 + >=dev-perl/Config-Tiny-2.12 + >=virtual/perl-Digest-SHA-5.47 + >=dev-perl/HTML-TokeParser-Simple-2.37 + >=dev-perl/Class-Singleton-1.4 + >=dev-perl/WWW-Curl-4.05 + >=dev-perl/XML-Simple-2.18 + >=dev-perl/Getopt-ArgvFile-1.11 + dev-perl/JSON-XS + dev-perl/URI + virtual/perl-Getopt-Long + virtual/perl-File-Spec + clipboard? ( >=dev-perl/Clipboard-0.09 ) + pager? ( >=dev-perl/IO-Pager-0.05 ) + password? ( >=dev-perl/Expect-1.21 ) + media-libs/quvi + || ( net-misc/wget net-misc/curl )" +DEPEND="test? ( dev-perl/Test-Pod ${RDEPEND} )" + +SRC_TEST=do +mydoc="NEWS" + +src_install() { + perl-module_src_install + dodir /etc/clive + cat <<-EOF > "${ED}"/etc/clive/config || die + --quvi "quvi %u" + --get-with "if type -P wget >/dev/null 2>&1; then wget -c -O %f %u; else curl -L -C - -o %f %u; fi" + --filename-format "%t.%s" + EOF +} + +src_test() { + if [ -z "${I_WANT_CLIVE_HOSTS_TESTS}" ] ; then + elog "If you wish to run the full testsuite of ${PN}" + elog "Please set the variable 'I_WANT_CLIVE_HOSTS_TESTS' variable" + elog "Note that the tests try to download some videos from various websites" + elog "and thus may randomly fail depending on the site's status." + export NO_INTERNET=1 + fi + perl-module_src_test +} |