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

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

youtube-dl: update to 2013.04.22

  • 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 105497 2013-04-22 21:53:14Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                youtube-dl
7version             2013.04.22
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  0d2b07bfb8a36164bff95b569d87e903d2eae916 \
22                    sha256  51456555c8b8f116bf738e60fdf2eb3cf75e441e3150195ab3a0182eab4c29d3
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.