[85812] trunk/dports/multimedia/ffmpeg-devel/Portfile
devans at macports.org
devans at macports.org
Sun Oct 16 02:02:12 PDT 2011
Revision: 85812
http://trac.macports.org/changeset/85812
Author: devans at macports.org
Date: 2011-10-16 02:02:07 -0700 (Sun, 16 Oct 2011)
Log Message:
-----------
ffmpeg-devel: attempt to get around buildbot's fetch restrictions by fetching source as snapshot via http using gitweb cgi.
Modified Paths:
--------------
trunk/dports/multimedia/ffmpeg-devel/Portfile
Modified: trunk/dports/multimedia/ffmpeg-devel/Portfile
===================================================================
--- trunk/dports/multimedia/ffmpeg-devel/Portfile 2011-10-16 08:43:55 UTC (rev 85811)
+++ trunk/dports/multimedia/ffmpeg-devel/Portfile 2011-10-16 09:02:07 UTC (rev 85812)
@@ -8,14 +8,11 @@
name ffmpeg-devel
conflicts ffmpeg
version 20111004
+set git_branch 751a4efd4d754b15ebc6027b09051f27860bb1e8
license GPL-2+ LGPL-2.1+
categories multimedia
maintainers devans openmaintainer
-fetch.type git
-git.url git://git.videolan.org/ffmpeg.git
-git.branch 751a4efd4d754b15ebc6027b09051f27860bb1e8
-
description FFmpeg is a complete solution to play, record, convert and \
stream audio and video.
@@ -49,7 +46,10 @@
platforms darwin
homepage http://www.ffmpeg.org/
+master_sites
+depends_fetch port:curl
+
depends_build port:pkgconfig \
port:gmake \
port:texi2html
@@ -70,6 +70,24 @@
port:bzip2 \
port:zlib
+if {[string length "${git_branch}"] >= 7} {
+ set filetag [string range "${git_branch}" 0 6]
+ distname ffmpeg-${filetag}
+} else {
+ error "git branch hash must be at least 7 characters long."
+}
+
+checksums rmd160 8047d9a808415e52524a41bd0f4e634a8a810023
+
+fetch {
+ set filename ${distname}${extract.suffix}
+ set filepath ${distpath}/${filename}
+ if {![file exists ${filepath}]} {
+ ui_msg "---> Attempting to fetch snapshot ${filename} from git repository."
+ system "curl -o ${filepath} 'http://git.videolan.org/gitweb.cgi?p=ffmpeg.git;a=snapshot;h=${git_branch};sf=tgz'"
+ }
+}
+
build.cmd ${prefix}/bin/gmake
build.env-append V=1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111016/09b2d3b4/attachment.html>
More information about the macports-changes
mailing list