Modified: trunk/dports/net/youtube-dl/Portfile (112756 => 112757)
--- trunk/dports/net/youtube-dl/Portfile 2013-10-31 01:04:00 UTC (rev 112756)
+++ trunk/dports/net/youtube-dl/Portfile 2013-10-31 01:49:43 UTC (rev 112757)
@@ -4,7 +4,7 @@
PortSystem 1.0
name youtube-dl
-version 2013.10.29
+version 2013.10.30
categories net
platforms darwin
maintainers ryandesign openmaintainer
@@ -18,8 +18,8 @@
homepage http://rg3.github.com/youtube-dl/
master_sites http://youtube-dl.org/downloads/${version}
-checksums rmd160 418d750f2dfef04748cd349ee81ee4fb47adb620 \
- sha256 dfa7e4bc84c6a393019753f002f0e7e14ac04958395798d74dd151a50362c5e6
+checksums rmd160 52eb4f4b27f99c56b992995131ab73defbca7e6e \
+ sha256 54dd4293975a69c46fadf2948de9226b79a0b524884ef23e96daab307dea792d
depends_build bin:zip:zip
@@ -32,17 +32,19 @@
delete ${worksrcpath}/${name}
}
-patchfiles patch-youtube_dl-update.py.diff
+patchfiles patch-Makefile.diff \
+ 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
+build.args PYTHON=${prefix}/bin/python2.7
+
destroot.args PREFIX=${prefix} \
MANDIR=${prefix}/share/man \
SYSCONFDIR=${prefix}/etc
Added: trunk/dports/net/youtube-dl/files/patch-Makefile.diff (0 => 112757)
--- trunk/dports/net/youtube-dl/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/net/youtube-dl/files/patch-Makefile.diff 2013-10-31 01:49:43 UTC (rev 112757)
@@ -0,0 +1,13 @@
+--- Makefile.orig 2013-10-30 19:41:45.000000000 -0500
++++ Makefile 2013-10-30 19:57:24.000000000 -0500
+@@ -41,8 +41,8 @@
+ pypi-files: youtube-dl.bash-completion README.txt youtube-dl.1
+
+ youtube-dl: youtube_dl/*.py youtube_dl/*/*.py
+- zip --quiet youtube-dl youtube_dl/*.py youtube_dl/*/*.py
+- zip --quiet --junk-paths youtube-dl youtube_dl/__main__.py
++ zip -q youtube-dl youtube_dl/*.py youtube_dl/*/*.py
++ zip -q -j youtube-dl youtube_dl/__main__.py
+ echo '#!$(PYTHON)' > youtube-dl
+ cat youtube-dl.zip >> youtube-dl
+ rm youtube-dl.zip