/[gentoo-x86]/net-misc/youtube-dl/youtube-dl-2013.06.34.2.ebuild
Gentoo

Contents of /net-misc/youtube-dl/youtube-dl-2013.06.34.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Sun Aug 11 23:57:57 2013 UTC (6 years, 5 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Old.

(Portage version: 2.2.0_alpha196/cvs/Linux x86_64, signed Manifest commit with key A792A613)

1 jer 1.1 # Copyright 1999-2013 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 jer 1.4 # $Header: /var/cvsroot/gentoo-x86/net-misc/youtube-dl/youtube-dl-2013.06.34.2.ebuild,v 1.3 2013/06/29 20:20:09 floppym Exp $
4 jer 1.1
5     EAPI=5
6    
7 jer 1.2 PYTHON_COMPAT=(python{2_6,2_7,3_3})
8 jer 1.1 DISTUTILS_SINGLE_IMPL=true
9     inherit bash-completion-r1 distutils-r1 eutils
10    
11     DESCRIPTION="Download videos from YouTube.com (and mores sites...)"
12     HOMEPAGE="http://rg3.github.com/youtube-dl/"
13     SRC_URI="http://youtube-dl.org/downloads/${PV}/${P}.tar.gz"
14    
15     LICENSE="public-domain"
16     SLOT="0"
17     KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
18     IUSE="offensive test"
19    
20 floppym 1.3 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
21     test? ( dev-python/nose[coverage(+)] )"
22 jer 1.1
23     S="${WORKDIR}/${PN}"
24    
25     src_prepare() {
26     if ! use offensive; then
27     epatch "${FILESDIR}"/${P}-offensive.patch
28     rm \
29     youtube_dl/extractor/pornotube.py \
30     youtube_dl/extractor/redtube.py \
31     youtube_dl/extractor/xhamster.py \
32     youtube_dl/extractor/xnxx.py \
33     youtube_dl/extractor/xvideos.py \
34     youtube_dl/extractor/youjizz.py \
35     youtube_dl/extractor/youporn.py \
36     || die
37     fi
38     }
39    
40     src_compile() {
41     distutils-r1_src_compile
42     }
43    
44     src_test() {
45     emake test
46     }
47    
48     src_install() {
49     python_domodule youtube_dl
50     dobin bin/${PN}
51     dodoc CHANGELOG README.txt
52     doman ${PN}.1
53     newbashcomp ${PN}.bash-completion ${PN}
54     python_fix_shebang "${ED}"
55     }

  ViewVC Help
Powered by ViewVC 1.1.20