# -*- 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 # $Id: Portfile 105361 2013-04-18 22:10:07Z ryandesign@macports.org $ PortSystem 1.0 name youtube-dl version 2013.04.18 categories net platforms darwin maintainers ryandesign openmaintainer supported_archs noarch license public-domain description command-line program to download videos from YouTube.com and other sites long_description ${name} is a small ${description}. homepage http://rg3.github.com/youtube-dl/ master_sites http://youtube-dl.org/downloads/${version} checksums rmd160 50351f5147ba8cac67dc03785a02a70025dbb61e \ sha256 f01aaac1fb65da4e47500d473ce5eca6c6e157c7eb84c81219d7bba1eff489af depends_build bin:zip:zip depends_run port:python27 worksrcdir ${name} post-extract { # Force the script to be regenerated by make. delete ${worksrcpath}/${name} } post-patch { reinplace "s|#!/usr/bin/env python|#!${prefix}/bin/python2.7|g" ${worksrcpath}/Makefile } use_configure no destroot.args PREFIX=${prefix} \ MANDIR=${prefix}/share/man \ SYSCONFDIR=${prefix}/etc post-destroot { set docdir ${prefix}/share/doc/${name} xinstall -d ${destroot}${docdir} xinstall -m 644 -W ${worksrcpath} LICENSE README.md ${destroot}${docdir} } livecheck.type regex livecheck.url http://rg3.github.com/youtube-dl/update/versions.json livecheck.regex {"latest":\s*"([0-9.]+)"}