source: trunk/dports/net/youtube-dl/Portfile @ 103236

Last change on this file since 103236 was 103236, checked in by ryandesign@…, 6 years ago

youtube-dl: update to 2013.02.19

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 103236 2013-02-19 07:31:40Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                youtube-dl
7version             2013.02.19
8categories          net
9platforms           darwin
10maintainers         ryandesign openmaintainer
11supported_archs     noarch
12license             public-domain
13
14description         command-line program to download videos from YouTube.com and other sites
15
16long_description    ${name} is a small ${description}.
17
18homepage            http://rg3.github.com/youtube-dl/
19master_sites        http://youtube-dl.org/downloads/${version}
20
21checksums           rmd160  c6616876b7f893db29232ddac5568d7a505c4fe5 \
22                    sha256  d95505e9856d944655b1e2a8dd515fd43ff4d7e18cd07bd4016cb186feec62bb
23
24depends_build       bin:zip:zip
25
26depends_run         port:python27
27
28worksrcdir          ${name}
29
30post-extract {
31    # Force the script to be regenerated by make.
32    delete ${worksrcpath}/${name}
33}
34
35post-patch {
36    reinplace "s|#!/usr/bin/env python|#!${prefix}/bin/python2.7|g" ${worksrcpath}/Makefile
37}
38
39use_configure       no
40
41destroot.args       PREFIX=${prefix} \
42                    MANDIR=${prefix}/share/man \
43                    SYSCONFDIR=${prefix}/etc
44
45post-destroot {
46    set docdir ${prefix}/share/doc/${name}
47    xinstall -d ${destroot}${docdir}
48    xinstall -m 644 -W ${worksrcpath} LICENSE README.md ${destroot}${docdir}
49}
50
51livecheck.type      regex
52livecheck.url       http://rg3.github.com/youtube-dl/update/versions.json
53livecheck.regex     {"latest":\s*"([0-9.]+)"}
Note: See TracBrowser for help on using the repository browser.