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

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

youtube-dl: update to 2014.04.04.7

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 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 118587 2014-04-05 09:48:19Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                youtube-dl
7version             2014.04.04.7
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  81d5185fe8d7f7734b9f837b4d2884fcec301b27 \
22                    sha256  113a7043e2f6b808e94cf584d336c4f2edaeba326ffadbeed3d850b0450fae20
23
24depends_build       bin:zip:zip
25
26worksrcdir          ${name}
27
28post-extract {
29    # Force the script to be regenerated by `make`.
30    delete ${worksrcpath}/${name}
31}
32
33patchfiles          patch-Makefile.diff \
34                    patch-youtube_dl-update.py.diff
35patch.args          --backup
36
37post-patch {
38    # Restore the original mtime of update.py (changed by the patch) so that `make` doesn't try to regenerate the documentation with `pandoc`.
39    file mtime ${worksrcpath}/youtube_dl/update.py [file mtime ${worksrcpath}/youtube_dl/update.py.orig]
40}
41
42use_configure       no
43
44pre-build {
45    build.args-append   PYTHON=${configure.python}
46}
47
48destroot.args       PREFIX=${prefix} \
49                    MANDIR=${prefix}/share/man \
50                    SYSCONFDIR=${prefix}/etc
51
52post-destroot {
53    set docdir ${prefix}/share/doc/${name}
54    xinstall -d ${destroot}${docdir}
55    xinstall -m 644 -W ${worksrcpath} LICENSE README.md ${destroot}${docdir}
56}
57
58variant python27 conflicts python33 python34 description {Use Python 2.7} {
59    depends_run-append  port:python27
60    configure.python    ${prefix}/bin/python2.7
61}
62
63variant python33 conflicts python27 python34 description {Use Python 3.3} {
64    depends_run-append  port:python33
65    configure.python    ${prefix}/bin/python3.3
66}
67
68variant python34 conflicts python27 python33 description {Use Python 3.4} {
69    depends_run-append  port:python34
70    configure.python    ${prefix}/bin/python3.4
71}
72
73if {![variant_isset python27] && ![variant_isset python33] && ![variant_isset python34]} {
74    default_variants +python27
75}
76
77livecheck.type      regex
78livecheck.url       http://rg3.github.com/youtube-dl/update/versions.json
79livecheck.regex     {"latest":\s*"([0-9.]+)"}
Note: See TracBrowser for help on using the repository browser.