[101161] trunk/dports/net/youtube-dl/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat Jan 5 10:14:04 PST 2013


Revision: 101161
          https://trac.macports.org/changeset/101161
Author:   ryandesign at macports.org
Date:     2013-01-05 10:14:04 -0800 (Sat, 05 Jan 2013)
Log Message:
-----------
youtube-dl: update to 2013.01.02

Modified Paths:
--------------
    trunk/dports/net/youtube-dl/Portfile

Modified: trunk/dports/net/youtube-dl/Portfile
===================================================================
--- trunk/dports/net/youtube-dl/Portfile	2013-01-05 16:52:57 UTC (rev 101160)
+++ trunk/dports/net/youtube-dl/Portfile	2013-01-05 18:14:04 UTC (rev 101161)
@@ -2,10 +2,9 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           github 1.0
 
-github.setup        rg3 youtube-dl 2012.12.11
-revision            1
+name                youtube-dl
+version             2013.01.02
 categories          net
 platforms           darwin
 maintainers         ryandesign openmaintainer
@@ -17,36 +16,38 @@
 long_description    ${name} is a small ${description}.
 
 homepage            http://rg3.github.com/youtube-dl/
+master_sites        http://youtube-dl.org/downloads/${version}
 
-checksums           youtube-dl-2012.12.11.tar.gz \
-                    rmd160  31152ff33836e72b40fe9ed6196d531f96cce9f2 \
-                    sha256  b3611b852a9c8f845121610a78e9db7fd1d9fdbdb7f583c38b04a578953f36e4 \
-                    youtube-dl \
-                    rmd160  b576bf628a2567a6e26de3a75fdc42fbf01857b3 \
-                    sha256  e2109ac82b05f910828a12b2de0d8e5d3b29b0ed9e2daeb68badb1fce8c1ec7a
+checksums           rmd160  901e67b4f678ac1371323e1728060ddd596c6b84 \
+                    sha256  6a66d022ac8e1c13da284036288a133ec8dba003b7bd3a5179d0c0daca8c8196
 
 depends_build       bin:zip:zip
 
 depends_run         port:python27
 
-# NOTE: this is going away soon - Github download API is deprecated cf. https://github.com/blog/1302-goodbye-uploads
-master_sites-append     http://cloud.github.com/downloads/rg3/${name}:actual_script
-distfiles-append        ${name}:actual_script
-worksrcdir              rg3-youtube-dl-7a13130
+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
 
-build.target        ${name}
+destroot.args       PREFIX=${prefix} \
+                    MANDIR=${prefix}/share/man \
+                    SYSCONFDIR=${prefix}/etc
 
-destroot {
-    xinstall -W ${worksrcpath} ${name} ${destroot}${prefix}/bin
-    #xinstall -m 644 -W ${worksrcpath} ${name}.1 ${destroot}${prefix}/share/man/man1
+post-destroot {
     set docdir ${prefix}/share/doc/${name}
     xinstall -d ${destroot}${docdir}
     xinstall -m 644 -W ${worksrcpath} README.md ${destroot}${docdir}
-    xinstall -m 755 ${distpath}/youtube-dl ${destroot}${prefix}/bin/youtube-dl
 }
+
+livecheck.type      regex
+livecheck.url       http://rg3.github.com/youtube-dl/update/versions.json
+livecheck.regex     {"latest":\s*"([0-9.]+)"}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130105/35774350/attachment.html>


More information about the macports-changes mailing list