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

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

youtube-dl: update to 2013.02.02; don't install CHANGELOG because it is not up-to-date

  • 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 102433 2013-02-02 20:55:07Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                youtube-dl
7version             2013.02.02
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  10d8144e2cb4a3188370981aeae121df0162ba5c \
22                    sha256  c062ab5636f443c776d617dd9aa3c9045926f16954fc333660b5aae45f15686f
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.