[112095] trunk/dports/net/youtube-dl/Portfile
ryandesign at macports.org
ryandesign at macports.org
Fri Oct 11 15:01:09 PDT 2013
Revision: 112095
https://trac.macports.org/changeset/112095
Author: ryandesign at macports.org
Date: 2013-10-11 15:01:09 -0700 (Fri, 11 Oct 2013)
Log Message:
-----------
youtube-dl: ensure user can't update using "youtube-dl -U"
Modified Paths:
--------------
trunk/dports/net/youtube-dl/Portfile
Modified: trunk/dports/net/youtube-dl/Portfile
===================================================================
--- trunk/dports/net/youtube-dl/Portfile 2013-10-11 19:57:42 UTC (rev 112094)
+++ trunk/dports/net/youtube-dl/Portfile 2013-10-11 22:01:09 UTC (rev 112095)
@@ -5,6 +5,7 @@
name youtube-dl
version 2013.10.09
+revision 1
categories net
platforms darwin
maintainers ryandesign openmaintainer
@@ -28,12 +29,17 @@
worksrcdir ${name}
post-extract {
- # Force the script to be regenerated by make.
+ # Force the script to be regenerated by `make`.
delete ${worksrcpath}/${name}
}
+patchfiles patch-youtube_dl-update.py.diff
+patch.args --backup
+
post-patch {
reinplace "s|#!/usr/bin/env python|#!${prefix}/bin/python2.7|g" ${worksrcpath}/Makefile
+ # Restore the original mtime of update.py (changed by the patch) so that `make` doesn't try to regenerate the documentation with `pandoc`.
+ file mtime ${worksrcpath}/youtube_dl/update.py [file mtime ${worksrcpath}/youtube_dl/update.py.orig]
}
use_configure no
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131011/4826f676/attachment-0001.html>
More information about the macports-changes
mailing list